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: 

Stop standard process in user exit (or badi) for ME21N.

Former Member
0 Kudos

Hello,

I have implemented a user exit (and also a BADI) for transaction code ME21N.

The user exit is executed before saving the purchase order.

In my user exit, I just check data and if they are wrong, I just want to stop the process displaying an error message.

So, I've just used 'MESSAGE Exxx(xxxx)'.

The problem is that the standard process catch the error and treat it in stead of stopping. The standard process treats the error and proposes the user to chose if he(she) wants to continue or to stop (within a popup).

I just want to stop the process, displaying a error message.

If someone has a idea about how I can realise that, please let me know.

Giuseppe,

3 REPLIES 3

Former Member
0 Kudos

Which Exit/Badi did you implement? And Error message should normally stop the process. Maybe you have implemented the wrong exit.

Former Member
0 Kudos

hello and thanks for your answer. I use the good user exit, I can see that in debug mode.

Former Member
0 Kudos

hello and thanks for your answer. I use the good user exit, I can see that in debug mode.