SAP 销售订单的文本项目
Posted 衣斜川
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SAP 销售订单的文本项目相关的知识,希望对你有一定的参考价值。
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.
以上是关于SAP 销售订单的文本项目的主要内容,如果未能解决你的问题,请参考以下文章