Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable export options in ALV

Former Member
0 Kudos

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

2 REPLIES 2

MarcinPciak
Active Contributor
0 Kudos

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

0 Kudos

Thanks.