05-18-2010 7:54 PM
Hello,
The value for field ABSAT will be coming from CSV file, although this value is coming in FLTP format: 7.72E+03 (this is how value is visible in csv file and same in debugger).
when i am trying to move this value into internal table which has field type of ABSAT............i am getting some error "unicode conversion not possible".
any possible bailout...............casting ??.........if yes.....how..
need any additional info...please let me know.
05-18-2010 9:31 PM
HI Ankit,
Copy that field to some other field which is packed decimal, this will work try.
Eg
if your field is a and other field is b,
b type p decimals 2.
b = a.
write : / b.
O/P
7,720.000.
Thanks and regard's,
Anmol Bhat
05-18-2010 9:31 PM
HI Ankit,
Copy that field to some other field which is packed decimal, this will work try.
Eg
if your field is a and other field is b,
b type p decimals 2.
b = a.
write : / b.
O/P
7,720.000.
Thanks and regard's,
Anmol Bhat
05-18-2010 9:44 PM
Hi,
Try to convert: c => f => p .
Like this:
data: vc(20),
vf type f,
vp type p decimals 3.
vc = '7.72E+03'.
vf = vc.
vp = vf.
write vp.
Best regards,
Leandro Mengue
05-18-2010 9:59 PM
05-19-2010 6:40 PM
check out function modules FLTP_CHAR_CONVERSION and CHAR_FLTP_CONVERSION
Regards,
Karol
05-25-2010 11:38 AM