ABAP读取物料长文本

分享到: 更多

下面是读取一个物料长文本的例子:

DATA: P_LINES LIKE TLINE OCCURS 0 WITH HEADER LINE.

START-OF-SELECTION.

CALL FUNCTION ‘READ_TEXT’
EXPORTING
CLIENT   = SY-MANDT
ID       = ‘GRUN’
LANGUAGE = ’1′
NAME     = ’000107020080001758′   “物料编码
OBJECT   = ‘MATERIAL’
TABLES
LINES    = P_LINES.

LOOP AT P_LINES .
WRITE:/ P_LINES-TDLINE.
ENDLOOP.

 

Leave a Reply

Google AdWords