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: 

ME21N error message dsplay

Former Member
0 Kudos

Dear Group members,

I did the user exit enhancement for ME21N. It is working fine.

but the only problem is "instead of error (E) message it is showing the

information ( I ) message.

i write the code ( MESSAGE 'J1ID - Not maintained' TYPE 'E' ) like this.

but it is showing 2 information messages only not error message.

1. J1ID - Not maintained

2.System error (error in method PO_POST)

please give the solution.

4 REPLIES 4

Former Member
0 Kudos

Hi Rahil,

Could you please tell us what  user exit you use in ME21n  then we will try to help you?

Regards,

Prasenjit

Former Member
0 Kudos

Can you please tell the exit name and your code as well.

Regards,

Vadamalai A

Former Member
0 Kudos

Hi Rahil,

I believe the best approach to accomplish the required task is to use the macro i.e. MMPUR

Below is the said syntax for the same

  • mmpur_message/ mmpur_message_forced ls_message-type ls_message-id

              ls_message-number

              ls_message-message_v1

              ls_message-message_v2

              ls_message-message_v3

              ls_message-message_v4.

example: mmpur_message/ mmpur_message 'E' 'J1D' message number  textn.

Please validate the same at your end, let me know in case you require any further inputs from my end.

BR/Thanks

Pranav Agrawal   

raymond_giuseppi
Active Contributor
0 Kudos

Don't raise error in this exit  (which one, during method POST) it is too late, it is time to switch to BAdI ME_PROCESS_PO_CUST, and use the macro provided (use search tool or read SPRO documentation) to raise an error in a PROCESS_HEADER/ITEM or CHECK method.

Regards,

Raymond