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

Text element having multiple lines.

Former Member
0 Likes
2,528

Hi Experts

I am able to use the text element having single line for displaying it in my

smartform, by using READ_TEXT Function Module.

I have to use a text element having multiple lines which I am not able to achieve with READ_TEXT F.M.; as in the loop i am able to get only the last line in the output, not the entire text.

Do we have any way to achieve this?

Thanks in advance.

Regards

Vishal

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,355

Hi Vishal,

assume that the text that is returned by the READ_TEXT function module is ITAB. then you can move it to a variable like this.

loop at itab.

concatenate v_str itab-TDLINE into v_str.

endloop.

But as an alternative, why do you need to use a READ_TEXT fm at all??

YOu can directly use a text element in the smartform itself to print a Standard text.

REgards,

Ravi

5 REPLIES 5
Read only

Former Member
0 Likes
1,356

Hi Vishal,

assume that the text that is returned by the READ_TEXT function module is ITAB. then you can move it to a variable like this.

loop at itab.

concatenate v_str itab-TDLINE into v_str.

endloop.

But as an alternative, why do you need to use a READ_TEXT fm at all??

YOu can directly use a text element in the smartform itself to print a Standard text.

REgards,

Ravi

Read only

0 Likes
1,355

Hi Ravi

Many thanks for your reply; The requirement is something that a user can change a text element whenever he wants and he can get the desired output in the form.

I tried using concatenate but I am getting the output in a single statement kind of thing; what I need is in different lines.

Do we have any solution for this kind of output.

Regards

VIshal

Read only

0 Likes
1,355

Hi Vishal,

Why dont you (within your smartform) have a table which loops at the text element table and print each TDLINE ... .make the table without borders and only one column to appear as a text box. This will prevent u from having to worry about the number of lines also.

mvh

aditya

Read only

0 Likes
1,355

Hi Aditya

Many thanks for your reply, I hope this should work. Could you please give me some more inputs like how to print each line in the loop, to make table without borders and get the output.

It will be great help if you can spend some time to get the solution.

Regards

Vishal

Read only

Former Member
0 Likes
1,355

Hi vishal ,

chk this