TYPES: BEGIN OF Z100T_REC,
cus_num like KNA1-KUNNR,
name like KNA1-NAME1,
s_term like KNA1-SORTL,
city like KNA1-ORT01,
pos_code like KNA1-PSTLZ,
country type KNA1-SPRAS,
Language type Kna1-spras,
end of Z100T_REC.
DATA: STRU TYPE Z100T_REC.
SELECTION-SCREEN BEGIN OF BLOCK BLK1 WITH FRAME TITLE text-t01.
parameters: fname type STRING default 'ZFILE100_SF01.txt'.
selection-screen end of block blk1.
open dataset fname for input in text mode encoding default.
DO.
read dataset fname into stru.
IF sy-subrc <> 0.
exit.
ENDIF.
write: / stru.
ENDDO.
close dataset fname.
将服务器上的文件内容读到内表(read a sequential file)
最新推荐文章于 2023-01-09 09:39:33 发布