‎2009 May 04 5:56 AM
hi,
I have following requirements :
1) conversion from one currency to another currency.
2) conversion from currency as stored in SAP format to another currency.
3) decimail places up 10.
For "conversion from one currency to another currency" i can use FM : CONVERT_TO_FOREIGN_CURRENCY.
For " conversion from currency as stored in SAP format to another currency: i can use FM : AIPB_CURRENCY_SAP_TO_EXTERNAL
problem: is in above 2 FM the decimal places are not up to 10 places
now to fulfill my requirement how can i combine above 2 FM and how to change decimal places up to 10.?
regards
rahul
Edited by: RAHUL SHARMA on May 4, 2009 12:56 AM
‎2009 May 04 6:04 AM
Hi Rahul,
You have 2 requirements 1. to convert the currency 2.upto 10 decimals.
Since you have found a FM for your 1st requirement go ahead and first convert the currency.
Once you have some value more it to a variable which has 10 decimals.
Use FM and get a w_curr.
data:
w_temp type p decimals 10.
move w_curr to w_temp.
Much Regards,
Amuktha.
‎2009 May 04 6:15 AM
HI
use this FM
PRC_CNV_CURR_CONV_TO_FOREIGN
You can provide local currency with 10 decimal places in it.
Thanks
Viquar Iqbal
‎2009 May 04 7:11 AM
‎2009 May 04 8:21 AM
Hi Rahul,
Look at this Reference : [Currency Conversion|;
For you requirement you can also do like this.
use PRC_CNV_CURR_CONV_TO_FOREIGN &
use FM READ_EXCHANGE_RATE... you will get the exchange rate,,
take a variable of type p.
ex. ex_rate type p decimals 10.
and multiply with exhancge rate into a 10 decimal point variable.
Thanks & regards,
Dileep .C
‎2009 May 04 10:04 AM
Check this link,
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/fm%2bcurrency%2bconversion
Regards,
Joan
‎2009 May 04 10:14 AM
‎2009 May 04 10:26 AM