Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How can I show a warning message in a profit center substitution?

Good morning everyone,

I'm trying to display a warning message in a user-exit used in a substitution but I can't seem to get it to work.

I've tried the following methods:

  1. MESSAGE text-099 TYPE 'W'.
  2. MESSAGE text-099 TYPE 'E' DISPLAY LIKE 'W'.
  3. INCLUDE MM_MESSAGES_MAC.

        MMPUR_MESSAGE FORCED 'W' 'ME' '099' 'Test' '' '' ''.

  4.   INCLUDE MM_MESSAGES_MAC.

        MMPUR_MESSAGE 'W' 'ME' '099' 'Test' '' '' ''.


For each one it enters but the program does not stop and it never shows the message. Error messages work but the user does not want an error, only a warning message. Is it possible to show a warning message in this user-exit substitution or should I just inform the user we're going to use a pop up?

Tags:
Former Member
replied

Hi,

I don't think that warning message will be shown in the substitution user-exit. You can use validation option instead, defining the same pre-requisites as you have in your substitution.

Regards,


Eli

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question