Skip to Content
author's profile photo Former Member
Former Member

Dump : COMPUTE_INT_PLUS_OVERFLOW

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on May 24, 2008 at 11:46 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 24, 2008 at 11:16 AM

    Hi,,

    z1 is declared as:

    data: z1 like sy-dbcnt.

    declare Z1 as like this.

    data: z1 type p decimals 0.

    reward if useful..

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 24, 2008 at 11:24 AM

    hi use this..

    data: z1(15) type n .

    regards,

    venkat

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 01:28 AM

    Hi,

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

    Please reply ASAP.

    Thanks.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.