on 09-24-2012 9:46 AM
I am using bind statement in loop am getting all required data in internal but when binding internal table is displaying only last retrived value.
ex.
loop at it into wa.
Processing
lo_nd->bind_table(it1).
endloop.
it returns only last table binded
I am using row repeater my parent node table (one which am binding to row repeater) contains 2 entries and its subnode contains 14 entries
,I want to display the the row repeater with my parent node (project) and subnode times.
but is been able to display it only project times,
EX.
Parnet node (binding to row repeater)
|
---------------------Subnode (wanna display row repeater for every subnode with parnet node)
Thanks regards
Mangesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mangesh,
If you don't explicitly pass in parameter SET_INITIAL_ELEMENTS, its default value is TRUE, which tells the method to overwrite any existing elements and replace them with NEW_ITEMS. If you instead pass in SET_INITIAL_ELEMENTS = FALSE, the method will append the NEW_ITEMS to the existing elements, which I think is what you are trying to do.
Cheers,
Amy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Mangesh,
If I understood you correctly, you are trying to bind the table During the loop. In this case while looping, each time it is binding the table. That mean each time the new data is replacing the old data from the bound table. Hence you are able to see only the last retrieved value.
In this case what you could do is, you could take another internal table and according to your filter during the loop, instead of bind the table, you could append these data to your new internal table.
Then you bind your new internal table after the loop.
I hope this should work for you.
Regard,
Nitin,
RBEI
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
First loop your internal table into final internal table and then bind it. Don't use bind stmt inside loop.
loop at itab in wa.
do processing
append wa to itab_final.
endloop.
now bind.
lo_nd->bind( itab_final ). " all the required data will be in itab_final
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
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.