Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

converting from currency to float value

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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.

Former Member
0 Kudos

take in type p var.

data cur type p decimals 2.

cur = currency.

regards

shiba dutta

Former Member
0 Kudos

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

0 Kudos

Hello,

Check this thread:

Regards,

Vasanth