Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime error while creating sales order

Former Member
0 Kudos

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

2 REPLIES 2

thanga_prakash
Active Contributor
0 Kudos

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.

FieldLength
BRTWR15
NETWR15
MWSBP13
NETPR11
WAVWR13
KZWI113
KZWI213
KZWI313
KZWI413
KZWI513
KZWI613
CMPRE11
SKFBP13
BONBA13
CMPRE_FLT16
NRAB_VALUE13
PAYMNT15

ankur_sharma16
Active Participant
0 Kudos

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