Code: Alles auswählen.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = p_tabnam
CHANGING
ct_fieldcat = gt_fieldcat
.
FIELD-SYMBOLS: <fieldcatalog> LIKE LINE OF gt_fieldcat.
LOOP AT gt_fieldcat ASSIGNING <fieldcatalog> WHERE fieldname = 'MANDT'.
<fieldcatalog>-tech = ''.
ENDLOOP.
CALL METHOD gr_alv->set_table_for_first_display
EXPORTING
i_structure_name = p_tabnam
CHANGING
it_outtab = lt_outtab
it_fieldcatalog = gt_fieldcat
.
Code: Alles auswählen.
CALL METHOD gr_alv->set_table_for_first_display
EXPORTING
i_structure_name = p_tabnam
CHANGING
it_outtab = lt_outtab
it_fieldcatalog = gt_fieldcat
.