on 09-29-2011 5:19 PM
Hi,
In smartforms...
I have a box to print address and after that next box(MAIN) for line item details.
My requirement is - I need to loop these 2 boxes..
Example
I have internal table with 9 records - which has 3 different address each having 3 line items
Then I need to display something like this...
address 1 -
Line items details - 1
Line items details - 2
Line items details - 3
Address 2 -
Line items details - 4
Line items details - 5
Line items details - 6
Address 3 -
Line items details - 7
Line items details - 8
Line items details - 9
Hi
You have to print all in the MAIN
Max
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry
I've understood both elements are in MAIN
What does BOX meam? Is it a template?
You can create another internal table with the address, so you can loop the table with the item nested into the loop of the table with address:
LOOP AT T_ADDRESS.
------->Print Address data
LOOP AT T_ITEM WHERE ADDRESS = T_ADRESS.
--------> Print Item data
Max
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.