03-07-2007 10:47 AM
Hi,
i am fasing an issuue regarding the conversion of data types.
I have one field(curr) of currency type with value;78,97,564.00.
one more field(float) of type float.
float = curr.
while i am assigning this currency field to float ,it is giving a dump that
the the conversion is not possible.
Can any body help me to solve this issue.
is there any function modules for this conversion.
Thanks in advance,
Regards,
eswar
03-07-2007 10:52 AM
hi Venkat,
do this way
data : v_curr like bseg-dmbtr value '78,97,564.00',
v_float type f.
replace ',' with '' into v_curr.
v_float = v_curr.
write v_curr.
03-07-2007 10:53 AM
take in type p var.
data cur type p decimals 2.
cur = currency.
regards
shiba dutta
03-07-2007 10:57 AM
Try this out ...
data : v_curr like bseg-dmbtr value '7897564.00',
v_currc(16) type c,
v_float type f.
v_currc = v_curr.
v_float = v_currc.
write v_curr.
Hope it helps u..
sai ramesh
03-07-2007 11:04 AM