2015 Jun 18 1:13 PM
Hi All,
I am getting runtime error while creating the sales order,if we give the amount more than 8 digits,like Runtime Errors:COMPUTE_BCD_OVERFLOW,
Except.CX_SY_ARITHMETIC_OVERFLOW,ABAP Program : SAPLV60F,Application Component:SD-BIL.
An exception has occurred which is explained in more detail below. The
exception is assigned to class 'CX_SY_ARITHMETIC_OVERFLOW' and was not caught
in procedure
"FAKTURAWERT_PERIODISCH" "(FORM)", nor was it propagated by a RAISING clause.
Since the caller of the procedure could not have anticipated this
exception, the current program was terminated.
The reason for the exception is:
In the current arithmetic operation with operands of type P, an
overflow has occurred. Possible reasons:
1. The result field of type P is too small to store the result.
2. The total or a subtotal has more than 31 decimal places.
Source Code Extract
>>>>> add-corresponding *kompax to kompaxa.
So kindly let me know,how we can resolve this issue,its an urgent issue.
Regards,
Shivashankar
2015 Jul 05 2:02 PM
Hello Shivshankar,
Usually this error occurs when there is a overflow of numbers during the arithmetic operation.
Here it is adding the values from *kompax to kompaxa.
For example let's take field BRWTR which is of length 15.
It is having value '999999999999999'(15 character length) now if you even add 1 to it it will become 16 digits which will lead to the runtime error.
Check which field is oerflowing in your case and solve it accordingly.
Field | Length |
BRTWR | 15 |
NETWR | 15 |
MWSBP | 13 |
NETPR | 11 |
WAVWR | 13 |
KZWI1 | 13 |
KZWI2 | 13 |
KZWI3 | 13 |
KZWI4 | 13 |
KZWI5 | 13 |
KZWI6 | 13 |
CMPRE | 11 |
SKFBP | 13 |
BONBA | 13 |
CMPRE_FLT | 16 |
NRAB_VALUE | 13 |
PAYMNT | 15 |
2016 Jul 07 12:08 PM
Hi,
I am also facing the same issue. When i extend the billing plan date for 2-3 years than the amount gets added and at the end exceed the length of kompax-netpr.
How to deal with this, any suggestions will be helpful.
Regards,
Ankur Sharma