Skip to Content
0
Former Member
Sep 26, 2010 at 05:39 AM

Regarding LOOP - Endloop Performance

25 Views

Dear All ,

I am using below code in my prg..

loop at itab.

loop at itab1 where matnr = itab-matnr.

endloop.

endloop.

IN this code itab is having only 1 row for particular matnr and in itab1 is having multiple row for particular matnr. and i am facing here performance issue . it is taking so much time. Because for particular matnr , program have to search matnr in whole itab1. so is there any code line i have to use so it can search directly matnr from itab1 and dont need to search whole table.... because here if itab is having m row and itab1 is having n row , than looping is happened mn times..

so , how can i reduce it ? please anybody know , than please help me for same...

Thank You ,