2009 Feb 19 1:38 PM
Hi all,
I need to Convert a value(currency) there in Char field,
when im trying to move into a cureny field it goes to short dump,
Like value : 45,895.00 -(negative value) which is there in char field(lenght 17)
i wanna move tht value with sign, b'cos i have to do some arthematic calculation,
Regards,
Niranjan G.
2009 Feb 19 1:44 PM
2009 Feb 19 1:51 PM
hi,
this should work for you
DATA:
w_i TYPE p decimals 2 ,
w_c(10) TYPE c VALUE '-123.12' .
CONDENSE w_c.
w_i = w_c.
WRITE:/ w_i.
that might be happening because you have not condensed it and character is left justified and your currency field is right justified so condense it and then pass it into the packed.
thanks
sarves.