Symptom
A Goods and Service Receipts is created for partial delivery by API.
Check frontend for the created GSR, there are duplicate line items, and the purchase order item becomes completely delivered.
"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."
Environment
SAP Business ByDesign
Reproducing the Issue
- Create a non-stock purchase order XXX with only one item (ordered quantity is 10 ea).
- Create GSR for it by API. The delivery is partial, for example, delivered quantity is 6 ea.
- Execute the payload.
- Go to Purchase Requests and Orders work center and find purchase order XXX, its delivery status becomes Completely Delivered.
- Go to Goods and Services Receipts work center and find the created GSR. It contains two items like the below image.
Cause
This is because the request payload contains unnecessary paragraph on header level which causes extra delivery.
Resolution
Remove payload that shows PO reference on header level, only keep PO reference on item level (remove below payload):
<POReferenceID ActionCode="01" >
<BusinessTransactionDocumentReference>
<ID>XXX</ID>
<TypeCode>001</TypeCode>
</BusinessTransactionDocumentReference>
</POReferenceID>
Keywords
Goods and Services Receipts; GSR; Web Service; Delivery; Purchase Order , KBA , SRD-SRM-GSA , Goods and Service Aknowledgement , Problem
Product
Attachments
Pasted image.png |