Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Warning message in UserExit

Former Member
0 Kudos
1,377

Hi all,

Iam writing one exit for MIGO Transaction. Everything is fine but the only thing is,

If i generate error message in EXIT Using : Message e127(zmcd) with loc_per. It is working fine . But i need to display it as warning message. so i tried to change it to : Message w127(zmcd). But it is not working in this case.

Please help me out from this situation.

Thanks in advance.

7 REPLIES 7

Former Member
0 Kudos
317

hi,

check the below threads

Hope this helps !

Reward with points for helpful answers

Cheers

Alfred

Former Member
0 Kudos
317

Hi Govardhan,

Go to ABAPHELP transaction and check out help for

Messages in control processing

Messages in dialog processing

I had encountered this issue earlier and we cannot use Warning mssg in exits. Instead you will have to use type 'A'. As I recall the other types like 'I' and 'S' also didn't work.

Hope this answers your query and you can lookout for another alternative.

<b>Always reward points to useful suggestions.</b>

regards,

Vikas

0 Kudos
317

Hi,

Inside the user exits or Badi's the warning messages will not work. We are having two options for displaying the messages.

1. Populate the warning message in the std message log.

OR

2. Use the Function Module POPUP_TO_CONFIRM and display the message.

Thanks

Raghavendra

0 Kudos
317

Hi Kumar,

Can you please let me know what are the parameters to be passed to the FM

'POPUP_TO_CONFIRM' . and how should we achieve the popup message.

0 Kudos
317

HI,

Pass the Text as warning. and then the remaining parameters like msg class, msg no and msg variables if you have any.

Thanks

Raghavendra

0 Kudos
317

Type A still prevents saving. It does not work like warning.

Former Member
0 Kudos
317

try this

EXIT_SAPLMGMU_001 (MM02)