Symptom
Total Net Value and Total Gross Value were incorrect for the Purchase order as the recalculation of discount does not happen for a incorrect discount calculation does not happen while cancelling one of the line items in the Purchase Order.
Environment
SAP Business ByDesign
Reproducing the Issue
Go to the Purchase requests and orders workcenter
Purchase orders view
Select the purchase order DEF(DEF refers to the Purchase order id) and it has two line items
In the prices and discounts tab, you see that the discount is for example 100
If you cancel the line item 1
The discount is still shows as 50 and the system is not recalculating the discount correctly
Hence the Total Gross value and net value are incorrect
Cause
For the below issue, purchase order DEF has been created with two-line items. In the prices tab, added an overall discount of 100. The system has deducted the value based on the overall discount amount.
For example, if we have two-line items, the system will deduct 50 from each line item.
Resolution
Once we release the Purchase order, you will not be able to remove the line item, instead, we can cancel the line item. However, the system will not remove the overall discount for cancelled line items. You have the option to add a new line item, and for those lines, the overall discount value is also applicable.
This is the standard behavior. If you wants to have an item-level discount, under the item tab, select the line item --> select the below prices sub-tab. Under that, we can maintain an item-level discount. If we cancel the line item, it will not affect the other line-item discount.
Keywords
KBA , AP-POP-PO , Purchase Order , Problem