Skip to Content

Displaying Error message as Pop up in ME21N Transaction

Hi All,

I need to display error message as a pop up while creating or changing PO ( for eg. vendor field validation) in ME21N Screen. I am using BADI.  I was able to get the error message displayed successfully. But when I want to display in Pop up, it is not coming as error rather it is only displaying message. I tried the addition display like I or A, but only E and W type messages are working. I also tried Pop up FM's like POP_UP_DISPLAY_MESSAGE, POPUP_DISPLAY_TEXT but it cannot be displayed as error message.

But We can change the settings to display it as pop up but it will affect all transactions. Any helps????

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 06, 2015 at 03:37 PM

    Did you try to put the error message with the now classic macro AND then execute a pop-up FM ?

    im_item->invalidate( ).
    mmpur_metafield mmmfd_xxx.
    mmpur_message_forced 'E' 'ZMSG' '001' value1 space space space. CALL FUNCTION 'AQ_INT_SHOW_MESSAGE_AS_POPUP'
             EXPORTING
               message_class  = 'ZMSG'
               message_number = '001'
               message_type   = 'E'...

    But you should add some code to prevent trigger of the pop-up outside of actual interactive transaction (not in BAPI or Background)

    Regards,

    Raymond

    Add comment
    10|10000 characters needed characters exceeded