Currency Conversion in Hana

9
SAP HANA and In-Memory Business Data Management Previous post Next 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

description

Currency Conversion in Hana, Collected from SCN blog.

Transcript of Currency Conversion in Hana

Page 1: Currency Conversion in Hana

SAP HANA and In-Memory Business Data Management

 Previous post Next post

How to perform Currency Conversion in SAP HANAPosted by Neha Singla in SAP HANA and In-Memory Business Data Management on Apr 27, 2012 11:31:31 AMinShare

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 

Page 2: Currency Conversion in Hana

 3. Select Table and click finish. 

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

Page 3: Currency Conversion in Hana

 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.

 

Page 4: Currency Conversion in Hana

 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. 

Page 5: Currency Conversion in Hana

 8. Save and Activate Analytical View. 

 9. Display the data in your Analytical View.

Right click on Analytical View and select Data Preview 

Page 6: Currency Conversion in Hana

 

Hope it is helpful.  Thanks for reading the document. Regards,Neha Singla2060 Views Tags: hana, modeling, sap_hanaAverage User Rating(2 ratings)

inShare

15 Comments

Neelesh Jain Apr 28, 2012 9:41 PMThanks 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)

oNeha Singla Apr 29, 2012 7:41 AM (in response to Neelesh Jain)Thanks Neelesh.. I corrected my mistake.. Regards,NehaLike (0)

Ravi Shankar Apr 29, 2012 10:04 AMGood document for concurrency conversions in SAP HANA....Like (0)

Page 7: Currency Conversion in Hana

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

Thanks Ravi.. Like (1)

Krishna Tangudu Apr 29, 2012 12:34 PMHello Neha, I liked the "Note" part, it was helpful. Thanks a lot.Excellent writeup. Regards,Krishna TanguduLike (0)

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

Thanks Krishna.. Like (0)

Brendan Hetherington May 31, 2012 2:22 PMAre 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)

oNeha 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 SYSTEM3. 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,nehaLike (0)

Prasath Vettrinathan Sep 6, 2012 12:39 PMHello Neha, 

Page 8: Currency Conversion in Hana

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)

oAnooj 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,AnoojLike (0)

Vivek RR Nov 7, 2012 7:07 PMHI 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)

oBrendan 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 AMHi 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 AMHi Everyone,

Page 9: Currency Conversion in Hana

When i was working on conversion of Indonesian currency to USD, i observed that the final view output is different fromthe 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)

oTobias Müller 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 Müller