Skip to Content

CONVT_OVERFLOW in alv output

Hi All,

In my alv report I am displaying the Delivery qty. field(LFIMG) which is in editable mode. I am having a push button on alv tool bar to do some functionality. I am changing the quantity field value to 999999999999 and when I clicked the push button, it is giving me the below dump.

Overflow when converting from "99999999999999999 "

Error analysis

When attempting to convert the value "99999999999999999 ",

an overflow occurred.

There is probably an error in the program

"SAPLKKBL ".

Information on where termination occurred

The termination occurred in the ABAP/4 program "SAPLKKBL " in

"FIELDS_READ".

The main program was "ZREPORT ".

The termination occurred in line 6162

of the source code of program "LKKBLF01 " (when calling the editor 61620).

061580                 MOVE L_CHAR2 TO L_LST2.

061590                 L_FACTOR = L_LST1 / L_LST2.

061600               ENDIF.

061610             ENDIF.

     >             <FIELD> = LT_FILTER-VALUF_INT.

061630             <FIELD> = <FIELD> * L_FACTOR.

061640           ELSE.

061650             <FIELD> = LT_FILTER-VALUF_INT.

061660           ENDIF.

When the user enters such values, how to display error message? Can we avoid the dump. Please help me.

Thanks,

Haritha

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 06, 2015 at 08:18 AM

    Hi Haritha P,

    You can take a vriable of charater type whihc can ghold around 25 degits.

    e.g wf_amount(25) type c.

    It wil not overflow the value and will not give dump.

    Regards,

    Pravin         

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 05, 2015 at 07:38 PM

    hi haritha,

    Can't you handle with exception?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Haritha P

      hi,

      have you defined pf_status like this

      ------------

      I_CALLBACK_PF_STATUS = 'PF_STATUS1'   

      ........................

      form pf_status1.

        set pf-status 'PF_STATUS1'.

      endform.

      then do hope that

      I_CALLBACK_USER_COMMAND = 'USER_COMMAND' 

      user commmand will work

  • avatar image
    Former Member
    Jan 05, 2015 at 08:23 PM

    It's probably because 99999999999999999 lies outside the maximum value for an integer (2147483647). Try a smaller number instead.

    Rob

    Add comment
    10|10000 characters needed characters exceeded