cancel
Showing results for 
Search instead for 
Did you mean: 

ALV Export

former_member186020
Participant
0 Kudos

Hi all,

I need a help..

I want to remove the option of "Export To Business Object Explorer" from the standard export button(list) in alv.

Thanks,

Vishesh.

Accepted Solutions (0)

Answers (3)

Answers (3)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I notice you are an SAP employee. What SAP system are you doing this development on? The Export to Business Objects Explorer doesn't exist in standard. I do believe this is a special customization that was made to SAP internal systems only via SAP IT.

Former Member
0 Kudos

Hi Thomas,

Althogh its a very old thread, I am commenting here as this is the only thread related to this issue. Although I am able to remove the standard tool bar buttons and custom buttons using 

cl_salv_functions->remove_function() but the I am unable to remove the SBO button. Has the button code not included for this remove_function?

Thanks,

Dev

abhimanyu_lagishetti7
Active Contributor
0 Kudos

I don't see the API for visibility of standard function BEX_ANALYZER seems working.

There is a work around.

delete the export button

LR_MODEL->IF_SALV_WD_STD_FUNCTIONS~SET_EXPORT_ALLOWED( ABAP_FALSE ).

add a custom exoprt button

*******EXPORT BUTTON ****************

DATA: LR_FUNCTION TYPE REF TO CL_SALV_WD_FUNCTION.

DATA: LR_BUTTON TYPE REF TO CL_SALV_WD_FE_BUTTON.

CREATE OBJECT LR_BUTTON.

LR_BUTTON->SET_TEXT( 'Export' ).

LR_FUNCTION = LR_MODEL->IF_SALV_WD_FUNCTION_SETTINGS~CREATE_FUNCTION( 'EXPORT' ).

LR_FUNCTION->SET_EDITOR( LR_BUTTON ).

Assign the standard function

LR_FUNCTION->SET_FUNCTION_STD( 'SALV_WD_EXPORT_EXCEL' ).

I have not tried this, but it should work

former_member186020
Participant
0 Kudos

Hi Abhimanyu,

Ya i think this will solve the prob. I was hoping of finding some standard method to do this.

Nyways thanks a lot.

Vishesh.

Former Member
0 Kudos

Hi..

Try like this..

data: lr_std TYPE REF TO if_salv_wd_std_functions.

l_VALUE type ref to Cl_Salv_Wd_Config_Table.

l_VALUE = l_ref_INTERFACECONTROLLER->Get_Model( ).

lr_std ?= l_value.

lr_std->SET_EXPORT_ALLOWED( abap_false ).

Cheers,

Kris.

former_member186020
Participant
0 Kudos

Hi Kris,

Thanks for replying.. the code u gave is for completely removing the export button from the ALV but,

my requirnment is i dont want to remove the export button completely but i want to remove the option of

"Export to Business Object Explorer" which is shown just below "Export to Excel" option which is shown on button click.

Thanks,

Vishesh.

Former Member
0 Kudos

HI ,

Check if the SPRO configs mentioned in the help link works or not..

[Link|http://help.sap.com/saphelp_nw70ehp2/helpdata/en/49/3e0e73347d3ef0e10000000a421937/frameset.htm]

Thanks,

Aditya.