Symptom
When creating supplier invoice through SOAP API Supplier Invoice - Create (A2A, Inbound, Asynchronous), error MMPUR_INTEGR_INVC_CR004 "You cannot create a supplier invoice for an existing reference ID" occurs.
Environment
SAP S/4HANA Cloud
Reproducing the Issue
- Create supplier invoice using SOAP API Supplier Invoice - Create (A2A, Inbound, Asynchronous)
- Check app Message Dashboard, the processing failed and error message MMPUR_INTEGR_INVC_CR004 "You cannot create a supplier invoice for an existing reference ID" occurs.
Cause
The parameter ReferenceID in the payload is not unique. An invoice has already been posted with the same ReferenceID value.
As outlined in the online help for this SOAP API, parameter ReferenceID is used to identify the invoice in the external system. SenderBusinessSystemID and ReferenceID must be filled. The combination of SenderBusinessSystemID and ReferenceID must be unique. These parameters must not be duplicated if the corresponding invoice has been posted.
Resolution
Please use always a different ReferenceID in the MessageHeader. It is not possible to post supplier invoices with the same ReferenceID.
Keywords
MMPUR_INTEGR_INVC_CR004, ReferenceID, SupplierInvoiceS4Request_In, Supplier Invoice - Create (A2A, Inbound, Asynchronous), MessageHeader, SenderBusinessSystemID , KBA , MM-FIO-IV , Fiori UI for Invoice Verification , Problem