Application Development 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: 

user exit message problem

Former Member
0 Kudos
97

hi all

i am giving an error message in a user exit the error message comes as a pop up and moving ahead takes me out of the transaction i seriously donot want this.

even worning messages are coming as success ones

is there a way out for giving error msg

regards

navjot

4 REPLIES 4

former_member194669
Active Contributor
0 Kudos
74

Hi,

May be like


MESSAGE s000(xxx) DISPLAY LIKE 'E'.

0 Kudos
74

Hi,

First Check the Exit , whether it is an PBO or PAI exit. You can give an I message and force user to stay on the same screen .

Please Check the Program DEMO_MESSAGES , to understand the Message behaviour

Message was edited by:

Hari Charan Dingari

alejandro_bindi
Active Contributor
0 Kudos
74

Check exit documentation. There are certain exits where you can't trigger messages. Also have in mind that the MESSAGE sentence implicitly triggers a COMMIT or a ROLLBACK depending on it's type.

Regards.

Former Member
0 Kudos
74

Post details of the transaction code you are trying to issue the message in, and of the exit you are using.

Often transactions have multiple user exits, and you may be using the wrong one to issue the message.

In some cases like Purchase Orders you need to call SAP code / macros to add the message to a list of messages that the standard screen will then display.

Andrew