REPORT YTEST0014 .
DATA A_SPFLI TYPE SPFLI.
DATA TA_SPFLI TYPE TABLE OF SPFLI WITH HEADER LINE.
ULINE.
WRITE / '使用工作区'.
ULINE.
SELECT * INTO CORRESPONDING FIELDS OF A_SPFLI FROM SPFLI UP TO 5 ROWS.
WRITE: / A_SPFLI-CONNID,A_SPFLI-CARRID,A_SPFLI-CITYFROM,
A_SPFLI-CITYTO.
ENDSELECT.
ULINE.
WRITE / '使用内表'.
ULINE.
select * into corresponding FIELDS OF TABLE TA_SPFLI FROM SPFLI UP TO 5
ROWS.
LOOP AT TA_SPFLI.
WRITE: / TA_SPFLI-CONNID,TA_SPFLI-CARRID,TA_SPFLI-CITYFROM,
TA_SPFLI-CITYTO.
ENDLOOP.
ULINE.
WRITE / '将内表数据转移至工作区'.
ULINE.
LOOP AT TA_SPFLI INTO A_SPFLI.
WRITE: / A_SPFLI-CONNID,A_SPFLI-CARRID,A_SPFLI-CITYFROM,
A_SPFLI-CITYTO.
ENDLOOP.