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

CX_SY_ARITHMETIC_OVERFLOW

Former Member
0 Likes
721

Dear all

Can you please assist me. I have a report whereiIm looping internal table and sum the total, then loop again and get total per client and multiply by 100 as a percentage. so formula is individual total/grand total * 100

i hve declared taltal as type p decimal 10, then individual total type p decimal 10 and the final value total as type p decimal 2. amounts have big values of data billions of dollars. im receiving errors like

1. The result field of type P is too small for the result.

2. The result or a intermediate result has more than 31 decimal places.

Please assists me

Regards

William Mutero

Dear all

Can you please assist me. I have a report whereiIm looping internal table and sum the total, then loop again and get total per client and multiply by 100 as a percentage. so formula is individual total/grand total * 100

i hve declared taltal as type p decimal 10, then individual total type p decimal 10 and the final value total as type p decimal 2. amounts have big values of data billions of dollars. im receiving errors like

1. The result field of type P is too small for the result.

2. The result or a intermediate result has more than 31 decimal places.

Please assists me

Regards

William Mutero

3 REPLIES 3
Read only

matt
Active Contributor
0 Likes
627

Do you need 10 places of decimal accuracy? I find 3 figures is fine for most applications. I use

...TYPE P LENGTH 16 DECIMALS 3.

matt

Read only

Former Member
0 Likes
627

Ok let me try that one

Regards

William

Read only

Former Member
0 Likes
627

Thanks you so much, thank you thousand times it works fine. You are a star.

Regards

William