05-30-2006 7:33 PM
I am working with MR51 Tcode. When I execute it, there is a Short Dump saying "Overflow for arithmetical operation (type P) in program "RM08MMAT"".
Runtime Errors : COMPUTE_BCD_OVERFLOW
Except: CX_SY_ARITHMETIC_OVERFLOW.
I searched for OSS notes but could not find one thats matching.
Can anybody suggest me anything on this?
05-30-2006 7:39 PM
You may need to define the result field to be larger, if it is still
possible to do so.
It may be possible to split the current process so that only smaller
values occur.
If you require an interim solution to this error, you can look in the
SAP note system. If you have access to
the SAP notes system yourself, enter the following search strings:
&FC
&P1 (By release 4.0a, this error has been remedied at this point)
&AP or &AI
&EV
&INCLUDE INCL_SEND_TO_SAP
Overflow for arithmetical operation (type P) in program &AP
&INCLUDE INCL_ABAP/4_ERROR
An overflow has been determined in the current arithmetical operation
containing operands of type P. Possible causes include:
1. The results field of type P is to small and the result does not fit
into it.
places.
2. The result or partial result has more than 31 decimal places.
A value does not fit in a calculation field.
Regards,
Ravi
05-30-2006 7:36 PM
Can you see in the debugger while field is getting overloaded? I think a numeric field is getting populated with a value which exceeds the limit.
05-30-2006 7:40 PM
You are probably running the Report wide open leading to length issues/short-dump. Try to retsrict it by putting some values in the Sel screen before executing the report.
Regards,
Suresh Datti
05-30-2006 7:39 PM
You may need to define the result field to be larger, if it is still
possible to do so.
It may be possible to split the current process so that only smaller
values occur.
If you require an interim solution to this error, you can look in the
SAP note system. If you have access to
the SAP notes system yourself, enter the following search strings:
&FC
&P1 (By release 4.0a, this error has been remedied at this point)
&AP or &AI
&EV
&INCLUDE INCL_SEND_TO_SAP
Overflow for arithmetical operation (type P) in program &AP
&INCLUDE INCL_ABAP/4_ERROR
An overflow has been determined in the current arithmetical operation
containing operands of type P. Possible causes include:
1. The results field of type P is to small and the result does not fit
into it.
places.
2. The result or partial result has more than 31 decimal places.
A value does not fit in a calculation field.
Regards,
Ravi
05-30-2006 7:56 PM
Thank you for the suggetions guys.
Sandip,
The field which is getting overloaded is the quantity filed MENGT. And i have checked the quantity in that field which caused the dump and found that it tried to add two quantities 9999999999.0 and 9999999999.0 and accomodate the result in the field MENGT.
Ravi,
I cannot change the program RM08MMAT to increase the field length. I have searched for OSS Notes on this, but could not find a relevant one.
Suresh,
Usually this Tcode is executed with the Company code and the Posting period, for which I do not get any errors. But when I want the posted stock for a particular Company code irrelevant of the posting period, I am getting the short dump.
05-30-2006 8:04 PM
Right, that's what I expected. Now, do you have an user exit, field exit etc or something like that where you have written some code which is causing this field to go over-board?
05-30-2006 8:32 PM
Suresh,
There are no Exits written for populating this particular field in the Program.
05-30-2006 8:39 PM
Natasha,
That was me
By the way, are you sure there a'int any kind of exits getting fired? Can you create a watch-point on the field in the debugger and see how is it populated with that large a value?
05-30-2006 8:45 PM
Sandip,
I have double checked it. There are no exits relating this field.
05-30-2006 8:48 PM
Ok. Then at the moment I can only think of raising an OSS message to SAP.