‎2006 Aug 25 4:55 AM
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
‎2006 Aug 25 5:12 AM
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.