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: 

MIRO Badi - warning message to be populated

Former Member
0 Kudos

Hi,

I'm using a Badi for Miro transaction:

Definition Name : INVOICE_UPDATE

Method: CHANGE_AT_SAVE

I need a warning message to populate in some specific condition. The problem is that when I code it as a warning message, no message gets populated by if I change it to an error, the error msg gets populated .

This is the code I used for the message:

MESSAGE W057(zdev) WITH l_aufnr .

I have even tried

MESSAGE W057(zdev) display like 'E' WITH l_aufnr .

can anyone help???

Thank you

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Just use as below.

MESSAGE 'Message in a Method' TYPE 'I' RAISING ERROR_WITH_MESSAGE.

Regards,

Raju.

4 REPLIES 4

Former Member
0 Kudos

Some badi's won't trigger warning messages.

it will stores internal.

IF you want to display error/WARNING/INFORMATION message in miro

try this userexit.

LMR1M003

Edited by: murali papana on Sep 4, 2008 1:26 AM

former_member181995
Active Contributor
0 Kudos

Messages are mainly intended for use during dialog processing, and there for the event PAI. Here, messages of type "E" and "W" permit an error dialog. to be used in connection with the statement FIELD of the dynpro structure logic. Therefore, messages of type "E" or "W", in particular, should never be used in other contexts.

This is what SAP help says.

So type E and W are behave as same in screen proccesing.so use either I or S type of message.

Former Member
0 Kudos

Hi,

Just use as below.

MESSAGE 'Message in a Method' TYPE 'I' RAISING ERROR_WITH_MESSAGE.

Regards,

Raju.

0 Kudos

Thank you Raju.

Its working