Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

hi immediate plz

Former Member
0 Kudos
98

hi ,

plz send me about read comapring statement in loop......

3 REPLIES 3

Former Member
0 Kudos
69

Former Member
0 Kudos
69

Hi,

Hi,

LOOP: looop will read each and evry record in the inetrnal table.

Loop doesnt return Sy-subrc value.

READ : statement will read only single record at at time and not more than that.

Read statement will return Sy-subrc value.

if we want to compare 2 internal tables (itab1 & itab2) then we will loop one internal table and read another internal table.

ex: loop at itab1 into w_itab1.

read table itab2 into e_iatb2 with key f1 = w_itab1-f1.

If sy-subrc = 0.

....

....logic...

endif.

endloop.

Regards