Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Performance tuning LOOP within a LOOP

Hi experts,

Good Day!

I need your help about a program that i will apply performance tuning because the program is very slow. there was one internal table that will retrieve 23,000 data entries that will be use in the loop. can you help me how the program's performance will be fast.

SELECT aufnr

auart

autyp

werks

astnr

objnr

INTO TABLE i_aufk FROM aufk

WHERE aufnr IN s_aufnr

AND auart IN s_auart

AND werks IN s_werks.

LOOP AT i_aufk INTO x_aufk.

LOOP AT i_akpo INTO x_akpo WHERE aufnr = x_aufk-aufnr.

ENLOOP.

ENLOOP.

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question