SAP Knowledge Base Article - Public

3840521 - NB2 to CBAR return order creation fails with error "Material discrepancy with determined reference document &" (EDI_SD037)

Symptom

When creating a return purchase order (NB2) with reference to the original purchase order, it fails to create the returns order (of type CBAR). In the AIF monitor, the following error can be seen:

  • Material discrepancy with determined reference document & (EDI_SD037)

Environment

SAP S/4HANA Cloud Public Edition

Cause

It's a functional gap in the EDI return process: a cross-check prevents correct material determination via EAN/GTIN for NB2 → CBAR creation when a reference document is supplied.

Resolution

As a workaround, maintain the Supplier Mat. No. on the NB2 purchase order item so the payload for the returns order creation includes SupplierProductID.

A permanent fix is under development. The delivery timeline is not yet available. Follow this KBA for updates.

Keywords

NB2, CBAR, AIF, ORDR_IN, EDI_SD037, material discrepancy, SupplierProductID, EAN, GTIN, OrderRequest_In, return purchase order, return sales order, material determination, /SDEDI, EDI return process,  EDI_SD_ORDR_PROCESSING, EDI_SD , KBA , SD-SLS-RE-EDI-2CL , Returns EDI Messages (Public Cloud) , Known Error

Product

SAP S/4HANA Cloud Public Edition all versions