0% found this document useful (0 votes)
1K views

Currency Conversion in Hana

The document describes how to perform currency conversion in SAP HANA. It involves creating an analytical view and calculated measures to convert a profit measure from one currency to another, such as from Euros to US Dollars. The key steps are to replicate standard SAP currency conversion tables, create the analytical view selecting relevant tables, create calculated measures for the original and converted currencies, and select the appropriate currency conversion attributes when defining the converted currency measure.

Uploaded by

raghu.mba8882
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views

Currency Conversion in Hana

The document describes how to perform currency conversion in SAP HANA. It involves creating an analytical view and calculated measures to convert a profit measure from one currency to another, such as from Euros to US Dollars. The key steps are to replicate standard SAP currency conversion tables, create the analytical view selecting relevant tables, create calculated measures for the original and converted currencies, and select the appropriate currency conversion attributes when defining the converted currency measure.

Uploaded by

raghu.mba8882
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

SAP HANA and In-Memory Business Data Management Previous postNext post

How to perform Currency Conversion in SAP HANA


Posted by Neha Singla in SAP HANA and In-Memory Business Data Management on Apr 27, 2012 11:31:31 AM
inShare

Hello Everyone, In this document, I tried to explain "Currency Conversion" functionality. Through this, I am trying to provide the general functionality and idea about the Currency translation in SAP HANA. Note: While using this option you need to replicate the standard table into SAP HANA that are TCURR, TCURC, TCURX, TCURF, TCURT, TCURV . If these standard tables are not available then you will not be able to perform Currency Conversion.

Procedure:
1. Create an Analytical view Right Click on Analytical View > New

2. Enter AN_TEST for the name of the view

Select Schema under the Schema for conversion having all the relevant tables used for currency conversion. Click Finish

3. Select Table and click finish.

4. Select the measures and attributes to be included in the analytical view.

5. Now, Right click on Calculated Measures and choose New.

6. Create the Calculated Measure, "Profit".

Select Decimal data type with length 13,2 Double click on the desired measure for it to appear in the expression editor. Either type in the minus sign or double click on the Operator.
Click OK.

7. Create second Calculated Measure, "Profit_IN_USD".

Write the same expression as written under previous calculated measure.

Select Currency/Unit of Measure tab.


Enter the values as shown in below figure. Click OK.

Note: you can select either attribute or fixed Currency according to the requirement. In this example, I am using USD that is fixed currency and Currency that is an attribute.

8. Save and Activate Analytical View.

9. Display the data in your Analytical View.

Right click on Analytical View and select Data Preview

Hope it is helpful. Thanks for reading the document. Regards, Neha Singla
2060 Views Tags: hana, modeling, sap_hana

Average User Rating (2 ratings)


inShare

15 Comments

Neelesh Jain Apr 28, 2012 9:41 PM

Thanks for the information... But a small correction, in first step you mentioned creating an attribute view, wherein you are actually creating an analytic view
Like (0)

o
Neha Singla Apr 29, 2012 7:41 AM (in response to Neelesh Jain)

Thanks Neelesh.. I corrected my mistake.. Regards, Neha


Like (0)

Ravi Shankar Apr 29, 2012 10:04 AM

Good document for concurrency conversions in SAP HANA....


Like (0)

o
Neha Singla Apr 29, 2012 1:17 PM (in response to Ravi Shankar)

Thanks Ravi..
Like (1)

Krishna Tangudu Apr 29, 2012 12:34 PM

Hello Neha, I liked the "Note" part, it was helpful. Thanks a lot. Excellent writeup. Regards, Krishna Tangudu
Like (0)

o
Neha Singla Apr 29, 2012 1:16 PM (in response to Krishna Tangudu)

Thanks Krishna..
Like (0)

Brendan Hetherington May 31, 2012 2:22 PM

Are there any specific authorisations required to perform this operation? I still get the error message for Session Client, even though the DB admin has set it.
Like (0)

o
Neha Singla Jun 1, 2012 7:34 AM (in response to Brendan Hetherington)

Hello Brendan, Thanks for reading my post. Please follow the following step: 1. Goto Catalog > Authorization > Users > SYSTEM (here i am using SYSTEM is my user, in your case it might be differnet) 2. Open the User Profile by double clicking on the SYSTEM 3. Under the session client please enter the value, in my case i am entering 800. now you can able to perform currency translation. Hoope it is useful. Regards, neha
Like (0)

Prasath Vettrinathan Sep 6, 2012 12:39 PM

Hello Neha, The document was really helpful. I would like to know if all the tables(TCURR, TCURC, TCURX, TCURF, TCURT, TCURV) need to be replicated or if we have some of those tables in a schema, then can that schema be used for currency conversion? Please guide me here. Thanks,

Prasath.
Like (0)

o
Anooj Behanan Sep 6, 2012 3:14 PM (in response to Prasath Vettrinathan)

Hi Prasath, To answer this point - Yes you can create the above tables with data in any schema and use that schema for currency conversion within your analytic view. Thanks, Anooj
Like (0)

Vivek RR Nov 7, 2012 7:07 PM

HI Neha IN the step 7 of currency conversion ... if I want a most recent transaction date to be considered instead of a fixed date, how would I set it ?
Like (0)

o
Brendan Hetherington Nov 8, 2012 12:15 PM (in response to Vivek RR)

As long as you have the date as an object in your model you can use that, when you click on the Date option, the Date Mapping window gives options of Fixed, Attribute and Input parameter, choose Attribute and you the relevant date from your data foundation, obviously if you don't have the date you require you will need to add it to your foundation. This allows you to pick up a date from the transaction and use that as your conversion date.
Like (0)

Rudrabhupal B Dec 18, 2012 9:47 AM

Hi Neha, I was working on this thing the other day and your document was really of great help. And i noticed that, the Default Client has to be set to 100 in the properties tab of the analytical view. without that i was not getting the options in the box where i was supposed to select from and to currency. Thanks and regards, Rudrabhupal PB.
Like (0)

Rudrabhupal B Dec 18, 2012 10:42 AM

Hi Everyone, When i was working on conversion of Indonesian currency to USD, i observed that the final view output is different from the value i manually calculated using the present market rate of USD wrt IDR(Indonesian currency). The difference was that the view output value was about 1000 times bigger than the manually calculated value. Interestingly the value maintained in the TCURR table for this specific conversion in the FFACT('Ratio for the "From" Currency Units') column was 1000. SO does this FFACT column value play any role in the conversion, if so how should i use this value while implementing the conversion on HANA? For that, I need to understand how the currency conversion takes place at the backend of HANA. and what the columns in "TCURR" table mean. Can someone please explain or help me on this? Thanks and regards,

Rudrabhupal PB.
Like (0)

o
Tobias Mller Mar 19, 2013 8:50 AM (in response to Rudrabhupal B)

Hi Rudrabhupal, have a look at http://www.saptechies.com/currency-translation-faq/ or sap note 783877 in order to understand the way FFACT and TFACT are beeing considered. Regards, Tobias Mller

You might also like