2008 Dec 08 11:07 PM
Hi ,
i have used the below logic
l_kg LIKE afko-igmng,
g_total_to_store_mseg LIKE afko-igmng,
menge TYPE zti_recipe_usage-menge,
l_kg = g_total_to_store_mseg * tbl_recipe_mseg-menge.
iam getting the below error in the dump
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_ARITHMETIC_OVERFLOW', was not
caught in
procedure "GET_KG_TO_STORE_MSEG" "(FORM)", nor was it propagated by a RAISING
clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
An overflow was discovered in an ongoing arithmetical operation with
operands of type P. Possible causes are:
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 suggest
Thanks
2008 Dec 08 11:09 PM
did you read the dump imstead of posting it here? the issue is right there if you can read that
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.
did you read the dump imstead of posting it here? the issue is right there if you can read that
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.
2008 Dec 08 11:09 PM
did you read the dump imstead of posting it here? the issue is right there if you can read that
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.
2008 Dec 08 11:14 PM
2008 Dec 08 11:58 PM
check the type for your variable where you are trying to move the result, and try increasing the length by 2 bytes at a time,so if it is length 7 type p decimals 2 change that to length 9 type p decimals 2
2008 Dec 09 12:28 AM
iam using the variable type AFKO-igmng type Q length 13 decimals 3
but in the program iam getting the result with more than 31 decimal places can i declare it as
type f length 50 ???
2008 Dec 09 12:33 AM
why dont you try yourself first? try with lenght 15, decimals 3 and see
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |