‎2009 Jan 20 2:50 AM
Hi ABAP experts,
Can anyone please tell the difference between EXIT and LEAVE THE PROGRAM in WHEN statement.
Thanks,
Creasy Matt
‎2009 Jan 20 3:08 AM
Hi,
EXIT will take you out from the Current Processing Block i.e WHEN , whereas LEAVE PROGRAM will terminate the program.......
‎2009 Jan 20 3:08 AM
Hi,
EXIT will take you out from the Current Processing Block i.e WHEN , whereas LEAVE PROGRAM will terminate the program.......
‎2009 Jan 20 4:06 AM
Hi,
LEAVE PROGRAM always leaves the current program - there is never any processing after LEAVE PROGRAM !
While If you use the EXIT statement within an event block but not in a loop, the system stops processing the block immediatelyand If the EXIT statement occurs inside a DO, WHILE, or LOOP loop, it is the loop that terminates, not the processing block.
I think it will help you.
regards,
Lokesh
‎2009 Jan 20 4:11 AM
Hi Mathew,
The EXIT stmt will leave the current porcessing block
The LEAVE PROGRAM stmt will leave the Executing Program.
Regards
GP