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

Implementing Currency Conversion in A Calculation View

The document discusses how to implement currency conversion in a calculation view in SAP HANA, including ensuring the necessary TCUR* tables are available, defining the semantics and conversion settings for a column, and creating and configuring the necessary projections, unions, aggregations, and calculated columns to perform the currency conversion from the source to target currency specified.

Uploaded by

deva7071
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views

Implementing Currency Conversion in A Calculation View

The document discusses how to implement currency conversion in a calculation view in SAP HANA, including ensuring the necessary TCUR* tables are available, defining the semantics and conversion settings for a column, and creating and configuring the necessary projections, unions, aggregations, and calculated columns to perform the currency conversion from the source to target currency specified.

Uploaded by

deva7071
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 20

Implementing currency conversion in a calculation view

Business Example
You are at a customer site where EPM data is available. USD is the general corporate reporting
currency
You have been asked to build Calculation Views for SAP HANA for the purpose of displaying
Make sure Currency Conversion related tables (TCUR*) are present in your schema and has data

Assign the following semantics to the column GROSS_AMOUNT_USD.


You must define the semantics and enable conversion to the fixed currency US
Field Value
Semantic Type: Amount with currency code
Currency Type:Fixed
Assigned currency:USD
Decimal shift: Yes
Conversion: Yes
With rounding: No
Decimal shift back: No
Schema for currency conversion :TCUR
Client for currency conversion :Fixed
Client: 800
Source Currency Type: Column
Assigned column: CURRENCY_CODE
Target Currency Type: Fixed
Assigned currency: USD
Exchange Type EZB
Conversion Date 20121231
Exchange Rate [blank]
Data Type
Note:
While using these option you need to replicate the standard table into sap hana that are
TCURR,TCURC,TCURF,TCURT,TCURV.if these standard tables are not available then you will
not be able to perform currency conversion.
Open hana studio

Right Click on your Package and select New Analytic View. Give the name and Description of
your new analytic view. Your screen will look like similar to below.
Click finish
When you select data category is cube the default node is aggregation
An aggregation node is usually attached to the semantics node by default if you are building a
transaction calculation view (This means that the data category CUBE was selected when
initially creating the view). Additional aggregation nodes can be added if required.
Drag and drop projection in work area
Add objects in the projection and click ok
Select required fields for output by right clicking on field and selecting Add to Output.

Drag and drop one more projection in work area


Add object to the projection

Select required fields for output by right clicking on field and selecting Add to Output.
Drag and drop to union in work area
And join to the projection1 and projection2 to the union

Join union to aggregation


Select all as output
Right click on calculated column<-new calculated column
Calculated column
It is an additional column which can be created by us, the results of which are calculated at
runtime based on the existing column and using functions, input parameters and constants.

Click columns and select netwr*netpr


Click on validate syntax
Click semantics
Select semantic type is amount with currency code
Click currency-WAERK
Click conversion
Fill all the fields
Semantic type –amount with currency code
Currency-USD
Client for currency conversion-MANDT
Source currency-WAERK
Target currency-USD
Exchange type-M
And click ok
Click save activate and validate
Output:
Based on the currency we will get the output
QUESTIONS AND ANSWERS:

You might also like