09-04-2008 6:21 AM
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
09-04-2008 7:10 AM
Hi,
Just use as below.
MESSAGE 'Message in a Method' TYPE 'I' RAISING ERROR_WITH_MESSAGE.
Regards,
Raju.
09-04-2008 6:26 AM
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
09-04-2008 6:31 AM
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.
09-04-2008 7:10 AM
Hi,
Just use as below.
MESSAGE 'Message in a Method' TYPE 'I' RAISING ERROR_WITH_MESSAGE.
Regards,
Raju.
09-04-2008 7:56 AM