Skip to Content
0
Former Member
Nov 13, 2006 at 09:30 PM

Improve the performance of code

15 Views

Is there any efficient replacement or other way of achieving this ?

Due to large num of record in tab_open table as well as itab_10 , the system is taking forever to read the records ....!!

How may i increase the performance of the code ?

loop at tab_open.

loop at itab_10 where matnr = tab_open-matnr and lgtyp <> '916'.

total = total + itab_10-verme.

if itab_10-lgnum = '10W'.

tab_open-custr2inv10w = tab_open-custr2inv10w + itab_10-verme.

endif.

if itab_10-lgnum = '11W'.

tab_open-custr2inv11w = tab_open-custr2inv11w + itab_10-verme.

endif.

endloop.

endloop.