Skip to Content

Message / Warning handling in ME_PROCESS_REQ_CUST BADI

I am using PROCESS_ITEM Method of ME_PROCESS_REQ_CUST BADI to throw a POP UP at item level after getting material and plant.My problem is POP UP is triggering more than once per line item if user is pressing ENTER key more than once after entering material and plant.I have tried with memory ID technique with a flag variable which is not working properly for more than one line item.

is there any solution to the link BADI ME_PROCESS_PO which will solve my problem.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Sep 08, 2011 at 01:21 PM

    Hi Manoj,

    INCLUDE mm_messages_mac.

    DATA: it_po_line TYPE TABLE OF mepoitem,

    header TYPE mepoheader,

    items TYPE purchase_order_items,

    is_po_line TYPE mepoitem,

    is_po_line_tmp TYPE mepoitem,

    line_item TYPE purchase_order_item,

    wrk_tabix TYPE sy-tabix.

    header = im_header->get_data( ).

    items = im_header->get_items( ).

    LOOP AT items INTO line_item.

    is_po_line = line_item-item->get_data( ).

    APPEND is_po_line TO it_po_line.

    CLEAR is_po_line.


    LOOP AT it_po_line INTO is_po_line.

    wrk_tabix = sy-tabix.

    LOOP AT it_po_line INTO is_po_line_tmp

    FROM wrk_tabix

    WHERE matnr EQ is_po_line-matnr.

    IF sy-subrc EQ 0.

    mmpur_message 'I' '00' '39'

    'Material is already in the order'





    CLEAR is_po_line_tmp.


    CLEAR : is_po_line,



    here i sued the method check.Check like this it will work. if there is any post.



    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Manoj,

      Please, read SAP Note 611175 - ME_PROCESS_REQ_CUST: Documentation, it tell us what is possible and what not. To show the messages use the macros as it says:

      The above-mentioned macros have been defined in the
      MM_MESSAGES_MAC program. Include this program into a separate



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.