cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

iklovski
Active Contributor
0 Kudos

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

Answers (1)

Answers (1)

former_member198650
Active Contributor
0 Kudos

Hi Gabriel,

The substitution will not show any message. It updates the values in back ground without user intimation regarding the changes. If you want to display a message, then you go with validation. Whatever conditions you defined in the substitution, same thing do it in validation and set the message type as per your requirement.

Regards,

Mukthar