Skip to Content
avatar image
Former Member

MIRO Badi - warning message to be populated

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 04, 2008 at 06:10 AM

    Hi,

    Just use as below.

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

    Regards,

    Raju.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2008 at 05: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

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 04, 2008 at 05: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.

    Add comment
    10|10000 characters needed characters exceeded