Skip to Content
author's profile photo Former Member
Former Member

Error message

Hi,

My requirement is to throw an error message on PO Creation Screen ( T-Code ME21N ).

I am using the exit ZXM06U44 (Function exit - EXIT_SAPMM06E_013).

I am using the syntax

message e030(yi) with text-001 text-002.

I have tried other message class also. but all are giving Information message.

Please suggest me some solution to this.

Regards,

Nibha

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2008 at 02:09 PM

    Try using macro "mmpur_message" for issuing message in this userexit.

    Sample code for your requirement.

    mmpur_message 'E' 'YI' '030'
                      text-001
                      text-002
                      ' '
                      ' '.
    

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2008 at 02:13 PM

    Hi,

    Try and use

    errflag = 'X'.

    *ELSE.

    *WRITE:/ errmsg-message.

    ENDIF.

    ENDLOOP.

    Might help you

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2008 at 02:17 PM

    Error message for EnjoySAP purchasing transactions are generated with the mmpur_message macro.

    mmpur_message 'E' 'ZQM_COMMON' '003 var1 var2 var3 var4.

    where E -> type of message (information/warning/error)

    ZQM_COMMON -> message class

    003 -> message number

    var1, var2, var3, var4 -> different message parameters

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I tried the macro mmpur_message in the exit ZXM06U44 but it is not working with message type 'E', this is again giving Information message. I have used below code

      mmpur_message 'E' 'S1' 333 text-003 xekpo-matkl ' ' ' '.

      This is also giving another information message System error (error in method PO_POST)

      Message no. ME816.

      However, this macro is working for warning message.

      Please suggest me some solution.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.