Creating text example in sap abap programming language
************************************ create text example in sap abap programming language
DATA: sales_doc_number TYPE tdobname,
c_textid TYPE tdid,
t_line type STANDARD TABLE OF TLINE WITH HEADER LINE.
t_line-tdformat = '*'.
t_line-tdline = 'text for testing'.
APPEND t_line.
sales_doc_number = '1300000001'.
c_textid = '1001'.
call FUNCTION 'CREATE_TEXT'
EXPORTING
fid = c_textid
flanguage = sy-langu
fname = '1300000001'
fobject = 'VBBK'
save_direct = 'X'
fformat = '*'
TABLES
flines = t_line
EXCEPTIONS
no_init = 1
no_save = 2
others = 3.
WRITE : sales_doc_number.
DATA: sales_doc_number TYPE tdobname,
c_textid TYPE tdid,
t_line type STANDARD TABLE OF TLINE WITH HEADER LINE.
t_line-tdformat = '*'.
t_line-tdline = 'text for testing'.
APPEND t_line.
sales_doc_number = '1300000001'.
c_textid = '1001'.
call FUNCTION 'CREATE_TEXT'
EXPORTING
fid = c_textid
flanguage = sy-langu
fname = '1300000001'
fobject = 'VBBK'
save_direct = 'X'
fformat = '*'
TABLES
flines = t_line
EXCEPTIONS
no_init = 1
no_save = 2
others = 3.
WRITE : sales_doc_number.
Comments
Post a Comment