12-12-2007 3:29 AM
12-12-2007 3:58 AM
Possible, but may cause performance problems. See:
<a href="/people/rob.burbank/blog/2006/02/07/performance-of-nested-loops">The Performance of Nested Loops</a>
Rob
12-12-2007 3:37 AM
Hi sri
Absolutely possible.
But that's recommended guideline.
Regards,
Sree
12-12-2007 3:43 AM
Hi Sri,
Loop inside loop is possible but on certains conditions where its unavoidable.
Regards
Avi
12-12-2007 3:58 AM
Possible, but may cause performance problems. See:
<a href="/people/rob.burbank/blog/2006/02/07/performance-of-nested-loops">The Performance of Nested Loops</a>
Rob
12-12-2007 4:55 AM
Hi sri,
it is posible clearly.
see this code.
data: t_spfli type table of spfli with header line,
t_sflight type table of sflight with header line.
select * from spfli into table t_spfli.
select * from sflight into table t_sflight.
loop at t_spfli.
write:/ t_spfli-carrid,
t_spfli-connid.
loop at t_sfplight where carrid eq t_spfli-carrid
and connid eq t_spfli-connid.
write / t_sflight-fldate.
endloop.
endloop.
Plz Reward if useful,
Mahi.
Message was edited by:
Maheswari Chegu
12-12-2007 5:01 AM
yes, its possible but performance my decrease. But there are some way to improve it check this links:
http://sapstore.blogspot.com/2006/12/performance-tips-netsed-loops.html
So depending on ur requirement u can use different alternative.
Plz reward points if useful
Thanks & Regards,
Vikram
12-12-2007 5:09 AM
Hi,
It is definitely possible but it depends how you want to use it.. If your loop has selects from database tables it is really not feasible and should not be done but if it is reading from the internal tables it will not cause problems with database but your ABAP memory will be affected.
Also loop in loop means that your performance will always take a beating.
Prince
12-12-2007 5:13 AM
Hi vasu
If you are satisfied with given answers, please close your threads by giving points for useful answers which u feel.
Regards,
Sree
12-12-2007 5:19 AM
Hi sri,
Loop inside a loop is possible until you are not using a SELECT inside a LOOP.