Creating text example in sap abap programming language

************************************ create text example in sap abap programming language

DATAsales_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

Popular posts from this blog

all user exit mv45afzz (implicit user exit )

How to Give Dropdown in alv report in sap abap programming Language

Long Text in input and output field in module pool