Code: Alles auswählen.
CASE tab_pressed.
WHEN 'A'.
CREATE OBJECT gv_container_a
EXPORTING container_name = 'CUSTOM_CONTAINER'.
WHEN 'B'.
CREATE OBJECT gv_container_b
EXPORTING container_name = 'CUSTOM_CONTAINER'.
ENDCASE.
CASE tab_pressed.
WHEN 'A'.
* ALV Liste
CREATE OBJECT gv_alv_list_a
EXPORTING i_parent = gv_container_a.
[...]
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = lt_fieldcat
IMPORTING
ep_table = gv_dref.
[...]
* ALV-INIT
CALL METHOD gv_alv_list_a->set_table_for_first_display
EXPORTING
i_structure_name = lv_structurename
is_variant = gs_variant
is_layout = gs_layout
i_save = 'U'
i_default = 'X'
i_bypassing_buffer = ' '
i_buffer_active = ' '
CHANGING
it_outtab = <g_tab>.
[...]
CALL METHOD gv_alv_list_s->refresh_table_display.
WHEN 'B'.
[ähnich wie A]
ENDCASE.
CALL SCREEN 0099.