Hide the fields from ABAP Report ALV Output Tool Bar
Hiding the fields on ALV Output Tool Bar :
Requirement : To Hide the ALV Tool bar in Display output.
Internal table & Work area declarations :
Data : it_exclude type slis_t_extab,
wa_exclude type slis_extab.
Write the Below Functionality before using
Function Module : 'REUSE_ALV_GRID_DISPLAY'
*& LIST OF BUTTONS EXCLUDING FROM ALV TOOLBAR
wa_exclude-fcode = '&ETA'. append wa_exclude to it_exclude. clear wa_exclude.
wa_exclude-fcode = '&OUP'. append wa_exclude to it_exclude. clear wa_exclude. “ Ascending
wa_exclude-fcode = '&ODN'. append wa_exclude to it_exclude. clear wa_exclude. “Descending
wa_exclude-fcode = '&UMC'. append wa_exclude to it_exclude. clear wa_exclude.
wa_exclude-fcode = '&ILT'. append wa_exclude to it_exclude. clear wa_exclude.
wa_exclude-fcode = '&RNT_PREV'. append wa_exclude to it_exclude. clear wa_exclude.
wa_exclude-fcode = '&VEXCEL'. append wa_exclude to it_exclude. clear wa_exclude. “Excel Download
wa_exclude-fcode = '%PC'. append wa_exclude to it_exclude. clear wa_exclude. “ Local file
wa_exclude-fcode = '%SL'. append wa_exclude to it_exclude. clear wa_exclude.
wa_exclude-fcode = '&GRAPH'. append wa_exclude to it_exclude. clear wa_exclude.
wa_exclude-fcode = '&OL0'. append wa_exclude to it_exclude. clear wa_exclude.
wa_exclude-fcode = '&OAD'. append wa_exclude to it_exclude. clear wa_exclude.
wa_exclude-fcode = '&AVE'. append wa_exclude to it_exclude. clear wa_exclude.
wa_exclude-fcode = '&INFO'. append wa_exclude to it_exclude. clear wa_exclude.
if output[] is not initial. “ IF Final Internal Table is containing Values
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = sy-repid
it_fieldcat = i_fcat
it_excluding = it_exclude
it_events = i_event
i_save = 'X'
tables
t_outtab = i_output
exceptions
program_error = 1.
else.
message text-006 type 'S' display like 'E'. "Text-006 : No Data Found
endif.
Requirement : To Hide the ALV Tool bar in Display output.
Internal table & Work area declarations :
Data : it_exclude type slis_t_extab,
wa_exclude type slis_extab.
Write the Below Functionality before using
Function Module : 'REUSE_ALV_GRID_DISPLAY'
*& LIST OF BUTTONS EXCLUDING FROM ALV TOOLBAR
wa_exclude-fcode = '&ETA'. append wa_exclude to it_exclude. clear wa_exclude.
wa_exclude-fcode = '&OUP'. append wa_exclude to it_exclude. clear wa_exclude. “ Ascending
wa_exclude-fcode = '&ODN'. append wa_exclude to it_exclude. clear wa_exclude. “Descending
wa_exclude-fcode = '&UMC'. append wa_exclude to it_exclude. clear wa_exclude.
wa_exclude-fcode = '&ILT'. append wa_exclude to it_exclude. clear wa_exclude.
wa_exclude-fcode = '&RNT_PREV'. append wa_exclude to it_exclude. clear wa_exclude.
wa_exclude-fcode = '&VEXCEL'. append wa_exclude to it_exclude. clear wa_exclude. “Excel Download
wa_exclude-fcode = '%PC'. append wa_exclude to it_exclude. clear wa_exclude. “ Local file
wa_exclude-fcode = '%SL'. append wa_exclude to it_exclude. clear wa_exclude.
wa_exclude-fcode = '&GRAPH'. append wa_exclude to it_exclude. clear wa_exclude.
wa_exclude-fcode = '&OL0'. append wa_exclude to it_exclude. clear wa_exclude.
wa_exclude-fcode = '&OAD'. append wa_exclude to it_exclude. clear wa_exclude.
wa_exclude-fcode = '&AVE'. append wa_exclude to it_exclude. clear wa_exclude.
wa_exclude-fcode = '&INFO'. append wa_exclude to it_exclude. clear wa_exclude.
if output[] is not initial. “ IF Final Internal Table is containing Values
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = sy-repid
it_fieldcat = i_fcat
it_excluding = it_exclude
it_events = i_event
i_save = 'X'
tables
t_outtab = i_output
exceptions
program_error = 1.
else.
message text-006 type 'S' display like 'E'. "Text-006 : No Data Found
endif.
Comments
Post a Comment