on 04-27-2009 7:35 AM
Hi folks,
I have to display layout like below in the main window,
first row: header data (it_header)
second row: item data (it_item)
i have data into 2 differnt table, I want loop inside loop at smarforms level. Can I do that, at form level.
Please helo me out.?
Hii,
You can use nested loop in smartforms.To print header data and item data alternatively use this logic in smartform.
loop header
put text to display header
loop item
put text to display item
endloop "item
endloop "header
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can use Tables or loops
for this you can create 1 loop (it_header)
create TABLE1 with (it_header) : here you need to compare with key filed
like wa_header-key filed = wa_header ( loop work area)
create TABLE2 with (it_item) : here you need to compare with key filed
like wa_item-key filed = wa_header ( loop work area)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Yes . you can use nested loop. But what is your perfect requirement?
I think for Header and Item data you can directly use Table node. Try to work with it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.