Hello.
Try to use this badi ME_PROCESS_PO_CUST with the method CHECK.
There you can make all the validations that you want and send message using
INCLUDE mm_messages_mac.
mmpur_message_forced 'E' '000' '398' 'message text here' '' '' ''.
Regards
Miguel