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: 

Dump : COMPUTE_INT_PLUS_OVERFLOW

Former Member
0 Kudos

Hi experts,

I am getting a dump COMPUTE_INT_PLUS_OVERFLOW in a report.

its at the line: z1 = z1 + z1.

Dump says:

"Using + or 'ADD' to add the values 2060095488 and 2060095488 resulted in a

value greater than 2147483647 or samller than -2147483648. This

leads to a whole number overflow.

A temporary solution is perhaps to divide this operation up into smaller

individual operations, so that smaller sums are being dealt with."

z1 is declared as:

data: z1 like sy-dbcnt.

How should i correct this error?

I will reward all the helpful answers

Thanks,

Ajay.

1 ACCEPTED SOLUTION

vinod_vemuru2
Active Contributor
0 Kudos

Hi Ajay,

This dump is because ur computed value is more than system limit for the data type of that variable. Check below max limits for each data type.


b 0 to 255 0 
c Any alphanumeric character " " for every position 
d 8 user-defined alphanumeric characters; Only values in the format YYYYMMDD that are permitted as date entries according to the calendar rules are valid: YYYY (year): 0001 to 9999, MM(month): 01 to 12, DD (day): 01 to 31 "00000000" 
f Floating point numbers are displayed internally with 16 decimal places according to the IEEE-754 standard (double precision). Valid values are -1,7976931348623157EE+308 to -2,2250738585072014EE-308 for the negative area, the value zero, and +2,2250738585072014EE-308 to +1,7976931348623157EE+308 for the positive area. Both validity areas are extended in the direction of zero through denormalized numbers after IEEE-754. 0 
*i -2.147.483.648 to +2.147.483.647 0* "Check this limit 
n Any alphanumeric characters, however, valid values are only the digits 0 to 9 "0" for every position. 
p The valid length for packed numbers is between 1 and 16 bytes; two decimal places are packed into one byte, whereby the last byte only contains one place and the plus/minus sign; after the decimal separator, up to 14 decimal places are permitted. Depending on the field length len and the number of decimal places dec, the following applies for the value area: (-10^(2len -1) +1) / (10^(+dec)) to (+10^(2len -1) -1) /(10^(+dec)) in steps of 10^(-dec). Values in between this range are rounded off. 0 
string as for type c empty string of length 0 
s -32.768 to +32.767 0 
t 6 user-defined alphanumeric characters; the only valid values are numbers that are interpreted as a time specification in the 24-hour clock format HHMMSS. SAP recommmends to exclusively use 00 to 23 hours for HH (hours) and 00 to 59 for MM (minutes) and 00 to 59 for SS (seconds). "000000" 
x hexadecimal characters 0-9, A-F hexadecimal 0 
xstring as for type x empty string of length 0. 

U can declare ur varible to accomodate max length possible in ur calculation.

eg: DATA z1(25) TYPE n DECIMALS 0.

Thanks,

Vinod.

4 REPLIES 4

Former Member
0 Kudos

Hi,,

z1 is declared as:

data: z1 like sy-dbcnt.

declare Z1 as like this.

data: z1 type p decimals 0.

reward if useful..

Former Member
0 Kudos

hi use this..

data: z1(15) type n .

regards,

venkat

vinod_vemuru2
Active Contributor
0 Kudos

Hi Ajay,

This dump is because ur computed value is more than system limit for the data type of that variable. Check below max limits for each data type.


b 0 to 255 0 
c Any alphanumeric character " " for every position 
d 8 user-defined alphanumeric characters; Only values in the format YYYYMMDD that are permitted as date entries according to the calendar rules are valid: YYYY (year): 0001 to 9999, MM(month): 01 to 12, DD (day): 01 to 31 "00000000" 
f Floating point numbers are displayed internally with 16 decimal places according to the IEEE-754 standard (double precision). Valid values are -1,7976931348623157EE+308 to -2,2250738585072014EE-308 for the negative area, the value zero, and +2,2250738585072014EE-308 to +1,7976931348623157EE+308 for the positive area. Both validity areas are extended in the direction of zero through denormalized numbers after IEEE-754. 0 
*i -2.147.483.648 to +2.147.483.647 0* "Check this limit 
n Any alphanumeric characters, however, valid values are only the digits 0 to 9 "0" for every position. 
p The valid length for packed numbers is between 1 and 16 bytes; two decimal places are packed into one byte, whereby the last byte only contains one place and the plus/minus sign; after the decimal separator, up to 14 decimal places are permitted. Depending on the field length len and the number of decimal places dec, the following applies for the value area: (-10^(2len -1) +1) / (10^(+dec)) to (+10^(2len -1) -1) /(10^(+dec)) in steps of 10^(-dec). Values in between this range are rounded off. 0 
string as for type c empty string of length 0 
s -32.768 to +32.767 0 
t 6 user-defined alphanumeric characters; the only valid values are numbers that are interpreted as a time specification in the 24-hour clock format HHMMSS. SAP recommmends to exclusively use 00 to 23 hours for HH (hours) and 00 to 59 for MM (minutes) and 00 to 59 for SS (seconds). "000000" 
x hexadecimal characters 0-9, A-F hexadecimal 0 
xstring as for type x empty string of length 0. 

U can declare ur varible to accomodate max length possible in ur calculation.

eg: DATA z1(25) TYPE n DECIMALS 0.

Thanks,

Vinod.

Former Member
0 Kudos

Hi,

I am facing almost same issue. please let me know if your issues got resolved.

Please reply ASAP.

Thanks.