Code: Alles auswählen.
DATA: it_sort TYPE lvc_t_sort WITH HEADER LINE.
Code: Alles auswählen.
CLEAR: it_sort.
it_sort-spos = '01'.
it_sort-fieldname = 'AMPEL'.
it_sort-up = 'X'.
APPEND it_sort.
CLEAR: it_sort.
it_sort-spos = '02'.
it_sort-fieldname = 'ZAEHLER'.
it_sort-up = 'X'.
it_sort-subtot = 'X'.
APPEND it_sort.
Code: Alles auswählen.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = g_repid
i_callback_user_command = 'USER_COMMAND'
i_structure_name = 'ZFSTRUKTUR'
i_grid_title = 'Titel''
is_layout = gs_layout
i_save = 'A'
it_fieldcat = it_feldkatalog
it_sort = it_sort[]
TABLES
t_outtab = it_ausgabe
EXCEPTIONS
program_error = 1
OTHERS = 2.