Skip to Content

Message

In a user-exit I want to display a message and leave to transaction

So I tried

MESSAGE 'Serial Number already exists' TYPE 'I'.

LEAVE TO TRANSACTION 'MB31'.

But message is not getting displayed it's just coming to MB31...

I tried TYPE 'E' then message is getting displayed and it's also asking for the correct serial no. but if there is more than one serial no. then it's validating only the first one and allowing duplicates for others.

Ideally what I need is... if duplication found it has to display a message and ask for proper one...

How to do it? Advance thanks.

Regards,

V Balaji.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Dec 06, 2004 at 08:43 AM

    MESSAGE 'Serial Number already exists' TYPE 'I'.

    LEAVE TO TRANSACTION 'MB31'.

    Hu ? It's new or you don't check the code ?

    For me message must be used like that :

    MESSAGE ID id TYPE mtype NUMBER n.

    Where you can find ID in the first screen of the transaction SE91. And the number in the list of the ID.

    Frédéric.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 06, 2004 at 10:47 PM

    Hi Balaji

    Message types that you state in a message statement acts differently with respect to the context (e.g. PBO, PAI, ...) where the message is given.

    Hence a possibility for not showing your message may be, because of the context you give the message, it may have displayed your 'I'-type message as if like 'S'-type and at the first screen of MB31 it may be overridden.

    Check the place where you give the message and check out message behaviour from the help of MESSAGE statement.

    *--Serdar

    Add a comment
    10|10000 characters needed characters exceeded

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.