01-05-2015 2:37 PM
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
01-06-2015 8: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
01-05-2015 7:38 PM
01-06-2015 6:29 AM
Hi Raheem,
can you explain me how to handle with exception. It is not going into my user command at all.
Thanks,
Haritha
01-06-2015 7:29 AM
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
01-05-2015 8:23 PM
It's probably because 99999999999999999 lies outside the maximum value for an integer (2147483647). Try a smaller number instead.
Rob
01-06-2015 8: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