2007 Feb 12 12:51 PM
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.
2007 Feb 12 12:53 PM
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
2007 Feb 12 12:54 PM
HI Neha,
It will get out of the loop.(Not just the If-endif block).
Regards,
Ravi