Application Development and Automation 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: 
Read only

COMPUTE_BCD_OVERFLOW if analysis is correct

Former Member
0 Likes
491

Hi Expert,

Could you please check if my analysis is correct?

I got a dump error compute_bcd_overflow. This was encountered because a value does not fit in a calculation field. Variable A is too small for the result. It can only acquires up to 14 characters only.

Variable A = Length 11 Decimal 2

The formula used is:

Variable A = Variable B * Variable C * Variable D

Example:

Variable B = 20.0

Variable C = 180000.000

Variable D = 2549.20

By using the formula stated, the value of Variable A is equal to 9177120000.000000 wherein its length value is 17 characters that's why it got a dump error.

Thanks,

CarMey

Hi Expert,

Could you please check if my analysis is correct?

I got a dump error compute_bcd_overflow. This was encountered because a value does not fit in a calculation field. Variable A is too small for the result. It can only acquires up to 14 characters only.

Variable A = Length 11 Decimal 2

The formula used is:

Variable A = Variable B * Variable C * Variable D

Example:

Variable B = 20.0

Variable C = 180000.000

Variable D = 2549.20

By using the formula stated, the value of Variable A is equal to 9177120000.000000 wherein its length value is 17 characters that's why it got a dump error.

Thanks,

CarMey

2 REPLIES 2
Read only

Former Member
0 Likes
427

Try Data :<Variable A> Type TTET_AMOUNT_CURR_PD.

It has length 20 and decimal 5 after getting result use rounding off if you need.

Read only

Former Member
0 Likes
427

HI,

Yes your are correct, this error occurs when the result is more than the capacity of the variable. Increase the size of resultant variable to solve .

Hope this helps you

Raj