Code: Alles auswählen.
* ALV-Layout einstellen
wa_layout-no_input = 'X'. " only display fields
wa_layout-colwidth_optimize = 'X'.
wa_layout-zebra = 'X'. " striped pattern
wa_layout-coltab_fieldname = 'COLOR'.
* ALV-Variante
wa_variant-report = sy-repid.
wa_variant-username = sy-uname.
h_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_bypassing_buffer = 'X'
i_callback_program = h_repid
is_layout = wa_layout
it_fieldcat = it_fieldcat
i_save = 'A'
is_variant = wa_variant
it_sort = it_sort
TABLES
t_outtab = it_output_alv
EXCEPTIONS
program_error = 1
OTHERS = 2.