cancel
Showing results for 
Search instead for 
Did you mean: 

Function module to calculate net value (quantity * net price)

0 Kudos

Hi Gurus,

Here I need a help to avoid short dump I get when I try to calculate net value.

[Requirement]

We have a requirement to set a scale price with referring to the total quantity in the document where the customer material is same.

We've been successful to set an appropriate condition amount to XKOMV-KBETR.

However, the net value (KOMP-NETWR) and condition value (XKOMV-KWERT) is still to be calculated with referring to the item quantity scale price.

Here we need to calculate net value and condition value as well appropriately.

e.g.)

Scale price for item quantity (1,000EA) is 6,000.

But the amount has been overwritten by 5,000 which is the scale price for header quantity (3,000EA).

However, as you can see, the condition value is calculated as (6,000 * 0.9) * 1,000.

[Issue]

We are trying to calculate the appropriate net value under LV61AA55.

But when we do net price * quantity, the program goes short dump.

Note that the net price has been calculated by CONVERT_TO_LOCAL_CURRENCY.

Is there any function module for net value calculation to avoid the short dump?

Or does anyone know any other way to cator our requirement?

Your help would be much appreciated.

Best Regards,

Mari

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi,

The problem has been solved.

Best Regards,

Mari