SAP Knowledge Base Article - Public

3042017 - Which API can be used to get all Goods Receipt Material Documents from a Purchase Order

Symptom

  • Which API can be used to get all Goods Receipt Material Documents which were posted for a Purchase Order.

Environment

  • S/4HANA Cloud

Resolution

Within the API for Inventory - there is the option to 'Retrieve Material Documents'. Within Document Items - the field PurchaseOrder is available to use in the http method GET in order to retrieve the MM Documents for the Purchase Order

PurchaseOrder > Purchase order number related to the goods movement

API for Inventory

 https://help.sap.com/viewer/3f57e7df4a114edabffe8b2d581a59ed/2102.500/en-US/2575a023f4ca41babf33fe163eaa5125.html?q=APIs

 

'Retrieve Material Documents'

https://help.sap.com/viewer/3f57e7df4a114edabffe8b2d581a59ed/2102.500/en-US/78f5a8461d554cc38b3af2d07d6f9c8e.html

 

For more information about the parameters that you can include in the URL of the request, within Document Items - the field Purchase Order is available to use in the http method GET in order to retrieve the MM Documents for the Purchase Order

PurchaseOrder > Purchase order number related to the goods movement

https://help.sap.com/viewer/3f57e7df4a114edabffe8b2d581a59ed/2102.500/en-US/8c451658745b1f60e10000000a44147b.html

 

Keywords

API, Material Document, MM, Goods Receipt., GR, Purchase Order, PO, Retrieve, Get, A_MaterialDocumentItem , KBA , MM-IM-GR-MIGO , Goods Receipt from External Procurement (MIGO) , How To

Product

SAP S/4HANA Cloud all versions