‎2007 Apr 03 8:04 AM
Hi Experts,
I am working on a Module Pool program in which we are calling a function in Update task. In the Function Module, if say a condition is not met then I am using STOP statement after giving a success message. This is bcoz as per my understanding in a Update Module, we can't give and I,E or W message type.
Now, my issue is that when the processing reaches at STOP, it comes out of the FM, but the Module Pool Processing does not stops.
What can I do for stopping the Module-pool processing.
I hv tried EXIT, REJECT and RETURN statements also but still the same result.
Plz help me out.
Points are guaranteed.
Thanks a lot.
Regards,
Himanshu
‎2007 Apr 03 8:10 AM
‎2007 Apr 03 8:10 AM
‎2007 Apr 03 8:12 AM
hi himanshu
hope ths helps
The special behavior of STOP is: jump to end-of-selection. There is no equivalent for this in a module pool.
To end PAI, leave command is correct. Either as a 'leave screen' to jump to next screen in flow logic (maybe same screen with new PBO), as a 'leave to screen 0' to end the program or as a 'leave program', also as complete ending.
regards
navjot
reward accordingly
‎2007 Apr 03 8:24 AM
Hi Navjot,
Actually, the Function Module that I am using, STOP is being used in that.
i.e. In the Z Function Module, if a condition is not met, I am giving a message and writing STOP.
I want a statement which can be used in the FM and it will stop the Module Pool Processing also.
Plz help me out.
Its urgent.
Thanks a lot.
Regards,
Himanshu
‎2007 Apr 03 8:14 AM
Hi Himanshu ,
You can use the command LEAVE PROGRAM to exit from the program.
Reagrds
Arun
‎2007 Apr 03 8:20 AM
Hi,
go through the following links.
you can use
<b>leave program
leave screen
leave to list processing</b>
according to your requirement.
http://help.sap.com/saphelp_47x200/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_47x200/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm