Symptom
When withdrawing the approval status of "In Approval" sales order, error "Sales document cannot be saved (see log)" (Message no. V2703) occurs.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Open the sales order using the "Create Sales Orders - VA02" app.
- Navigate to Menu -> Edit -> Additional Functions -> Request to Withdraw.
- Error "Sales document cannot be saved (see log)" (Message no. V2703) occurs.
Cause
The sales order is created before the BADI "Check of Sales Documents Before Saving (SD_SLS_CHECK_BEFORE_SAVE)" is executed. However, the sales order does not meet the BADI's mandatory field check.
Resolution
- Temporarily comment out the code in the BADI SD_SLS_CHECK_BEFORE_SAVE that sets the mandatory field check.
- Proceed to withdraw the approval request.
Be aware that after commenting out the code of BADI, the creation of sales orders will no longer include a mandatory field check.
See Also
KBA 2997066 - How to withdraw the approval request when a sales document is in the status of "in approval"?
Keywords
SAP S/4HANA Cloud Public Edition, Sales order, In approval, Withdrawal, Error, Sales document cannot be saved (see log), Message, V2703, BADI, SD_SLS_CHECK_BEFORE_SAVE, Mandatory field, Check , KBA , SD-SLS-WFL , Approval Workflows , Problem