Quantcast
Channel: SCN : Popular Discussions - SAP APO - Production Planning, Interfaces and Global ATP
Viewing all articles
Browse latest Browse all 953

FM for pegging relationship

$
0
0

Hello all,

 

We need to develop a customized report in APO that shows the demand element with pegging relationships with a production order.

In our business scenario, the sales orders are created in a location type distribution center and planned and production orders are created in a location type production plant. To do this, the MRP heuristics create purchase requisition to request the material from production plant to distribution center.

So, our intention is to find a sales order in the distribution center u201Cpeggedu201D to the production order in the production plant.

This information is similar to the data showed by the Order Context function of transaction /SAPAPO/RRP3.

 

We have developed a Z Function that uses BAPIs below:

 

BAPI_MOSRVAPS_GETLIST2 u2013 to get pegging data in table  PEGGING_OUTPUT_NODES

BAPI_POSRVAPS_GETLIST3 u2013 to get pegging data of purchase requisition

BAPI_SLSRVAPS_GETLIST2 u2013 to finally get sales order information

 

The logic is more complex when we have dependent demand, because we have to call the BAPI_MOSRVAPS_GETLIST2 more than once until find the related purchase requisition.

 

The Z Function works fine but the performance is very poor mainly because we have different location.

 

Our question: is there a standard function module that shows the pegging relationship across the entire chain?

 

We have also tried the EFPL_ORD_NET_GET but we were not able to find which parameters should we use and how to input it correctly . We didnu2019t find documentation about it.

 

Can you help us?

 

Thanks in advance.

 

Januario Faria


Viewing all articles
Browse latest Browse all 953

Trending Articles



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