‎2007 Oct 01 8:58 AM
Hi,
I have a program checking a certain condition in PBO. I give message of type 'E' according to the value of a variable.
I call the mentioned program from another program with: "call transaction 'ZSDBD075'.". After the call, the program gives the message and not only the the program itself but the calling program also exits. That forwards the user to the "Start Sap Easy Access" button.
I want only the called program to exit not the caller one. How can I do that?
thanks,
- ferudun
‎2007 Oct 01 9:06 AM
Hi,
You should not throw messages of type 'E' in the PBO, when ever there is a message of type 'E' the current processing block will exit and error is shown to the user. From there you cannot proceed with your called program. As program as got an error message and you cannot handle that. Error messages are supposed to be used in PAI and generally used to force the user to make some mandatory input.
What you can do is either change the message type to I or S in which case your calling program will show this message.
Also check DISPLAY LIKE option of MESSAGE keyword.
Regards,
Sesh
‎2007 Oct 01 9:02 AM
‎2007 Oct 01 9:03 AM
‎2007 Oct 01 9:03 AM
Hi ..
We should not generate type E messages in PBO. They should be used only in PAI for Validations.
In PBO you call the Message of type 'I' (Information) .
Then it will work.
<b>Reward if helpful.</b>
‎2007 Oct 01 9:04 AM
‎2007 Oct 01 9:06 AM
Hi,
You should not throw messages of type 'E' in the PBO, when ever there is a message of type 'E' the current processing block will exit and error is shown to the user. From there you cannot proceed with your called program. As program as got an error message and you cannot handle that. Error messages are supposed to be used in PAI and generally used to force the user to make some mandatory input.
What you can do is either change the message type to I or S in which case your calling program will show this message.
Also check DISPLAY LIKE option of MESSAGE keyword.
Regards,
Sesh