Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Print a empty line

Former Member
0 Likes
1,067

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 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

3 REPLIES 3
Read only

Former Member
0 Likes
514

Hi,

Loop at the itab_lines and store or concatenate as desired.

Regards

Subramanian

Read only

Former Member
0 Likes
514

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.

Read only

0 Likes
514

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