Symptom
Encountering the error "The refund can only be created with reference to an invoice" when attempting to create a return order with reference to a sales order that enabled digital payment.
Environment
SAP S/4HANA Cloud Public Edition
Cause
Considering the legal risks, it is not supported to create a return order referring to a sales order that enables digital payment. If a refund is processed by referring only to a sales order that enables digital payment, the preceding sales order process may be incomplete (for example, having only a sales order without a generated billing document).
Resolution
Considering financial security and potential legal risks, it is recommended to refer to the subsequent billing document of the sales order when creating a return order.
Keywords
Error, The refund can only be created with reference to an invoice, Return order, Reference, Refer to sales order enable Digital payment is not allowed, Sales order, Invoice, SAP S/4HANA Cloud Public Edition, Legal risks, Digital payment, Billing document , KBA , SD-SLS-API-2CL , API (Public Cloud) , Problem