Code: Alles auswählen.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'ZZTAB'
CHANGING
ct_fieldcat = i_fieldcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
READ TABLE i_fieldcat INTO w_fieldcat
WITH KEY fieldname = '<feldname>'.
IF sy-subrc = 0.
w_fieldcat-seltext_l = text-se1.
w_fieldcat-ddictxt = 'L'.
MODIFY i_fieldcat FROM w_fieldcat INDEX sy-tabix.
ENDIF.
Code: Alles auswählen.
DATA it_fieldcat TYPe lvc_t_fcat.
DATA wa_fieldcat like line of it_fieldcat.