Application Development and Automation 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: 
Read only

how to exit from the loop

former_member459142
Participant
0 Likes
4,733

loop at itab.

if <CONDITION>

<EXIT LOOP>

endif

endloop.

this ths condition , pz tel how to exit from loop

loop at itab.

if <CONDITION>

<EXIT LOOP>

endif

endloop.

this ths condition , pz tel how to exit from loop

6 REPLIES 6
Read only

Former Member
0 Likes
1,843

just write EXIT

Read only

Former Member
0 Likes
1,843

loop at itab into wa_itab.

if sy-tabix = 2.

exit.

endif.

endloop.

this will end loop processing at 2nd record of loop.

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
1,843

Hi

Loop

statements

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

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

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

EXIT

Endloop.

Will comes out of the loop.

Regards,

Sreeram Kumar.Madisetty

Read only

former_member459142
Participant
0 Likes
1,843

thanks

Read only

Former Member
0 Likes
1,843

Hi,

Check the sample code:

Loop at t_itab.

if sy-tabix gt 3.
exit.
endif.

endloop.

Regards,

Rajani

Read only

Former Member
0 Likes
1,843

<<don't beg for points>>

I will delete 100 points from you.

Edited by: Vijay Babu Dudla on Mar 10, 2009 6:09 AM