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

SAP HANASAPSAP Basis

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.

raja
Published on 14-Dec-2017 05:23:30
Advertisements