Quantcast
Channel: SCN: Message List - SAP ERP - Logistics Materials Management (SAP MM)
Viewing all articles
Browse latest Browse all 9093

Re: BAdi ME_PROCESS_REQ_CUST for ME51N and ME52N

$
0
0

Hi Milind,

 

Normally the data should be present in the process_item and in the check method of the BADI.  As it is a check that you perform, I suppose you need the check method. The code should look something like this :

 

METHOD if_ex_me_process_req_cust~check .

*

  DATA :

   lt_items   TYPE  mmpur_requisition_items,

   wa_item LIKE LINE OF i_items,

   lv_if_item TYPE REF TO if_purchase_requisition_item,

   ls_itm_data TYPE mereq_item.

*

    CALL METHOD im_header->get_items

    RECEIVING

      re_items = lt_items.

 

  LOOP AT lt_items INTO wa_item.

    lv_if_item = wa_item-item.

 

    CALL METHOD lv_if_item->get_data

      RECEIVING

        re_data = ls_itm_data.

 

**Implement your own check here

  ENDLOOP.

 

In the ls_itm_data structure, you will normally find the release strategy fields as they are displayed on the screen for each item.

Regards,

 

Freek


Viewing all articles
Browse latest Browse all 9093

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>