06-16-2011 12:08 AM
Hi ABAP Gurus,
While executing the Z-transaction code, one of the user is getting short dump
RUN Time error - CONVT_NO_NUMBER
Short Text - Unable to interpret 0,000 as a number.
this is happening for only one of the user. Other users are able to execute the transaction without any short dump. Checked user profile settings .. no differences found.
Please help suggest.
Thanks & Regards,
Nilesh
06-16-2011 12:19 AM
Hello,
Usually this shot dump means that you wanted to do numeric operations, but the value specified is not a numeric one. In your case, ABAP wouldn't interpret "0,000" as a numeric value because of the comma.
You can try replacing ',' by '.' using the statement REPLACE.
As for the specific user issue, it may be that your users are processing different data.
06-16-2011 1:23 AM
Try with this:
REPLACE ALL OCCURRENCES OF '.' IN v_var WITH ''.
REPLACE ALL OCCURRENCES OF ',' IN v_var WITH '.'.
both liines...
Edited by: Sandra Torres on Jun 16, 2011 2:23 AM
06-16-2011 6:38 AM
try rhis
REPLACE ALL OCCURRENCES OF ',' IN v_var WITH ''.
NOTE: you need to see the SYSTEM ->user settings -> own data
because each user will maintain their own settings (some wil use , to intrepet . or vise versa)
so use this REPLACE ALL OCCURRENCES OF ',' <<<----
according to user settings
thanks and regards,
koolspy.
06-16-2011 7:29 AM
check user details in SU01 defaults - decimal notaion.
if it is occuring in Z program, take care of possible notations.
you can use replace statement
06-16-2011 8:36 AM
Hi Nilesh,
If it's happening for specific user, then decimal notation in default setting is not maintained correctly for those user.
Change default decimal notation of those user.
Path->
System->user profile->own data->default->set decimal notaion like 1,234,567.89
Regards,
Goutam
06-16-2011 11:34 AM
Use CATCH....ENDCATCH
For example
catch system-exceptions <exception>.
Write your Logic
endcatch .
Edited by: Krupaji on Jun 16, 2011 12:35 PM