Symptom
You are trying to delete a Sales Order which was created via Web Service with External Payment.
Environment
SAP Business ByDesign
Reproducing the Issue
- Go to the Sales Orders work center.
- Select the Sales Orders view.
- Search for the ID ABC (ABC represents the ID of the Sales Order).
- Document is still In Preparation status.
- Click Delete button.
Error: Deletion not allowed due to external payment
Cause
You are only allowed to Delete Sales Orders which fall within the following criteria:
In Preparation
AND
Manually Created OR A2A OR B2B origin without any items OR B2B origin and inconsistent.
Documents with External Payments are not allowed to be deleted.
Resolution
This is the system expected behavior.
As a work-around, you can send a new update to cancel the document.
Sample payload:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global">
<soapenv:Header/>
<soapenv:Body>
<glob:SalesOrderBundleMaintainRequest_sync>
<BasicMessageHeader/>
<SalesOrder actionCode="04">
<ID>ABC</ID>
<SalesTerms actionCode="04">
<CancellationReasonCode>08</CancellationReasonCode>
</SalesTerms>
</SalesOrder>
</glob:SalesOrderBundleMaintainRequest_sync>
</soapenv:Body>
</soapenv:Envelope>
See Also
3000720 - Error message: Costs not determined: Cost rate for service XYZ and set of books AAA valid on DD/MM/YYYY is missing
3096429 - External Payment is Not Copied to New Sales Order
Keywords
Sales Order, External Payment, Delete, Reject, Reason for Rejection, Web Service, In Preparation , KBA , AP-SLO-SO , Sales Order , How To