‎2008 Oct 21 5:53 PM
Hi,
I need to insert several texts in a smartforms. The number of texts is stored in a variable. I want to do a loop but i don't know how to proceed. I've never done a loop without an internal table.
I want to do that :
While line_nb < 20 do
...
endwhile.
Thanks
‎2008 Oct 21 6:20 PM
Hi Dorien,
Define a Global variable in the smart form and set the value = 0.
Now do the loop on that global variable and put the condition . This will solve your problem.
Thanks,
Chidanand
‎2008 Oct 21 5:59 PM
Try
do.
......
......
......
if sy-index eq 20.
exit.
endif.
enddo
a®
‎2008 Oct 21 6:01 PM
Hi,
Create a template.
Keep that template inside the loop.
Go to conditions tab and set ur condition.
Regards
Avi
‎2008 Oct 21 6:20 PM
Hi Dorien,
Define a Global variable in the smart form and set the value = 0.
Now do the loop on that global variable and put the condition . This will solve your problem.
Thanks,
Chidanand
‎2008 Oct 22 8:07 AM
That's the solution i would use but I dont know how to create a loop with a simple variable. Smartform window only offers the possibility of creating loop for internal tables.
Thanks.
‎2008 Oct 22 8:11 AM
hi,
First create an internal table with one field.
Split the contents of your variable into this internal table.
Now use this internal table to display your contents.
I hope you know how to use a loop with internal table.
Regards,
Bhupal
‎2008 Oct 22 8:26 AM
Even if its not very clean, i will have to do that.
Thanks a lot.