Skip to Content
0
Aug 02, 2007 at 09:05 AM

performance of a loop

22 Views

Hello All,

I have a nested loop which loops through two internal tables wsel and msel. Since there are thousands of records, this loop was taking time. It was found via ST12. Could anyone suggest way to improve this code so that it takes less time.

loop at msel where idxwt eq index.

loop at wsel where cuobj eq msel-cuobj

and mode eq ymodes-mode

and fwprd ne 0

and wtsta ne 'D'.

ssel-fsum = ssel-fsum + wsel-fwprd.

exit.

endloop.

endloop.

Thanks in advance

Sudha