Skip to Content
0
Former Member
May 09, 2008 at 05:05 AM

Doubt in loop.......endloop and Read..........

25 Views

Hi,

the current syntax we are using for looping a internal table is

1. loop at itab

assigning <fs_itab>.

if <fs_itab> is assigned.

..................................

endif.

endloop.

My TL suggested me that if the field symbol is not assigned then it will not move into the loop. So there is no need for checking if the field symbol is assiged or not. I am not sure please suggest.

2. One more question current read syntax we are using

read itab assigning <fs_itab>............

if <fs_itab> is assigned.

endif.

instead of checking if the field symbol is assigned can check the sy-subrc.

will there be any case in which even if the field symbol is not assigned there is chance of sy-subrc eq 0. Please suggest