Skip to Content
avatar image
Former Member

Pegging extract

Hi,

I need to extract all pegging results from live cache. for that i am using Functional moule /SAPAPO/EFPL_ORD_NET_GET

but i am not sure which field i need to pass. it got somany import parameters.

I_SIMVERID - 000

I_SIMSESSID - JSBYBWNZHLTX00004EVGR0 ( created by using FM /SAPAPO/RRP_SIMSESSION_CREATE )

I_CAPREQ_TAB - ?

I_ORDERS_TAB - Need to pass all the fields

I_RESOURCES_TAB - ?

I_PEGIDS_TAB - ?

Please help me with some example datas

Regards

Rajesh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    May 05, 2011 at 01:07 PM

    Hi Rajesh,

    please refer the reply from me in the link below.

    FM for pegging relationship

    Regards,

    Saurabh

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Rajesh,

      If you want to read only Purchase Requisitions for a particular locations then why dont you use the BAPI to read it.

      Use BAPI_POSRVAPS_GETLIST3 with the LOCATION_SELECTION = I-EQ-location and PRODUCT_SELECTION = I-CP-*

      and ATPCAT_SELECTION = I-EQ-AG(PurReq). Now your concern is to find out only those PurReq who are pegged with the StockTrfOrd/ any other order.You dont want to consider the normal PurReq.

      So to achieve this requirement,you will get the list of all PurReqs in the table RECEIPTS of this BAPI with ORDER GUID(CHAR32),

      For the same GUID, search the pegged orders in PEGGING_OUTPUT_NODES/ PEGGING_INPUT_NODES tables, you will get the order no. linked to PurReq.If order is linked then only consider otherwise ignore that PurReq.

      I hope now this will solve your issue.

      Regards,

      Saurabh