28.01.2013 Views

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Note: The hierarchies belonging to an attribute view are available in an analytic view that reuses the<br />

attribute view, in read-only mode. However, the hierarchies belonging to an attribute view are not available<br />

in a calculation view that reuses the attribute view.<br />

6.2.11 Using Currency and Unit of Measure<br />

Use this procedure to define a measure as an amount or weight in the analytical space and to perform currency<br />

conversion.<br />

To simplify the process of currency conversion, the system provides a list of currencies, and exchange rates<br />

based on the tables imported for currency. Currency conversion is performed based on source currency, target<br />

currency, exchange rate, and date of conversion. You can also select currency from the attribute data used in the<br />

view.<br />

For example, you need to generate a sales report for a region in a particular currency, and you have sales data in<br />

database tables in a different currency. You can create an analytic view by selecting the table column containing<br />

the sales data in this other currency as a measure, and perform currency conversion. Once you activate the view,<br />

you can use it to generate reports.<br />

Note: Currency conversion is enabled for analytic views and base measures of calculation views.<br />

Prerequisites<br />

● You have imported tables T006 and T006A for Unit of Measure.<br />

● You have imported TCURC, TCURF, TCURN, TCURR, TCURT, TCURV, TCURW, and TCURX for currency.<br />

Procedure<br />

1. Select a measure.<br />

2. In the Properties pane, select Measure Type.<br />

3. If you want to associate the measure with a currency, do the following:<br />

130<br />

a. In the Measure Type dropdown list, select the value Amount with Currency.<br />

b. In the Currency Dialog, select the required Type as follows:<br />

Type Purpose<br />

Fixed To select currency from the currency table TCURC.<br />

Attribute To select currency from one of the attributes used in the<br />

view.<br />

c. Select the required value, and choose OK.<br />

d. If you want to convert the value to another currency, choose Enable for Conversion.<br />

a. To select the source currency, choose Currency.<br />

b. Select the target currency.<br />

Note: For currency conversion, in addition to the types Fixed and Attribute, you can select an<br />

Input Parameter to provide target currency at runtime. If you select an input parameter for<br />

P U B L I C<br />

© 2012 <strong>SAP</strong> AG. All rights reserved.<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Developer</strong> <strong>Guide</strong><br />

Setting Up the Analytic Model

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!