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

SAP S/4HANA Cloud Public Edition

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

Below URL also provide more details about the parameters that can be included in the URL of the request.

APIs for Inventory | SAP Help Portal

Read Material Documents | SAP Help Portal

Keywords

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

Product

SAP S/4HANA Cloud Public Edition all versions