Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

avoid loop with in the loop

Former Member
0 Kudos
102

how to avoid loop with in the loop? how to transfer data from 2 internal tables to another internal table in nested loop?

2 REPLIES 2

Former Member
0 Kudos
77

Hi

Loop at first itab.

read the second int table with key f1 = itab-f2.

if sy-subrc = 0.

move the related fields to another itab4.

endif.

read the third int table with key f1 = itab-f3.

if sy-subrc = 0.

move the related fields to another itab4.

endif.

append itab4.

clear itab4.

endloop.

<b>Reward points for useful Answers</b>

Regards

Anji

Former Member
0 Kudos
77

It's all here:

/people/rob.burbank/blog/2006/02/07/performance-of-nested-loops

Rob