标签:
http://blog.itpub.net/9859323/viewspace-616508/
ls_hdname = wa_vbak-vbeln .
CALL FUNCTION ‘READ_TEXT‘
EXPORTING
client = sy-mandt
id = ‘0001‘
language = ‘1‘
name = ls_hdname
object = ‘VBBK‘
* ARCHIVE_HANDLE = 0
* LOCAL_CAT = ‘ ‘
* IMPORTING
* HEADER =
TABLES
lines = lt_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
如果是要用ABAP代码创建文本用函数CREATE_TEXT,修改文本用SAVE_TEXT
贴上用过的几个代码:
创建抬头文本
call function ‘CREATE_TEXT’
exporting
fid = ‘0001′
flanguage = ‘1′
fname = s_deliv_numb
fobject = ‘VBBK’
tables
flines = it_texts.
refresh it_texts.
创建行项目文本
call function ‘CREATE_TEXT’
exporting
fid = wa_thead-tdid
flanguage = ‘1′
fname = wa_thead-tdname
fobject = ‘VBBP’
tables
flines = it_texts.
标签:
原文地址:http://www.cnblogs.com/eagle-dtq/p/5347681.html