2007 Jan 18 9:09 AM
Hi forum,
I want to print a empty line in a word document. For that i use a standard text define in 'so10'. That text has a few paragraphs. I 'read' the text with the function: 'READ_TEXT'.
The table is type table of tline, but i want to print only the field tdline.
I have tried to use:
CONCATENATE LINES OF itab_lines INTO text respecting blanks.but with this i print the whole table including the field tdformat, and when i have tried to print only the field tdline the text appers all together withoue empty lines.
Any idea or code example¿?
Thanks in advance and regards,
Mon
Hi,
Loop at the itab_lines and store or concatenate as desired.
Regards
Subramanian
2007 Jan 18 9:12 AM
Hi,
Loop at the itab_lines and store or concatenate as desired.
Regards
Subramanian
2007 Jan 18 9:13 AM
Hi Mon,
You a loop at TLINE .
Transfer value tline-tdline to variable and use the concatenate statement .
declare text type string.
LOOP AT itab_lines.
concatenate itab_lines-tdline into text respecting blanks .
or transfer text to another varaible
displat text .
endloop.
Please reward if useful.
2007 Jan 18 11:22 AM
hi guys,
It doesnt work. The text apears without empty lines..
this is my code:
itab is extracted from the funcion 'READ_TEXT', because i am define some standard text in t-code 'SO10'.
data: itab TYPE TABLE OF tline,
text type string.
LOOP AT itab into line.
CONCATENATE text line-tdline INTO text respecting blanks.
ENDLOOP.Any idea¿?
Regards,
Mon
Message was edited by:
Mon
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |