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

Overflow for arithmetical operation (type P) in program.

Former Member
0 Likes
846

Hi experts..

I had developed a report for showing total receipt and issues and confirmed issue.

of PQ.

For all the plant is running fine but only for one plant 2050 its going into dump and error is "Overflow for arithmetical operation (type P) in program." and the code line is

T_EKET-MNG02 = T_EKET-MNG02 * ( t_mdbs-umrez / t_mdbs-umren ).

MNG02 IS OF TYPE Data : "Quan", length =13 , decimal = 3.

initially : value in Mng02 is = 10 and ratio is 11/8 = 1.375

and in the debugging the value is 10*1.375 = 13.75

but... when i am executing it .. its going into dump and after again checking the MNG02 is showing valude --9765133613.881 and the above error.

what should i do....

please help..

i will award the points for every help...

thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
693

Hi,

Are you doing any other calculation for field MNG02 in your program?

I created a small program with the field and values you have mentioned and it gave me the result 13.75 and no short dump.

Please check following things:

When short dump occurs, it shows at which line it has occured. Is it showing that the shortdump has occurs on the line you are talking about here or it is somewhere else.

Also, when shortdump occurs, it shows a "debugging" button at the top. Hit that button and it will show you exactly where the short dump has occured. What ever this statement is, check what are the values of different variables here.

Check all these and you might get the answer. Let me know if you still have problem.

Regards,

RS

Hi experts..

I had developed a report for showing total receipt and issues and confirmed issue.

of PQ.

For all the plant is running fine but only for one plant 2050 its going into dump and error is "Overflow for arithmetical operation (type P) in program." and the code line is

T_EKET-MNG02 = T_EKET-MNG02 * ( t_mdbs-umrez / t_mdbs-umren ).

MNG02 IS OF TYPE Data : "Quan", length =13 , decimal = 3.

initially : value in Mng02 is = 10 and ratio is 11/8 = 1.375

and in the debugging the value is 10*1.375 = 13.75

but... when i am executing it .. its going into dump and after again checking the MNG02 is showing valude --9765133613.881 and the above error.

what should i do....

please help..

i will award the points for every help...

thanks

2 REPLIES 2
Read only

Former Member
0 Likes
694

Hi,

Are you doing any other calculation for field MNG02 in your program?

I created a small program with the field and values you have mentioned and it gave me the result 13.75 and no short dump.

Please check following things:

When short dump occurs, it shows at which line it has occured. Is it showing that the shortdump has occurs on the line you are talking about here or it is somewhere else.

Also, when shortdump occurs, it shows a "debugging" button at the top. Hit that button and it will show you exactly where the short dump has occured. What ever this statement is, check what are the values of different variables here.

Check all these and you might get the answer. Let me know if you still have problem.

Regards,

RS

Read only

Former Member
0 Likes
693

i dont know it will solve your issue or not? just decalare T_EKET-MNG02 as a character field (it will calculate the value) and put the tick in fixed point arithmetic in your report attribute...

regards

shiba dutta