on 04-08-2011 5:46 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.