1 2 3 4 5 6 7 8 |
DATA gt_fieldcat TYPE slis_t_fieldcat_alv. CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING I_PROGRAM_NAME = SY-REPID * I_INTERNAL_TABNAME = 'XXX' "通过表名生成 I_STRUCTURE_NAME = 'XXX' "通过结构名生成 CHANGE CT_FIELDCAT = gt_fieldcat. |
1 2 3 4 5 6 |
DATA gt_fieldcat TYPE lvc_t_fcat. CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'XXX' "可以用表名,也可以用结构名 CHANGING ct_fieldcat = gt_fieldcat. |