Call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_structure_name = 'zposdw_taskstatus_alv'
is_layout = ls_layout
* it_fieldcat = gt_fieldcat[]
it_excluding = lt_exclude[]
it_sort = lt_sort[]
tables
t_outtab = status_changes
exceptions
program_error = 1
others = 2.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
------------------------
data: ls_layout type slis_layout_alv,
lt_sort type slis_t_sortinfo_alv.
data: lt_exclude type slis_t_extab.
data lw_exclude like line of lt_exclude.
lw_exclude-fcode = '&ETA'. " Drucktaste Detail
append lw_exclude to lt_exclude.
lw_exclude-fcode = '&UMC'. " Summationsfunktion
append lw_exclude to lt_exclude.
lw_exclude-fcode = '&SUM'. " Zwischensumme
append lw_exclude to lt_exclude.
lw_exclude-fcode = '&ABC'. " ABC-Analyse
append lw_exclude to lt_exclude.