Code: Alles auswählen.
gs_fieldcat_comp-fieldname = lv_fieldname.
gs_fieldcat_comp-datatype = 'CHAR'.
gs_fieldcat_comp-inttype = 'C'.
gs_fieldcat_comp-coltext = lv_fieldname.
gs_fieldcat_comp-seltext = lv_fieldname.
gs_fieldcat_comp-outputlen = 000020.
gs_fieldcat_comp-col_pos = lv_index.
gs_fieldcat_comp-tabname = 1.
gs_fieldcat_comp-intlen = 000020.
gs_fieldcat_comp-row_pos = 0.
gs_fieldcat_comp-just = 'L'.
gs_fieldcat_comp-reptext = ' '.
gs_fieldcat_comp-col_id = lv_index.
gs_fieldcat_comp-dd_outlen = 000020.
gs_fieldcat_comp-fieldname = lv_fieldname.
gs_fieldcat_comp-COLTEXT = ls_field-MATNR.
gs_fieldcat_comp-REPTEXT = ls_field-MATNR.
gs_fieldcat_comp-scrtext_l = ls_field-MATNR.
gs_fieldcat_comp-scrtext_m = ls_field-MATNR.
gs_fieldcat_comp-scrtext_s = ls_field-MATNR.
Code: Alles auswählen.
CALL METHOD go_alv_grid_comp->set_table_for_first_display
EXPORTING
is_layout = gs_layout
it_toolbar_excluding = lt_exclude
i_save = 'U'
is_variant = alvvariant
i_default = ' '
CHANGING
it_fieldcatalog = GT_FIELDCAT_COMP[ ] "HIer sind die eckigen Klammern hinter
it_outtab = LT_COMP_ALV.