Skip to Content

Not showing pop up message window when message type I and W

Hi,

My requirement is to show the popup message window with material number, material description and ABC indicator of material at Every line item of PO in Transaction ME21N , if material is significant.

I find Badi to transaction me21n ME_PROCESS_PO_CUST~PROCESS_ITEM

actually i want show only information about material.

This Badi ( ME_PROCESS_PO_CUST~PROCESS_ITEM ) is properly working But does not showing Popup Message window

when i am using Message Type 'I' or "W" .

<Coding>

method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM.

  • BREAK-POINT.

  • BREAK-POINT.

*

IF SY-TCODE EQ 'ME21N' OR SY-TCODE EQ'ME21' . " ) AND MEPO1211-werks IS NOT INITIAL. " AND IM_LGOBE IS INITIAL.

BREAK-POINT .

DATA : VAR_MAKTX TYPE MAKT-MAKTX.

DATA : VAR_MAABC TYPE MARC-MAABC.

DATA : P TYPE STRING.

DATA : P1 TYPE STRING.

DATA: ls_mepoitem1 TYPE mepoitem,

ls_header_obj TYPE REF TO if_purchase_order_mm,

ls_header TYPE mepoheader,

lc_werks(1) TYPE c,

lv_fabkl TYPE t001w-fabkl,

lv_plifz TYPE ekpo-plifz.

*Get header data

ls_header_obj = im_item->get_header( ).

ls_header = ls_header_obj->get_data( ).

*Get Item Data

ls_mepoitem1 = im_item->get_data( ).

SELECT SINGLE MAABC FROM MARC INTO VAR_MAABC WHERE matnr EQ ls_mepoitem1-matnr AND werks EQ ls_mepoitem1-WERKS.

SELECT SINGLE MAKTX FROM MAKT INTO VAR_MAKTX WHERE matnr EQ ls_mepoitem1-matnr.

IF VAR_MAABC EQ 'A'. "LS_MEPOITEM1-SPINF EQ 'A'.

P = 'is significant material'.

CONCATENATE LS_MEPOITEM1-MATNR '' '(' VAR_MAKTX ')' '' P INTO P1.

MESSAGE p1 type 'I' .

EXIT.

ENDIF.

ENDIF.

endmethod.

************************************************************

guide me.....

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Dec 27, 2011 at 12:33 PM

    Hi

    Please, see SAP Note 310154 - ME21N/ME51N: Customer-specific check, generating error log

    I hope this helps you

    Regards

    Eduardo

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.