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

Former Member
0 Likes
1,228

Hello All,

Please tell me a way to multiply Total stock ( MBEW-LBKUM QUAN 13,3 ) with Standard Price ( MBEW-STPRS CURR 11,2 ) in a field of type CURR 13,3.

When is done with no casting I get COMPUTE_BCD_OVERFLOW exception. I've try also to cast to float values, but the conversion is ignoring the decimal digits.

Thank you

Bogdan

5 REPLIES 5
Read only

Former Member
0 Likes
1,080

How is your target variable defined?

Read only

0 Likes
1,080

Is of type CURR 13,3.

Read only

0 Likes
1,080

Basically, your target field is not able to accommodate your calculated value. Try defining a field of type p decimals 2 length max 16.

v_target(15) type p decimals 2.

Read only

Clemenss
Active Contributor
0 Likes
1,080

Hi Bogdan,

you still have to divide the result by MBEW-PEINH to get the total value. The result should be stored in MBEW-salk3 or salkv, respectively.

Regards,

Clemens

Read only

0 Likes
1,080

Hello;

I had such an error before during the goods receipt and when I examined it, I determined that the main data of the Gross weight was incorrect. It was 10,000,000,000 G. Could you also have a similar master data error?

Regards,

Mucahit Ozel