Skip to Content
0
Jan 27, 2009 at 08:08 PM

exit while in loop

887 Views

hie guys

i am looping at two internal tables and want to exit through an if statement when a condition specified is not met however the code exits both loops.

loop at itab1.

loop at itab2.

if itab2-value eq 0.

exit.

else.

process.

endif.

endloop.

endloop.

however its not behaving as such..i have tryed to use return statement but it still wont work. i have verified my entries and the conditions exist to be true for some entries ie itab2-value ne 0 but the program exists. please assist.

regards.

Isaac Prince