Code: Alles auswählen.
DATA: grid1 TYPE REF TO cl_gui_alv_grid,
g_custom_container TYPE REF TO cl_gui_custom_container,
g_container TYPE scrfname VALUE 'T_0100_CONT'.
IF g_custom_container IS INITIAL.
CREATE OBJECT g_custom_container
EXPORTING container_name = g_container.
CREATE OBJECT grid1
EXPORTING i_parent = g_custom_container.
CALL METHOD grid1->set_table_for_first_display
EXPORTING
i_structure_name = 'ZSTRUKT'
* IS_LAYOUT
CHANGING
* it_fieldcatalog = gt_fieldcatalog
it_outtab = gt_test.
CREATE OBJECT event_receiver.
SET HANDLER event_receiver->handle_double_click FOR grid1.
ENDIF.
CALL METHOD cl_gui_control=>set_focus
EXPORTING
control = grid1.
Code: Alles auswählen.
CALL METHOD grid1->set_table_for_first_display
it_fieldcatalog = gt_fieldcatalog
it_outtab = gt_test.