‎2008 Jul 15 12:21 PM
Hi,
In my program I have a field called LGPLA with data type char.It is having values 01-01-01
01-01-03
01-01-04
01-01-06
01-02-01.When I try to execute the program it is giving run time error as 'Unable to interpret "01-01-06 " as a number'.
Can anyone suggest me asolution for this?
‎2008 Jul 15 12:24 PM
‎2008 Jul 15 12:28 PM
That's a standard field cannot be changed to string. It is storage bin
‎2008 Jul 15 12:26 PM
Hi,
If the field type is C then it should not happen.
Is it that value to this field is passed from some other field.
Juct check or Debug once again.
Hope this helps!!!
Regards,
Lalit
‎2008 Jul 15 12:26 PM
Hi ,
It is working fine for me. I hope that you are passing this value into some integer data type and it is throwing error.
Please check ur code.
data: char1(8) type c value '01-01-06'.
write: char1.
Thanks & Regards,
Nagaraj kalbavi
‎2008 Jul 15 12:27 PM
01-01-06 " as a number'.
i hope you are doing some calculations or some operations on that filed , thinking that it is number.
so try to convert that to number or check your code once
what are you doing exactly let me know..
if possible show the code where it caused the dump.
‎2008 Jul 15 12:28 PM
Hi abap developer,
Can i see the part of the code where you are getting this run time error.
Thanks,
Sai
‎2008 Jul 15 12:28 PM
LGPLA is a CHAR 10 field.
you're error must be where you're trying to move it to is likely a N, P or F type, basically anything but a type C.
Since we have no code to look at.. best I can suggest.
‎2008 Jul 15 12:28 PM
U might be comparing this char variable with a field of type P ..
data : v_LGPLA(10) value '01-01-06'.
data : v_p type p decimals 2 .
if v_LGPLA = v_p. <-- it will give a dump here
endif.
‎2008 Jul 15 12:28 PM
Hi the data element is a char type and of length 10. I assume you are using this data element as a numeric field in your program. ( which it is not able to interpret as a a numeric field). Check the usage of this field or data element in your program.