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: 

condition

Former Member
0 Kudos

Hi Friends,

I would like to one question.

If the condition is like

loop at itab into wa.

if wa-f1 GE ls_data-f1.

*ok further processing

exit.

else.

exit.

endif.

endloop.

My question is that if for the second record the condition fails where the control moves i.e. out of endif &

again doing check for third entry or the control will moves to out of endloop???

plz let me know asap.

2 REPLIES 2

Former Member
0 Kudos

Hi Neha,

The EXIT statement will move the order of processing out of the LOOP.

If you dont want to quit from the LOOP you can use the CONTINUE statement...

Regards

Wenceslaus

former_member181962
Active Contributor
0 Kudos

HI Neha,

It will get out of the loop.(Not just the If-endif block).

Regards,

Ravi