Skip to Content
0
Former Member
Jul 31, 2006 at 08:27 AM

write long text

320 Views

Hi,

i want to write long text to production order header. code as below:

  • write header long text

TEXT_HEADER-TDID ='KOPF'.

TEXT_HEADER-TDOBJECT = 'AUFK'.

TEXT_HEADER-TDSPRAS = 1.

CONCATENATE SY-MANDT t_ponum INTO TEXT_HEADER-TDNAME.

clear text_lines.

text_lines-TDFORMAT = '*'.

text_lines-TDLINE = IT_component-Gline1.

append text_lines.

text_lines-TDFORMAT = '*'.

text_lines-TDLINE = IT_component-Gline2.

append text_lines.

text_lines-TDFORMAT = '*'.

text_lines-TDLINE = IT_component-Gline3.

append text_lines.

text_lines-TDFORMAT = '*'.

text_lines-TDLINE = IT_component-Gline4.

append text_lines.

text_lines-TDFORMAT = '*'.

text_lines-TDLINE = IT_component-Gline5.

append text_lines.

CALL FUNCTION 'SAVE_TEXT'

EXPORTING

HEADER = TEXT_HEADER

TABLES

LINES = text_lines.

But with no long text in PO. any problem?