GT_TABLE type ref to data
GW_LINE type ref to data
<FT_HEAD> TYPE STANDARD TABLE, "内表
<FS_HEAD> TYPE ANY, "结构
创建METHOD:
CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
IMPORTING
EP_TABLE = GT_TABLE
ASSIGN GT_TABLE->* TO <FT_HEAD>.
CREATE DATA GW_LINE LIKE LINE OF <FT_HEAD>.
ASSIGN GW_LINE->* TO <FS_HEAD>.
值:ASSIGN COMPONENT 'WERKS' OF STRUCTURE <FS_HEAD> TO <DYN_FIELD>.
read table:
READ TABLE <FT_ITEM> ASSIGNING <FS_ITEM> WITH KEY ('WERKS') = L_WERKS
('ORGEH_T') = L_ORGEH_T
('SFDMT') = L_SFDMT
('CSDMT') = L_CSDMT
('QXDMT') = L_QXDMT.