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

Module Pool

Former Member
0 Likes
515

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
494

try using LEAVE PROGRAM.

5 REPLIES 5
Read only

Former Member
0 Likes
495

try using LEAVE PROGRAM.

Read only

Former Member
0 Likes
494

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

Read only

0 Likes
494

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

Read only

Former Member
0 Likes
494

Hi Himanshu ,

You can use the command LEAVE PROGRAM to exit from the program.

Reagrds

Arun

Read only

Former Member
0 Likes
494

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