Symptom
- Create a sales contract which has an item with target quantity of 100 MT
- Create a subsequent sales order with reference to the above sales contract
- Create a partially delivery for the above sales order with only 80 MT
- Reject the sales order by setting reason for rejection
- Create another sales order with reference to the original sales contract
- The default target quantity is full 100 MT quantity
Environment
SAP S/4HANA Cloud Public Edition
Cause
This is standard behavior. The calculation of referenced quantity in a sales contract is based on the subsequent sales order's quantity in the document flow and target quantity in the sales contract. It does not consider other follow-up documents. Once the sales order is rejected, the quantity shown in the document flow for the subsequent sales order is removed and becomes zero. As a result, the referenced quantity is set back to the original value in the contract.
Resolution
As a workaround, consider reducing order quantity to the already delivered quantity instead of directly setting a reason for rejection in the subsequent sales order.
Keywords
Sales Order, Sales Contract, Quantity, Partial Delivery, Rejection, Referenced Quantity, Target Quantity, Partially Delivered, Contract, Referenced Quantity, Reject, Cancel, Reason for Rejection , KBA , SD-SLS-SO-2CL , Sales Orders (Public Cloud) , How To