Code: Alles auswählen.
Data:
g_grid TYPE REF TO cl_gui_alv_grid,
g_custom_container TYPE REF TO cl_gui_custom_container.
DATA: BEGIN OF gt_outtab OCCURS 0.
DATA: light TYPE c.
INCLUDE STRUCTURE zeigene_tabelle.
DATA: ct TYPE lvc_t_scol. "Table for colors
DATA: celltab TYPE lvc_t_styl.
DATA: END OF gt_outtab.
CREATE OBJECT g_custom_container
EXPORTING
container_name = g_container.
CREATE OBJECT g_grid
EXPORTING
i_parent = g_custom_container.
CALL METHOD g_grid->set_table_for_first_display
EXPORTING
it_toolbar_excluding = lt_exclude
is_layout = gs_layout
is_variant = gs_variant
i_save = x_save
CHANGING
it_fieldcatalog = pt_fieldcat
it_outtab = pt_outtab[].
Code: Alles auswählen.
create object grid1
exporting
i_parent = cl_gui_container=>screen0.