SAP Knowledge Base Article - Public

3451620 - Goods and service receipts (GSR) created by API has duplicate line items

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

  1. Create a non-stock purchase order XXX with only one item (ordered quantity is 10 ea).
  2. Create GSR for it by API. The delivery is partial, for example, delivered quantity is 6 ea.
  3. Execute the payload. 
  4. Go to Purchase Requests and Orders work center and find purchase order XXX, its delivery status becomes Completely Delivered.
  5. 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

SAP Business ByDesign all versions

Attachments

Pasted image.png