2009 Feb 16 4:15 AM
Hello Friends,
I have a requirement in which i want to print two different data in the same from and such tht the first loop data should not overwrite second loop data.
In brief:
header title
loop.
endloop.
item title
loop
endloop
how to restrict no of items printed inside first loop so tht it should not overwrite other loop data.??
Thanks,
Sunny
Hello Friends,
I have a requirement in which i want to print two different data in the same from and such tht the first loop data should not overwrite second loop data.
In brief:
header title
loop.
endloop.
item title
loop
endloop
how to restrict no of items printed inside first loop so tht it should not overwrite other loop data.??
Thanks,
Sunny
2009 Feb 16 4:18 AM
Hi Sunny,
Create 2 text elements respectively for header and item.
Then use protect and endprotect for each text element.
Now to avoid over writing try taking 2 windows for header and item respectively then pass your data
Hope it helps!
Much Regards,
Amuktha.
Edited by: Amuktha Naraparaju on Feb 16, 2009 5:19 AM
2009 Feb 16 4:21 AM
Hi,
You can use 2 separate internal tables with the required data you want to appear in both.
I hope this solves your problem.
2009 Feb 16 4:23 AM
hi.
Send the data to the smartforms from your driver program in two different tables. means seprate the data according to ur need in two itab and pass them to smartforms.
Now in smart form create two table window. and in table parameter tab write
itab1 into itab1.
itab2 into itab2.
create lines independently fro both tables and display it.
hope u got it
2009 Feb 16 4:27 AM
hi,
use different text window for both the loops so the data will not be overwritten.
i.e., in the first loop take a text window and write the data over there and in the second loop again define a text window and write the data over there.
or you can define 2 tables with the loop of 2 different internal table.
thanks
sarves
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |