Using AT_FIRST be used to initialize variables used in loop in SAP ABAPn



There would not be much of difference in both ways. The only thing is without AT_FIRST, the counter variables will be cleared in all cases while using AT_FIRST, the counter variables will be cleared only if there is at least one execution of the loop. So, the only difference would come into the picture if ls_itab is empty.

Rishi Raj
Rishi Raj

I am a coder


Advertisements