Calculating exchange rate in formula
This is trying to calculate based on rates stored in the RATEDB2 db.IF (@ISMBR(USD) OR @ISMBR(CAD)) Base_Amt=Tran_Amt * @XREF (RATEDB2,Conv_Rate); ELSE Base_Amt = Base_Amt; ENDIF;It does nothing.
Do the blocks for the two UDA's already exist in your main database (not the XREF database)? Is this a dense calculation? If they do not exist, and this is a dense calculation, you will never be able to force it to exist on the fly. To test - you can find a valid intersection of data - and lock and send 0's to one of the stored measures - then run your calc or hit refresh if it is dynamic. If values appear - this is your issue. And you will have to go about it another way.
Similar Messages
-
Power Pivot - Calculating Exchange Rates depending on MONTH
Hello everyone, I have a question, would like to know if someone can help me figuring out a solution. I have created a spreadsheet using powerquery and powerpivot. Loading the data on powerquery from different spreadsheets was a charm, the problem is calculating
the exchange rates per month. Let me try to explain better;
The structure is as following:
I have 3 tables, they are:
Dates– Just a dates (loaded directly on PowerPivot).
Invoice – Details of invoices for all customers, gross totals are in different rates (loaded through power query)
Customer – Detailed information of customers (loaded directly on PowerPivot).
Currency – exchange rates (loaded directly on PowerPivot).
Note: I mentioned where they were loaded because I do not know if that really matters, I guess it does not... but extra information will not hurt. Now, let's go to how these tables are connected between each other and their key columns:
The Invoice table has information on invoices dates, invoice gross total and customer code. This table is related to Customer table, which has the actual name of customers and other details. This link is done through the Customer Code column. The Currency
table have a relationship with the Customer Table through the Country Column.
What I want to achieve is a formula to do the exchange rate based on the Invoice Date column present on the Invoice Table. So I have created a column on the Currency Table named at each month of the year and populated it with the exchange rates for all countries
(countries listed using ISO3 format).
My problem is while I am able to select a column from the Currency table to do the exchange rate calculation using the below formula, I fail to realize how to do it per month:
=CALCULATE(sum(invoice[Gross Value])*SUM(Currency[Reverse]))
*Reverse is the column with the exchange rate for the country money to USD
What I am failing to do is how to make that calculation to also consider the month of the invoice and pull the exchange rate for the same month from the Currency table… something like:
Get the invoice date then find the column on Currency[Month] and multiply, providing me the USD amount.
I was unable to figure out a solution using the filters parameters from Calculate. If some of you ask why I am using SUM inside Calculate, is because if I only use SUM and try to do the math between the two tables I get an error saying that it was not possible
to determine the value on Currency[Reverse]. Same happens with SUMX. It worked out with Calculate, but then I cannot create other formulas using CALCULATE on that table because it will give that error on redundancy, unless I add a filter on it, which worked
last time (but I do not remember which thing /parameter used to filter, so do not ask it right now :D)
To be honest… I do not really need that level of accuracy, but my Virgo perfectionist side demands me to find a solution to that, that will not use a single exchange rate, but consider which is the correct exchange rate for the month of the invoice and calculate
it correctly for all invoices. Just so you know, the Invoices tables has more than 1million lines.
Anyone know how to crack this problem or can point me to some site where I can learn how to do it?
Thanks for the time reading all of this, even if you cannot help, I really appreciate it ;)Hi Estevao,
Having problems to understand how you managed to combine your currency table with the customer table by Country ID. Where’s the 1-side of this relation (many customers in the same country and many months for the same currency)?
Anyway: Seeing that you already use Power Query, I’d suggest that you prepare your data in a way that you can connect your currency table with your invoice table instead of with your customer table. Create a field in your Invoice Table
that concatenates Customers CountryID&Month.
Imke -
User exit for manually calculating exchange rate in MIRO
Dear All,
i want to change, exchange rate in MIRO transaction.
for that i have used user exit MRMH0003 (Logistics Invoice Verification: Revaluation/RAP), but unfortunately it doesn’t work.
so, can you please suggest, the better way to do this.
thanks and regards,
KaushikI,
Please take a look at BADI AC_DOCUMENT -
User exit for calculating exchange rate in MRER,MRKO,MRNB,MIRO
Hi All,
For the transactions MRER,MRKO,MRNB,MIRO I want to change the exchange rate type(tcurv-kurst) which is used to calculate exchange rate .
For example, exchange rate type 'M' is used to calculate the exchange rate but now i want to use the type 'ITAD' to calculate the exchange rate.Could you suggest some user exit or BADI for achieving this.Hi Subasree,
The user exits for respective tcodes are mentioned below,
MRER
Exit Name Description
MRER0001 Automotive Evaluated Receipt Settlement (ERS)
MRKO
Exit Name Description
RMVKON00 Enhancements to report "Settle consignment liabilities"
MM08R001 User exits for ERS
MM08R002 User exit for tolerance checks
MRNB
Exit Name Description
LMR1M001 User exits in Logistics Invoice Verification
LMR1M002 Account grouping for GR/IR account maintenance
LMR1M003 Number assignment in Logistics Invoice Verification
LMR1M004 Logistics Invoice Verification: item text for follow-on docs
LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Posting
LMR1M006 Logistics Invoice Verification: Process XML Invoice
MRMH0001 Logistics Invoice Verification: ERS procedure
MRMH0002 Logistics Invoice Verification: EDI inbound
MRMH0003 Logistics Invoice Verification: Revaluation/RAP
MRMN0001 Message output and creation: Logistics Invoice Verification
MIRO
Exit Name Description
LMR1M001 User exits in Logistics Invoice Verification
LMR1M002 Account grouping for GR/IR account maintenance
LMR1M003 Number assignment in Logistics Invoice Verification
LMR1M004 Logistics Invoice Verification: item text for follow-on docs
LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Posting
LMR1M006 Logistics Invoice Verification: Process XML Invoice
MRMH0001 Logistics Invoice Verification: ERS procedure
MRMH0002 Logistics Invoice Verification: EDI inbound
MRMH0003 Logistics Invoice Verification: Revaluation/RAP
MRMN0001 Message output and creation: Logistics Invoice Verification
Hope you will find the required amongst this,
Regards,
Soundarya. -
Exchange Rate difference in Balance Sheet-Revaluation in Foreign Currency
Hi
I wanted more clarification on the Exchange rate difference the system calculates when we generate a balance sheet and revalue at a fixed rate. The system does not give a breakup of the echange rate calculated. How do we arrive at the exchange rate.
And after having the exchange rate entries posted in the system. Can the system the show these values in the Balance sheet after Revaluation
Regards
FarheenDear Gordan
Below mentioned is the balance sheet which is Revaluated in Euro(System Currency)at a Fixed Rate of 1.42.
at the end of this report we can see that the system has calculated Exchange rate difference as Euro -66483.03 .We want a break up of that amount which is calculated by the system
Account Name Beginning of Year(EUR) Current Period(EUR) Beginning of Year(Revaluated by EUR) Current Period(Revaluated by EUR)
Asset 129,932.14 129,932.14 115,984.30 115,984.30
Fixed Assets
Owned Assets
Leasehold Improvements
Computers
Office Equipment
Furniture And Fixtures
Vehicles
Medical Equipments
Tangible Assets
Capital Work-In-Progress
Capital Work-In-Progress - Assets
Investments 104,895.10 104,895.10 104,895.10 104,895.10
Long Term Investments
Short Term Investments 104,895.10 104,895.10 104,895.10 104,895.10
Short term Investments
Long Term Investments 104,895.10 104,895.10 104,895.10 104,895.10
121001 - Equity Investment in Subsidiary-India 104,895.10 104,895.10 104,895.10 104,895.10
Current Assets, Loans And Advances 25,037.04 25,037.04 11,089.20 11,089.20
Current Assets 25,037.04 25,037.04 11,089.20 11,089.20
Inventories
Sundry Debtors
Cash On Hand
Bank Balances with Scheduled Banks In Current Accounts 25,037.04 25,037.04 11,089.20 11,089.20
131401 - Marfin Popular Bank,Limassol,Cyprus-17911136139 9,935.51 9,935.51 9,935.51 9,935.51
131402 - Marfin Popular Bank,Limassol,Cyprus-179132258722 13,940.48 13,940.48
131403 - Marfin Popular Bank,Limassol,Cyprus-179932258780 1,161.05 1,161.05 1,153.69 1,153.69
Bank Balances with Scheduled Banks In Deposit Accounts
Loans & Advances
Loans to Subsidiary Companies
Loans to Employees
Advances Recoverable in Cash or for value to be received
Advances recoverable in cash or in kind
Prepaid Expenses
Advances recoverable prvn.for Doubtdebts
Deposits (General)
Advance Tax/Tax Deducted at Source
Pre-Launch Expenses (Deferred)
Liability 206,065.33 206,065.33 182,467.33 182,467.33
Loan Funds
Secured Loans
Term Loans From Bank
Short Term Loan from Banks
Vehicle Loans
Interest Accured But Not Due
Secured Loan from Companies
Unsecured Loans
Term Loans from Banks
Unsecured loans From Companies
Fixed Deposits
Unsecured loans From Holding Company
Unsecured loans From Subsidiaries
Deferred Tax Liability
Deferred Tax Liability
Deferred Tax Liability
Current Liabilities And Provision 206,065.33 206,065.33 182,467.33 182,467.33
Current Liabilities 182,467.33 182,467.33 182,467.33 182,467.33
Sundry Creditors 182,467.33 182,467.33 182,467.33 182,467.33
231101 - Sundry Creditors - Supplier 182,467.33 182,467.33 182,467.33 182,467.33
Advances From Customer
Overdrawn Bank Balances
Tax Deducted at Source
Tax Deducted at Source - Non Resident u/s 195
Other Taxes
Other Liabilities - Statutory
Other Liabilities - Salary Payables
Provisions 23,598.00 23,598.00
Provision for Expenses 23,598.00 23,598.00
232106 - Provision for Expenses 23,598.00 23,598.00
Income Tax
Accumulated Depreciation
Leasehold Improvements
Computers
Office Equipments
Furniture and Fixtures
Vehicles
Medical Equipments
Software & their License
Technical Knowhow
Equity -76,133.19 -76,133.19 -66,483.03 -66,483.03
Shareholders' Funds 1,176.47 1,176.47
Share Capital 1,176.47 1,176.47
Authorized Share Capital
Equity Share Capital
Issued, Subscribed And Paid Up Share Capital 1,176.47 1,176.47
311201 - Equity Share Capital 1,176.47 1,176.47
Reserves And Surplus
Share Premium Account
Profit and Loss Account
Profit Period -77,309.66 -77,309.66
Exchange Rate Differences -66,483.03 -66,483.03
Edited by: Rekha Nagaraj on Dec 7, 2010 6:14 AM -
Help on Direct and Indirect Exchange Rate formula
Dear Experts,
As per subject, can anyone write the formula of how both "direct" and "indirect" exchange rate calculation works in SAP B1?
Warmest Regards,
ChinhoHi Chinho,
Direct: X units of local currency (LC) = 1 unit of foreign currency (FC)
Indirect: 1 unit of LC = X units of FC
Therefore, considert his example:
LC = EUR
FC = GBP
GBP Rate is set as 1.23
Document total = GBP 10.00
GBP 10.00 = EUR 12.30 when using the 'Direct Method' (1.23 EUR = 1 GBP)
GBP 10.00 = EUR 8.13 when using the 'Indirect Method' (1 EUR = 1.23 GBP)
All the best,
Kerstin -
Exchange Rate calculation - Performance problem
Background: I have a fact table with transactional data from a sales system which contains values in different currencies. I have only one reference currency in the reports. The user wants to be able to view the values in the reference currency
but with the exchange rate of the selected date.
I have a table with a row per currency/date combination and the exchange rate to the reference currency.
Records in the fact table also have a reference to the currency and a date.
Initial approach:
I created 2 measure groups, one base on the transactional data from the fact table and one with the exchange rates.
Both measure groups have in common the currency and date dimensions. A many to many relationship makes no sense because I have only one reference currency.
I create a calculated member to aggregate the data up to a selected date, something like this:
with member [Measures].[Net Sales Local Currency] AS (
Aggregate({null:[Time Hierarchy].[Date].CurrentMenber}, [Measures].[Net Sales LC])
member [Measures].[Exchange Rate to Reference] AS (
([Time Hierarchy].[Date].CurrentMenber, [Measures].[Exchange Rate])
member [Measures].[Net Sales Refence Currency] AS (
SUM([Currencies].[ISO Code].[ISO Code], [Measures].[Net Sales Local Currency]/[Measures].[Exchange Rate to Reference])
Results:
When I select only a date member, let's say the 01.01.2014 I get a result within a second. If a put 2 dates in the select the result takes about 10 minutes. I suppose I am making something wrong in my calculated members that cause this peformance penalty.
Could you please help me to debug my MDX code?
Any comments would be highly appreciated.
Kind Regards,
PaulHi Paul,
For MDX query performance, it is usually caused by the following factors:
Bottlenecks from SSAS Formula engines.
Bottlenecks from SSAS Storage engines.
Bottlenecks from system resources.
I would suggest you take a look at the following article which write by Charles, please see:
How do I troubleshoot the slow MDX query performance?http://social.msdn.microsoft.com/Forums/sqlserver/en-US/f1f57e7b-eced-4009-b635-3ebb1d7fa5b0/how-do-i-troubleshoot-the-slow-mdx-query-performance?forum=sqlanalysisservices
Based on your desription, you ecountered the performance issue after use date dimension to slice data. Does this happened at Client or SSAS Server side? Please elaboarte your scenario with more detail, and show the MDX script.
Furthermore, please take a look at the following article regarding currency Conversion in SSAS 2012:
http://social.technet.microsoft.com/wiki/contents/articles/18672.currency-conversion-in-ssas-2012-multidimensional-tabular.aspx
If you have any feedback on our support, please click
here.
Elvis Long
TechNet Community Support -
Exchange Rate calculation mismatch in Sales Order Invoice and Cancelled Invoice
Hi,
In Sales Invoice, Exchange Rate is maintained as 7.75132
Invoice Amount is 72000 USD. So the Amount calculated should be 558095.04.
But in Accounting Document the Amount is posted as 558095.15 for the GL Sales Account.
In Cancelled Sales Invoice, Amount posted is 558095.04 in GL Sales Account which is correct.
Please help me understand why there is difference in both the Amount even when the Exchange Rate is same.
Regards,
Debashri DuttaHi Ankur,
Thanks for your reply.But our problem is sales order,exchange rates are defined with M type in OB08 as u have said.However when the periods are different for order entry and invoice generation we are facing the following problem.Orders are at old exchange rates and excise invoice is getting generated at current exchange rate.This is resulting in value difference between commercial invoice and excise invoice.
Please help.
Regards,
Praveen -
Hi,
My company uses Hyperion. We have 7 different currencies across 18 markets so rolling up our numbers into a reporting currency can be complicated. After pleading with our business control team they finally explained the monthly reporting formula whereby for a given month it takes the total value in local currency to the last reported month multiplied by the average reporting currency exchange rate to that month. This is followed by the same process for the current month using the year to date ave. exchange rate and then subtracting the two to get the actual reported number (who came up with this I wonder).
Anyway, now I am looking at the year budget and the formula is not working. Looking on some forums I can see that Hyperion has 'planning' and 'target' options and I guess we are using a different formula for the budget.
Can anyone point me in the direction of these formulae so that I can do some planning in excel and avoid having to wait for business control to plug everything into Hyperion before I get a new budget number!
Thanks a million to anyone who can help.
GavinHi,
I cannot say I completely understood about the method used for conversion, but it's evident that the conversion rule must be modified for it to meet the requirement. It's always better to go back to whoever built this application in the first place and ask them to make the modification. Or if you have a Planning/Essbase administrator, they should be skilled enough to apply the logic. Unfortunately changing the currency conversion rule in Planning is not a user task, therefore should be handled by an admin/developer.
Cheers,
Ap -
Exchange Rate Calculation - Can I change it?
BPCu2019s conversion process is different from the way weu2019re currently operating. Currently, weu2019re pulling data from Oanda.COM for every Currency-to-Currency permutation and using Oandau2019s rounded to 5 decimal place rate to calculate the exchange rates in our Financial System.
However, BPC seems to convert differently. In BPC, we've loaded all Rates to the tblFactRate table as they relate to USD. So, if calculations need to be done between non-USD currencies, the rates are calculated on the fly based on the ratesu2019 relation to the USD rate.
Example:
For February 2010 we have the following Average rates:
Oanda.com (These are the rounded to 5 Decimal rates for the 28 days of February, averaged, then rounded to 5 Decimal Places again)
GBP u2013 USD: 1.56285
EUR u2013 USD: 1.36842
GBP u2013 EUR: 1.14235
In BPC we only have the following rates in the tblFactRate table, so the system cannot use the GBP u2013 EUR rate from Oanda.com. We only load the following:
GBP u2013 USD: 1.56285
EUR u2013 USD: 1.36842
If a conversion is needed for GBP u2013 EUR, it will calculate the rate on the fly as so:
1.56285 / 1.36842 = 1.142083571
So, because Oanda is using a Rounded Average, based on Rounded rates, the way things are now, the BPC Calculated Rate will not match the rates in our Financial System.
Is this a configuration issue or is this simply the way the software does FX Translation? Is it possible to load GBP - EUR rates somehow and have BPC calculate those rates based on what we input rather than the calculation being used?
Thanks!
SeanHi,
I dont think this can be changed. BPC stores the conversion rates with respect to the group currency (or the currency of the parent entity). So, the currency translation is also done based on the group currency, as you have indicated. With 5 places of decimal, the figures will definitely not match.
Hope this helps. -
Tax calculated on the exchange rate differiences and interests
Hi Sap Guru's, I have a question for you.
NOTE:... my FI knowledge is not very good
I have postings with the line exchange rate difference and strange is, if the tax on the normal posting is calculated, there is also calculated tax on the exchange rate difference amount. Our FI experts said that this is not correct and the tax shouldn't be calculated on such postings like interests or exchange rate differences...
Any tip, where I can check or set this?
BR
SasoHi Saso,
Have a look with FS00 if the account for exchange rate is tax relevant.
When you change this to not tax relevant please test it in Q system perhaps it blocks automatecly posting
Paul -
Sales order takes Translation date for exchange rate calculation
Hi
I am creating the debit memo request via DP91 with reference to the contract. In the debit memo request pricing date has been set as current date but transaltion date has set the contract transaltion date. Debit Memo request document currency is EURO, local currency is GBP and condtion currency is CHF.
In this scinerio in order exchange rate has been calculated against the transation date insted of pricing date.
Can you please advise why the system behaving like this.
Thanks & regards,
Siva.Mike,
I assumed your question is for an additional local currency for a company code (this can be changed in OB22). For the first local currency, the translation date type in OB22 is always set to 3 (Translation Date) and cannot be changed (hence, greyed out). Following that, in accounting entry transactions (for example FB01), you will see a field (Translation Date) where you can specify a date for which you want the system to fetch exch. rate from the exch. rate table. In your situation, you will have to enter 'document date' there.
PS: The reply above by Ravi applies only to tax items' translation, not for all items. He is basically talking about the indicator that you see in OBY6. -
Exchange rate calculation in case of partial payment.
Dear All,
I have a case in which I need to calculate Exchange rate fluctuation on partial payment.
Example
Exchange Rate
01.04.2011 1USD = 40 INR
10.04.2011 1USD = 45 INR
01.05.2011 1USD = 50 INR
31.05.2011 1USD = 55 INR
Invoice Date = 01.04.2011 (1USD = 40 INR)
Purchase Ac Dr 100 USD
To Vendor 100 USD
Partial Payment on 10.04.2011 of 20 USD
(10.04.2011 1USD = 45 INR )
Vendor Ac Dr 20 USD
To Bank Cr 20 USD
Partial Payment on 01.05.2011 of 60 USD
(10.04.2011 1USD = 50 INR )
Vendor Ac Dr 60 USD
To Bank Cr 60 USD
On 31.05.2011 (Month end Revaluation FAGL_FG_VAL)
(31.05.2011 1USD = 55 INR )
If we do the valuation you will find that system create Fluctuation on the basis of Rate maintain on 31.05.2011 .i.e 1 USD = 55 INR.
Ideally system should generate fluctuation at the time of partial payment only so in that case fluctuation will be less. And this is as per accounting standard also.
( I know partial payment is open item and system will not calculate exchange fluctuation in that case. But then this will be wrong practice.)
(If I go for residual payment in that case system will clear full invoice amount then and there and create exchange rate fluctuation of full amount which is also wrong).
Kindly Suggest
BittuThanks Atif.
It mean that we have to show excess loss in our report, which is not actual.
SAP might be having some solution on this Issue as we cant show wrong B/S.
This is not a correct practice , hope you agree with me.
bittu -
Exchange Rate amount is not calculating correctly in iProcurement
Hi All,
The exchange rate is mismatching when i create a requisition in the iProcurement (11.5.10.2 version).Please find the below test case and suggest me accrodingly.
Example: on 06-May-09 and 07-May-09 i have create a requisition in the iProcurement with the currency as BHD (Note: Our functional currency is USD). The exchange rate is defined from USD to BHD is .377 and this rate is fixed for the entire month.
The requisition created in the following manner:
Requisition created in 06-May-09:
=======================
Line #1 120 BHD---the exchange rate amount in USD is 318.22
Line#2 20BHD---the exchange rate amount in USD is 53.04
=========
Total : 371.25
Requisition Created in 07-May-09:
====================
Line #1 120 BHD---the exchange rate amount in USD is 318.30
Line #2 20BHD---the exchange rate amount in USD is 53.05
============
Total: 371.35
Form the above test cases can any one help me why the requisition amount is slightly chagned from 371.25 to 371.35 even though we are using the same conversion rate (.377)..plz help ASAP , this is an very urgent for ME.
Regards,
Kevin.
Edited by: kevin329 on May 7, 2009 4:53 AMhi
check whether you have maintained the exchange rate settings also check whether price is maintained -
Exchange rate calculated wrong
Hi All,
We have a case where Our Cash allocation Team has cleared the items on the attachment on the customer account 1418029 in SAP PRE. The clearing document is 16000167. As per the credit controller s advise they needed to clear the item and leave exceed amount of 15731.44 EUR. They used T-code F-32 and they made the part allocation in EUR.
As it shows the exceed amount was left there indeed. It is 15,731.44 EUR. FX rate 1.41401 which should give 22,244.41 USD in loc curr and not as it shows in customer account (39,454.25 USD). Can you pls advise what has happened as it caused serious problems in the last month end reporting.
The clearing doc has another clearing document i.e 16000194 in which for the particular effective exchange rate it is showing 2.50799.but if u check inside the document they have given exchange rate as 1.41401.From where the effective exc rate is picking.
can anybody help on this?
Thanks
AniswaCustomer account shows the amount as per the posting date exchange rate.
But in F-32, F-44 & F-03 clearing screens will show the amount as per the exchange rate of clearing date which is different to posting date. This is normal behaviour only.
While clearing system automatically creates the realized loss/gain line items automatically.
Rgds
Murali. N
Maybe you are looking for
-
Need to move iTunes library from external hard drive to Mac desktop.
I moved my iTunes library from my Mac desktop to an external hard drive. I needed to do this so the Apple Store could do maintenance work on my computer and I didn't want to lose my files. How do I move the iTunes library back to my Mac desktop?
-
why is the ipad mini screen so delicate I just got my ipad mini yesterday and it fell of a stand I bought and now the screen is cracked
-
How to enable....
Ok so I've got a QT movie with the video track enabled, but no audio track, and and ad QT movie with the audio track enabled, but no video track. I'm trying to combine the two. I can't "add" the aduio to the QT picture file because the audio track is
-
Unable to configure SSO in Oracle11g
Hi, I have tried to install and Configure SSO in Windows 2008 R2 server (64bit). I am facing issue with SSO Metadata repository installaion, please helpful on that. Steps I did 1. Installed Oracle 11g R2 2. Installed Oracle WebLogic Server (10.3.3) 3
-
ITunes U Access Control Limits question
Is there any way to publish content to iTunes U and then limit access to my students such that they only see iTunes U content, and not music / movies, etc.?