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

Regarding Currency Problem

Former Member
0 Likes
325

Hi All,

Report program is showing the currency in the form 322.500,00 format.I am using CONVERT_TO_FOREIGN_CURRENCY function Module for that local currency to foreign currency. But FM is not taking this format as input.So, I have passed it to CHAR20 variable and then used replace all occurrence of '.' with SPACE and '.' with ','. Then FM works fine it returns variable in form 21567234 then I am passing this to variable currency it returns with 215672.34.

I also pass it to the same variable type vbdpr-netwr. But it is not converting it in the format 215.672,34 . Please suggest some way to achieve the same format again.

regards,

Brijesh Patel

1 REPLY 1
Read only

Former Member
0 Likes
289

hi,

Use the format options that suits your requirement.

data: v_pack type p decimals 2 value '2345.67'.

write 😕 v_pack. "2.345,67

set country 'US'.

write 😕 v_pack. "2,345.67

write 😕 v_pack no-grouping. "2345.67

Regards,

Sailaja.