Code: Alles auswählen.
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = gs_extract1-report
i_structure_name = 'SPFLI'
IT_EVENTS = ''
tables
t_outtab = gt_spfli.
DATA itab TYPE TABLE OF SLIS_T_EVENT.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = itab
EXCEPTIONS
LIST_TYPE_WRONG = 1
OTHERS = 2
.
Code: Alles auswählen.
DATA:...
it_events TYPE slis_t_event,
event LIKE LINE OF it_events,
...
* Statistik am Ende der Liste falls gewünscht
CLEAR event.
event-name = 'END_OF_LIST'.
event-form = 'ALV_END_OF_LIST'.
APPEND event TO it_events.
CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
EXPORTING
...
it_events = it_events
...
TABLES
...
EXCEPTIONS
program_error = 1
OTHERS = 2.
*&---------------------------------------------------------------------*
*& Form alv_end_of_list
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM alv_end_of_list.
CHECK g_show_statistic_alv = 'X'.
PERFORM statistics_alv_new.
ENDFORM. "alv_end_of_list