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

program dump

Former Member
0 Likes
913

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
749

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. 

5 REPLIES 5
Read only

Former Member
0 Likes
750

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. 

Read only

0 Likes
749

Can i changes the result to type c 40 ????

Read only

0 Likes
749

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

Read only

0 Likes
749

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 ???

Read only

0 Likes
749

why dont you try yourself first? try with lenght 15, decimals 3 and see