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

Message Type 'E' in PBO

Former Member
0 Likes
1,315

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

1 ACCEPTED SOLUTION
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
890

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

5 REPLIES 5
Read only

Former Member
0 Likes
890

Please change the Message type to 'I'.

Read only

Former Member
0 Likes
890

try continue instead of exit.

Read only

varma_narayana
Active Contributor
0 Likes
890

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>

Read only

Former Member
0 Likes
890

Hi,

Use AT EXIT COMMEND.

Regards,

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
891

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