1.创建长文本:CREATE_TEXT
查询长文本:READ_TEXT
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
fid = 'KOPF' "订单抬头文本ID
flanguage = sy-langu “语言
fname = fname 客户端+前导零工单号
fobject = 'AUFK' "文本对象
save_direct = 'X'
- fformat = '*'
TABLES
flines = flines
EXCEPTIONS
no_init = 1
no_save = 2
OTHERS = 3.
IF sy-subrc = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
ENDIF.
2.直接调用save_TEXT函数