Code: Alles auswählen.
SUBMIT zmm_rm07_zmb52
WITH SELECTION-TABLE seltab VIA SELECTION-SCREEN
AND RETURN.
Code: Alles auswählen.
IF sy-calld = 'X'. "Program has been called via SUBMIT
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
it_fieldcat = fieldcat[]
TABLES
t_outtab = bestand[]. " Tabelle mit auszugebenden Daten
ELSE.
CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
EXPORTING
i_interface_check = l_f_check
i_callback_program = repid
is_layout = layout
it_fieldcat = fieldcat[]
i_default = 'X'
i_save = 'A'
is_variant = variante
it_events = gt_events[] "n667256
i_tabname_header = 'HEADER'
i_tabname_item = 'BESTAND'
is_keyinfo = keyinfo
is_print = alv_print
it_sort = sort[]
it_excluding = excluding[]
TABLES
t_outtab_item = bestand
t_outtab_header = header
EXCEPTIONS
OTHERS = 2.
ENDIF.
ENDIF.