Application Development 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: 

Hi,

Former Member
0 Kudos

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?

1 ACCEPTED SOLUTION

former_member181962
Active Contributor
0 Kudos

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

9 REPLIES 9

Former Member
0 Kudos

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.

0 Kudos

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

former_member181962
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

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?

Former Member
0 Kudos

Suresh,

There are no Exits written for populating this particular field in the Program.

0 Kudos

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?

Former Member
0 Kudos

Sandip,

I have double checked it. There are no exits relating this field.

0 Kudos

Ok. Then at the moment I can only think of raising an OSS message to SAP.