Application Development and Automation 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: 
Read only

converting from currency to float value

Former Member
0 Likes
1,541

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
Read only

Former Member
0 Likes
859

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.

Read only

Former Member
0 Likes
859

take in type p var.

data cur type p decimals 2.

cur = currency.

regards

shiba dutta

Read only

Former Member
0 Likes
859

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

Read only

0 Likes
859

Hello,

Check this thread:

Regards,

Vasanth