DATA note_fcat TYPE TABLE OF lvc_s_fcat .
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'Structure'.
CHANGING
ct_fieldcat = note_fcat().
FIELD-SYMBOLS <test> LIKE LINE OF note_fcat().
LOOP AT note_fcat() ASSIGNING <test>.
CASE <test>-fieldname.
WHEN 'NAME'.
<test>-drdn_hndl = '1'.
<test>-outputlen = '28'.
<test>-edit = 'X'.
WHEN 'TEST1'.
<test>-coltext = 'NR1'.
<test>-outputlen = '7'.
<test>-checkbox = 'X'.
<test>-edit = 'X'.
WHEN 'TEST_DESC'.
<test>-coltext = 'NR2'.
<test>-outputlen = '7'.
<test>-checkbox = 'X'.
<test>-edit = 'X'.
WHEN OTHERS.
ENDCASE.
Serkan AKKAVAK
Computer Engineer
ABAP Developer & SAP S/4 HANA Logistics Team Lead
Contact : serkurumsal@yandex.com
Social Plugin