SAP Knowledge Base Article - Public

3295160 - The Error "Item XX: Gross amount must not be negative" Occurs When Cancelling a Line Item in a Sales Order

Symptom

You are unable to set a reason for rejection for line item XX in a Sales Order document due to the following error:

"Item XX: Gross amount must not be negative"

(Where XX refers to the line item number)

Environment

SAP Business ByDesign

Reproducing the Issue

  1. Go to the Sales Order work center.
  2. Select the Sales Order view.
  3. Filter for All Orders.
  4. Search for the Sales Order ABC (Where ABC refers to the Sales Order ID).
  5. Click on Edit and View All.
  6. Go to Items tab and select line item XX.
  7. Maintain a reason for rejection for the line item XX.

The following error occurs:

Item XX: Gross amount must not be negative.

Cause

The overall discount on Sales Order ABC is too high and by setting a reason for rejection of line item XX, the total gross amount becomes negative.

Negative gross amount in a Sales Order is not yet available for ByD as the system logic prevents the value from being negative. To proceed with the business flow, the gross amount must be equal or higher than 0.

See the following example:

For Sales Order ABC, the total item gross value is 10.76. This is calculated after summing up all item gross prices. Since 2 line items are cancelled, they are not considered in the total and all other item prices sum up to 10.76.

Total = Total Item gross value - Discount (if any)

In this case:

Total = 10.76 - 8.15 = 2.61.

When you try to cancel line item XX, the total item gross value calculation happens again. This time it will ignore the item XX price since it was cancelled.

New total item gross value = 10.76 - 2.79 => 7.97.

New Total = new Total item gross value - discount

New total = 7.97 - 8.15 => -0.18

Due to the cancellation of the last item, the manually added discount amount turns out to be more than the sum. Hence the errors are being thrown.

This is the system behavior as we cannot have negative prices in Sales Order.

Resolution

This is the standard system behaviour.

Keywords

reason for rejection, sales order, gross amount, negative, item, overall discount , KBA , AP-SLO-SO , Sales Order , How To

Product

SAP Business ByDesign all versions