Loop...Where & Loop...Check in ABAP/4

Loop...Where


LOOP AT itab where key = pa1.
...
...
...
ENDLOOP.

Loop...Check

LOOP AT itab.
CHECK itab-key = pa1.
...
...
...
ENDLOOP.
In above logic, Loop...Where is better than Loop...Check because Loop...Where verifys the specified condition internally.

Post new comment