cancel
Showing results for 
Search instead for 
Did you mean: 

"Export to Spread Sheet" this button is only enable in ICAGENT role Servie order result page.Now i want to display the same Button in Account Result page?in sap crm

former_member198180
Active Participant
0 Kudos

hi Experts,

"Export to Spread Sheet" this button is only enable in ICAGENT role Servie order result page.Now i want to display the same Button in Account Result page?in sap crm. Hpw to do it? is it coonfiguration wee need to do or in development please help?


Thanks

Kalpana

Accepted Solutions (1)

Accepted Solutions (1)

dharmakasi
Active Contributor
0 Kudos

Hi Kalpana,

You can check the account result view code(.htm page) , check whether the below tag has been added or not.

downloadToExcel       = "TRUE".

You can compare both views for any mismatch between the views.


If you don't find any difference you can try the above the given suggestion by Arden.


Best Regards,

Dharmakasi.

former_member198180
Active Participant
0 Kudos

Hi dharakasi,

In standard view...html code as below....in component how to add please helpl.

 

<chtmlb:configTable

xml = "<%= lv_xml %>"
usage =
"SEARCHRESULT"
id = "ResultTable"
navigationMode =
"BYPAGE"
onRowSelection =
"select"
table = "//BTQRSrvOrd/Table"
actions =
"<%= controller->gt_button %>"
actionsMaxInRow =
"5"
visibleRowCount =
"<%= lv_visiblerows %>"
selectedRowIndex =
"<%= BTQRSrvOrd->SELECTED_INDEX %>"
selectedRowIndexTable =
"<%= BTQRSrvOrd->SELECTION_TAB %>"
selectionMode =
"<%= BTQRSrvOrd->selection_mode %>"
visibleFirstRow =
"<%= BTQRSrvOrd->visible_first_row_index %>"
downloadToExcel =
"<%= lv_dte %>"
showNoMatchText =
"FALSE"/>

Thanks

Kalpana

former_member198180
Active Participant
0 Kudos

Hi dharmesh ,

In search account .html. code is as below please check..where we neeed to write the tag

 

<%@page language="abap" %>


<%@extension name="htmlb" prefix="htmlb" %>


<%@extension name="chtmlb" prefix="chtmlb" %>


<%@extension name="thtmlb" prefix="thtmlb" %>


<%@extension name="xhtmlb" prefix="xhtmlb" %>


<%@extension name="crm_bsp_ic" prefix="crmic" %>


<%@extension name="bsp" prefix="bsp" %>


<thtmlb:tray
id

= "de"


indent =
"FALSE"


height

= "100%"


design =
"PLAIN"


title

= "<%= otr(crm_ic_appl/bupaAccount) %>"

>
<thtmlb:trayBody>
<%


data

: lv_xml

type string

.

data:

lv_icon_url type

string.


lv_xml
=

controller->

CONFIGURATION_DESCR->

GET_CONFIG_DATA( ).


lv_icon_url
=

cl_thtmlb_util=>

get_dyn_icon_url(

iv_icon_name =

cl_thtmlb_util=>

gc_icon_new
iv_icon_type
=

cl_thtmlb_util=>

gc_button_icon ).


%>


<chtmlb:config
xml

= "<%= lv_xml %>"


mode =
"RUNTIME"

/>




<thtmlb:button
id

= "Search"


onClick

= "search"


design =
"EMPHASIZED"


text

= "<%= otr(crm_ic_appl/bupasearch) %>"


tooltip =
"<%= otr(crm_ic_appl/bupasearch) %>"

/>
&nbsp;
<thtmlb:button
id

= "Reset"


onClick

= "reset"


enabled =
"<%= enable_clear_button %>"


text

= "<%= otr(crm_ic_appl/bupareset) %>"


tooltip =
"<%= otr(CRM_IC_APPL/BUPARESET_TOOLTIP) %>"

/>
&nbsp;
<thtmlb:button
id

= "Clear"


onClick

= "clear"


enabled =
"<%= enable_clear_button %>"


text

= "<%= otr(crm_ic_appl/bupaclear) %>"


tooltip =
"<%= otr(CRM_IC_APPL/BUPACLEAR_TOOLTIP) %>"

/>
&nbsp;
<%


* Check if user user is authorized to create BP


DATA

: lr_cucobupa

TYPE REF TO cl_crmcmp_b_cucobupa_impl

.

TRY.


lr_cucobupa ?= controller
->

get_custom_controller(

if_iccmp_global_controller_con=>

cucobp ).


CATCH

: cx_bsp_inv_page

, cx_sy_move_cast_error

. "#EC NO_HANDLER


ENDTRY

.

%>

<%

* Display "New" button only if user is authorized

if lr_cucobupa

->no_bp_create

is initial.


%>


<thtmlb:button
id

= "New"


onClick

= "new"


iconSrc =
"<%= lv_icon_url %>"


tooltip =
"<%= otr(crm_ic_appl/new) %>"

/>
<%


endif

.

%>
</thtmlb:trayBody>
</thtmlb:tray>

dharmakasi
Active Contributor
0 Kudos

Hi Kalpana,

Check the account component result view, not the search view?

Add the below code in result view .htm and try

<chtmlb:configTable id                    = "Table"

                      navigationMode        = "BYPAGE"

                      onRowSelection        = "select"

                      selectionMode         = "<%= RESULT->SELECTION_MODE %>"

                      table                 = "//RESULT/Table"

                      usage                 = "SEARCHRESULT"

                      visibleRowCount       = "<%= lv_rowcount %>"

                      width                 = "100%"

                      actions               = "<%= controller->gt_button %>"

                      actionsMaxInRow       = "5"

                     downloadToExcel       = "TRUE".

                      selectedRowIndexTable = "<%= RESULT->SELECTION_TAB %>"

                      showNoMatchText       = "FALSE"

  />

downloadToExcel attribute might not be available in account search standard result view. You have to modify the .htm page accordingly.

Best Regards,

Kasi.

former_member198180
Active Participant
0 Kudos

Hi Kasi,

THe component - ICCMP_BP_SEARCH

View - ICCMP_BP_SEARCH/BuPaSearchB2B

in this component .html page wee need to add code rite?

former_member198180
Active Participant
0 Kudos

HI Kasi,

Getting Error YOU MUST ASSIGN A VALUE TO THE PROPERTY ..tel me how to modifyt it..

Thanks

kalpana

dharmakasi
Active Contributor
0 Kudos

HI Kalpana,

This View - ICCMP_BP_SEARCH/BuPaSearchB2B for search screen.

Go to web ui and check the component name and view name by using F2. First get the exact result view name.

We are using ICCMP_BP_SEARCH/BuPaSelectCustomer  this view as result view in our project.

This statment   "downloadToExcel  = "TRUE" ' is used to control the down load to excel button to be displayed or not.

If you pass true it will display the button else will not display.

You have to modify the .htm page as shown below. I am giving reference, you just add downloadToExcel line alone in your .htm code.

<chtmlb:configTable id               = "<%= Customers->table_view_id %>"

                       onRowSelection   = "select"

                       table            = "//CUSTOMERS/Table"

                       selectedRowIndex = "<%= CUSTOMERS->SELECTED_INDEX %>"

                       visibleFirstRow  = "<%= CUSTOMERS->visible_first_row_index %>"

                       selectionMode    = "SINGLESELECT"

                       visibleRowCount  = "20"

                       personalizable   = "TRUE"

                       downloadToExcel  = "TRUE"

                       usage            = "SEARCHRESULT"

<%--                      headerText       = " "--%>

                       width            = "100%"

                       showNoMatchText  = "false"

                       reset            = "<%= reset_filter %>" />

Best Regards,

Dharmakasi.

former_member198180
Active Participant
0 Kudos

Hi Kasi,

Great Dear...Its working now..Thanks for your great help..Really thanks..

Thanks

Kalpana

dharmakasi
Active Contributor
0 Kudos

Hi Kalpana,

I am glad to help you. Please close the thread.

Br Kasi.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Kalpana

Check the assigned Technical Role assigned to the Business Role.

In Define Parameters under SPRO, check if EXPORT_DISABLE is configured, if so, delete this entry.

Regards

Arden

former_member198180
Active Participant
0 Kudos

Hi Arden,

Thanks for your quick reply...

Sir, EXPORT_DISABLE parameter is not available in configuration..Please help...

Thanks

Kalpana

former_member198180
Active Participant
0 Kudos

HI arden,

Could you please help here...

Former Member
0 Kudos

Hi Kalpana

Looks SAP Standard for ICAGENT Role.

You would need to make a custom enhancement to make this visible.

Regards

Arden

former_member198180
Active Participant
0 Kudos

Hi Arden,

I Couldnt able to find EXPORT_DISABLE ..could you please tell me the path..please help,,its urgent issue..

Thanks

kalpana

Former Member
0 Kudos

Hi Kalpana

Based on your response it does look like it's controlled by a variable value

From SPRO - IMG

Customer Relationship Management -> UI Framework -> Technical Role Definition -> Define Parameters.

Locate the Technical Profile assigned to the Business Role: under Profile Definition. Then check for Parameter Assignment: EXPORT_DISABLE if it visible then this is most likely your problem

Regards

Arden