2023 May 30 1:22 PM
Hi I encountered CX_SY_ARITHMETIC_OVERFLOW
upon checking the data types vat_percentage is dec and kbetr is curr
Please help thank you!
2023 May 30 2:54 PM
Check
2023 May 30 3:27 PM
2023 May 31 8:15 AM
Check the error syntax. But even that is not needed.
CX_SY_ARITHMETIC_OVERFLOW means "this value is too large for this variable".
10000 / 10 = 1000
Your variable is defined as DEC 5/2, so it's five positions with two decimal, ergo from -999,99 to 999,99.
2023 May 31 5:37 PM
Also maybe it's a more complex case if the Fixed Point Arithmetic flag is not selected in the program attributes (means the decimals are ignored), as Raymond suggested. The analysis is different if we ignore the decimals but comes to the same conclusion: the division of 1,000,000 (1 million) by 10 gives 100,000 (1 hundred thousands), which can't be stored as the maximum is 99,999 (1 hundred thousands minus 1).