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: 

CONVT_OVERFLOW in alv output

Bharath84
Participant
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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         

5 REPLIES 5

Former Member
0 Kudos

hi haritha,

Can't you handle with exception?

0 Kudos

Hi Raheem,

can you explain me how to handle with exception. It is not going into my user command at all.

Thanks,

Haritha

0 Kudos

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

Former Member
0 Kudos

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

Rob

Former Member
0 Kudos

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