cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP APO Convert a Forecast GUID (PIR) to find its Material / Location

markpedley
Explorer
0 Likes
544

We have an issue in that sometimes there are certain orders in APO SNP which are causing issues and being reported in the logs as GUID's. I can trace all orders back to Material / Location i.e Sales Orders, Purchase Orders etc with the exception of a Forecast (PIR). I have tried OM16 and various Function Modules example (/SAPAPO/OM_ORDER_GET_DATA) and have been able to get back to the location of the forecast but I cannot get back to the Material of the Forecast. Can anyone help with this please ?

Accepted Solutions (1)

Accepted Solutions (1)

claire_yang
Employee
Employee
0 Likes

You can use FM /SAPAPO/OM_ORDER_GET_DATA to get pegid, then you use pegid to find matid in table /SAPAPO/PEGKEY.

Regards,
Claire

Answers (1)

Answers (1)

markpedley
Explorer
0 Likes

Dear Claire,

Thank you Claire, this worked perfectly. This was the missing step.

Regards

Mark