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.
Thanks in advance