!--a11y-->
Quantity Comparison for Schedule Lines in
Sales Orders 
If, when you are creating or changing a sales order item, you define schedule lines and the item concerned is relevant for quantity optimizing, the system optimizes at schedule line level. To prevent the sum of the rounded schedule line quantities deviating greatly from the total order quantity for the item as a result of rounding, the system carries out a quantity comparison for the schedule line quantities.
The system compares the schedule lines in the sequence of planned delivery dates. If the system rounds up a schedule line quantity, an overdelivery quantity is created. In the next schedule line, the system calculates the difference between the current order quantity of the schedule line and the overdelivery quantity from the previous schedule line and distinguishes between the following cases:
· The difference is greater than zero
In this case a delivery must be created. The system determines the current quantity to be delivered by rounding the current order quantity.
· The difference is smaller or equal to zero
In this case, the current order quantity is already covered by the overdelivery from the previous schedule line, and the system sets the quantity to be delivered to zero.
The system then calculates the over-delivery quantity for the current schedule line using the following rule in both cases:
Current overdelivery quantity =
previous overdelivery quantity
+ current quantity to be delivered
– current order quantity
