‎2007 Mar 02 9:32 AM
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
‎2007 Mar 02 9:38 AM
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
‎2007 Mar 02 9:38 AM
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
‎2007 Mar 02 10:12 AM
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
‎2007 Mar 02 4:26 PM
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
‎2007 Mar 03 11:22 AM
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
‎2007 Mar 02 9:40 AM