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 numeric to currency

Former Member
0 Likes
1,587

hi,

i want to change a field value from numeric to currency field,

can any one say me.

hi,

i want to change a field value from numeric to currency field,

can any one say me.

5 REPLIES 5
Read only

Former Member
0 Likes
1,322

Did you move the value to a currency variable?

Move num_var to curr_var.

regards,

Ravi

Read only

0 Likes
1,322

Hi,

you can try this ...

data: curr type i.
data currency type netpr.
curr = 100.

move curr to currency .

Regards

vijay

Read only

Former Member
0 Likes
1,322

Hi,

Just move the num to curr.

data : v_num(8) type N,

v_bet like pa0008-bet01.

v_num = '12345678'.

v_bet = v_num.

Regards,

GSR.

Read only

Former Member
0 Likes
1,322

Hi,

Check this ..

data: curr type i.
data curency type netpr.
curr = 100.

move curr to curency.
write CURENCY  currency 'USD'.

Regards

vijay

Read only

Former Member
0 Likes
1,322

Hi,

I tried this code and it works fine..

REPORT YRTANS_TEST .

data num1 type i.

num1 = 20.

data cur like marc-VKUMC.

move num1 to cur.

write num1.

write cur.

Regards,

Tanveer.

Mark helpful answers.

Please Close the thread and mark helpful answers.