09-04-2009 8:20 AM
Hi experts,
I want to disable export button and export options from list menu from ALV output so that no one can take the output in any local file.
How to do this? Pls help.
With regards,
Goutam
09-04-2009 8:40 AM
data: it_exclude type ui_functions,
wa_exclude type ui_func.
wa_exclude = cl_gui_alv_grid=>MC_MB_EXPORT. "here you add certain MC* constant from cl_gui_alv_grid to exclude it from ALV toolbar
APPEND wa_exclude to it_exclude.
CALL METHOD o_alv_grid->set_table_for_first_display
EXPORTING
...
IT_TOOLBAR_EXCLUDING = it_exclude.
If still some export options are visible append these constants as above
cl_gui_alv_grid=>MC_FC_EXPCRDATA
cl_gui_alv_grid=>MC_FC_DATA_SAVE
cl_gui_alv_grid=>MC_FC_EXPCRTEMPL
Regards
Marcin
09-04-2009 8:54 AM