Skip to Content
1
Former Member
Feb 05, 2009 at 09:28 AM

ME21N - Custom Message

982 Views

Dear friends,

when i save the PO (ME21n or ME22n ) i want to validate Communication tab fields

for that i used user exit EXIT_SAPMM06E_012 and there include ZXM06U43 its triggered properly

i used following statements to display error message

IF I_EKKO-IHREZ IS INITIAL OR I_EKKO-UNSEZ IS INITIAL.
*    MESSAGE E030(ZLOAD).
*    MESSAGE 'Document incomplete! Please maintain LP number and order number in Communication tab' TYPE 'S'.
*    MESSAGE 'Document incomplete!' TYPE 'S'.
  mmpur_message 'E' 'ME' '040' 'Custom field not populated' '' '' ''. 

but when this part trigger another popup box comming with

Document still faulty
Do you want to put the document on hold or process data?

and also there are three buttons called HOLD EDIT CANCEL

I want to give a error message when it trigger in the status bar and document wont save.

Hope, you can understand my question... 😊

Thanks in Advance