Symptom
Unable to post Goods Receipt using API due to error 'M7469 Goods receipt for PO 4500000000 00010 only possible with ref. to outbound delivery'.
Environment
SAP S/4HANA Cloud
Reproducing the Issue
Request body.:
{
"PostingDate": "2022-10-02T12:00:00",
"VersionForPrintingSlip" : "1",
"GoodsMovementCode": "01",
"ReferenceDocument": "0080000000",
"to_MaterialDocumentItem":{
"results": [
{
"Material":"TG10",
"Plant": "1000",
"StorageLocation": "101A",
"Batch": "1234",
"GoodsMovementType": "101",
"PurchaseOrder": "4500000000 ",
"PurchaseOrderItem": "10",
"Delivery": "80000000",
"DeliveryItem": "10",
"GoodsMovementRefDocType": "B",
"EntryUnit": "PC",
"QuantityInEntryUnit": "1"
}
]
}
}
POST
<code>M7/469</code>
<message xml:lang="en">Goods receipt for PO 4500000000 00010 only possible with ref. to outbound delivery
Cause
Payload refers to "GoodsMovementRefDocType" which has the value set as "B" and GoodsMovementCode = 01, so the system recognizes the Purchase Order as the reference.
Resolution
Update the payload, so that "GoodsMovementRefDocType" refers to value "L - Goods movement for delivery note" and GoodsMovementCode refers to value "05 - Other Goods Receipt" so that the system recognises we are making a posting for the Outbound Delivery.
The following values are supported for the GOODSMOVEMENTREFDOCTYPE property:
- Goods movement w/o reference / '-' means blank here/
B Goods movement for purchase order
F Goods movement for production order
L Goods movement for delivery note
K Goods movement for kanban requirement (WM - internal only)
O Subsequent adjustment of "material-provided" consumption
W Subsequent adjustment of proportion/product unit material
The following values are supported for the GoodsMovementCode property:
01 - Goods Receipt for Purchase Order
02 - Goods Receipt for Production Order
03 - Goods Issue
04 - Transfer Posting
05 - Other Goods Receipt
06 - Reversal of Goods Movements
07 - Subsequent Adjustment with Regard to a Subcontract Order
See Also
Keywords
API_MATERIAL_DOCUMENT_SRV, A_MaterialDocumentHeader, M7/469, M7469, Goods receipt for PO, only possible with ref. to outbound delivery, GoodsMovementRefDocType, GoodsMovementCode, A_MaterialDocumentItem , KBA , MM-IM-GR , Goods Receipt , Problem