2007 Apr 01 5:12 AM
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
2007 Apr 01 5:40 AM
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
2007 Apr 01 5:40 AM
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
2007 Apr 01 5:42 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |