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: 

Post an error message in MEREQ001- EXIT_SAPLMEREQ_008

Former Member
0 Kudos

Hi All,

I'm writing code in MEREQ001- EXIT_SAPLMEREQ_008.

In some cases I need to post an error message.

My problem that in ME51N when I get the message,

I can't go back or exit from the transaction ( unless I close the window ).

Does any one have any idea how to write an error message inside user exit ?

thanks,

Michal

4 REPLIES 4

Former Member
0 Kudos

Hi

Here you should insert a warming message instead of error one.

The message type E should be place in the exit for the final validations.

Max

gopalkrishna_baliga
Participant
0 Kudos

Hi Michal,

I am also trying the same but in a user exit for ME22N transaction. I have tried to add a code in some of the user exits attached to ME22N transaction but all in vain. When I try to run the ME22N transaction I cannot see my warning message. What could be the problem?

My code:

if sy-tcode = 'ME21N'.

MESSAGE w000(ZPO_MSG).

endif.

I will be greatful to you if you can help me.

Thanks

Gopal

0 Kudos

Hi,

Try EXIT_SAPLMEREQ_005 there is a message struct you can use.

But warning message should work. I wrote some warning messages and it's work fine. Put a breakpoint see if you get to your code.

0 Kudos

Hi MIchel,

CAn you please tell me which User exit you used for Mesage -> repeat output and for error messages,

I need to send a repeated IDOC when user press Repeat output button

Regards

Nik