Professional Documents
Culture Documents
Currency Conversion in BI 7.0: Applies To
Currency Conversion in BI 7.0: Applies To
Applies to:
SAP Business Intelligence 7.0. For more information, visit the Business Intelligence homepage.
Summary
The objective of this Document is to explain different ways of performing currency translation in BI.
Author:
Ramakrishna Gattikoppula
Author Bio
Ramakrishna Gattikoppula is a Software Engineer at Infosys Technologies Limited. He has
been involved in SAP BW Implementation Projects.
Table of Contents
CURRENCY CONVERSION IN BI 7.0 .......................................................................................................................... 3
1. Currency Translation Type ............................................................................................................................. 4
1.1 Creating Currency Translation Type ......................................................................................................... 4
2. Defining Target Currencies Using InfoObjects ............................................................................................... 9
2.1 Determine Target Currency for currency conversion from InfoObject ...................................................... 9
3. Currency Translation in Business Explorer .................................................................................................. 12
3.1 Currency translation in query definition................................................................................................... 12
3.1.1 Currency translation in query definition (Fixed Target Currency) ...................................................................... 12
3.1.2 Currency translation in query definition (Target Currency determined through selection variable) ................... 13
3.1.2.1 Variable in the currency translation type ........................................................................................................ 13
3.1.2.2 Variable in properties of the keyfigure in BEx ................................................................................................ 15
Currency translation is based on currency translation types. A combination of source and target currency,
exchange rate type, time reference for conversion is used to determine exchange rate which in turn is used
for performing the currency translation.
To define currency translation type you have to define the exchange rate type, currency (Source and Target)
and time reference.
Exchange rate type: Exchange rate type is the key under which you define exchange rates in the system.
Source currency: The currency that you wish to convert into a different one.
Target currency: The currency that is available after currency translation.
Time reference: Time reference for the currency translation can be either fixed or variable.
If the time reference is fixed, the time at which the exchange rate is determined is independent of the date.
If the time reference is variable, the time at which the exchange rate is determined is decided by a time
characteristic value.
1.1 Creating Currency Translation Type
Transaction Code for Creating Currency Translation Type in BI 7.0 is RSCUR.
Enter the Technical name for the translation type and click on the create button
(F5).
Enter the Description for the Currency translation type. Properties, Exchange Rate, Currency and Time
Reference are the tabs that are present in the currency translation type screen.
Following is the step by step procedure to create a currency translation type.
Ex. Rate Type from Var.: This option is used to determine the exchange rate type dynamically at the time of
query execution. In order to enable this option you need to specify the name of a variable built on InfoObject
0RTYPE.
Exchange Rate from InfoObject: Specification of the InfoObject (key figure) that contains the exchange
rate. This setting can be used in the WHM during data loading. The exchange rate is then taken from the
associated key figure and not calculated using the data stored in Customizing at runtime.
Inverse Ex. Rate: In this case, the required translation from one currency to another is performed using the
reverse exchange rate. Translation with the inverse rate is useful, for example, when the values have already
been translated and you want to display the original values.
Step-2: Select Source and Target Currency.
Source Currency:
Determined using the data record: Source currency is determined from the data record of key figure at
runtime of the query.
Fixed Source Currency: Fixed source currency that is to be used for currency translation.
InfoObject for determining the source currency: Specification of an InfoObject (Characteristic) in which a
currency attribute is stored in InfoObject maintenance. At runtime, the associated currency attribute is
determined using the characteristic value and this is interpreted as source currency.
Target Currency:
Target Currency Selection with Translation: This option can be used to determine the target currency
through a selection variable at the time of query execution, in order to use this option a variable should be
defined in the conversion tab of the amount key figure in the query designer. A fixed target currency can also
be specified in the Query Designer (as a property of a key figure of type Amount)
Fixed Target Currency: Source currency is converted into the fixed target currency defined here.
Target Currency from Variable: This option can be used to determine the target currency through a
selection variable at the time of query execution, in order to use this option a variable should be defined in
this field and name of this currency translation type should be used in conversion tab of properties for
amount key figure in the query designer.
InfoObject for determining the target currency: Specification of an InfoObject (Characteristic) in which a
currency attribute is stored in InfoObject maintenance. At runtime, the associated currency attribute is
determined using the characteristic value and this is interpreted as target currency.
If the indicator 'Only Use in Transformation' is set for the InfoObject to Determine the Target Currency,
InfoObjects can also be entered here in which there no currency attribute is defined in the InfoObject
maintenance. The InfoObject that is specified here then has to exist in the data source and must also contain
a currency in the characteristic attribute
For all other entries under Variable Time Reference, the following
InfoObjects may be selected:
An entry in Variable Time Reference Using Infoset is only necessary when the time reference is to
be determined using an InfoObject and this InfoObject occurs multiple times in the Infoset.
Once all exchange rate, currency and time references are selected save currency translation type.
Time Shift: The time shift (regardless of whether it is fixed or variable) always refers to the InfoObject
specified under Variable Time Reference.
For Example, if the variable time reference is 'To the Day', 0CALDAY, and the time shift is -3. Instead of
07.11.2008, 04.11.2008 would be used for the conversion after the shift.
Following are the different ways in which currency conversion can be performed in BI 7.0:
Step-2: In the Business Explorer tab of the InfoObject Maintenance, set the currency attribute
(0CURRENCY) for the InfoObject which is used to determine the Target Currency.
Step-3: Define the Currency Translation type and choose InfoObject for Determining Target Currency
option in the currency tab.
For this go to Transaction Code RSCUR (Currency Translation Type), enter the desired Currency
Translation Type name (YHROBJCUR) and press Create Button.
In Exchange Rate Tab of currency Translation type specify the exchange rate type which you want to use
for Currency Translation (The exchange rate type used here is Standard Translation at average Rate M)).
In Currency Tab Mark the radio button InfoObject for Determining Target Currency, include the name of
InfoObject which you have created and save the Currency Translation Type.
Following are the snapshots of the Master data and data before and after currency conversion.
Master Data YCOUNTRY used to determine the target currency of each country:
From the above two screenshots you can see that the amount in USD is converted into the target currency
depending on the Country.
In this type, the target currency will always be the same. You can use a variable for selecting the target
currency if you want to choose different target currencies every time you execute the query.
Following is the step by step procedure for using a selection variable for target currency.
3.1.2 Currency translation in query definition (Target Currency determined through selection
variable)
We can use a variable for determining the Target currency in two ways.
1. Variable in the currency translation type.
2. Variable in properties of the keyfigure in BEx.
3.1.2.1 Variable in the currency translation type
This option is used to determine the target currency through a selection variable at the time of query
execution, in order to use this option a variable should be defined in this field and name of this currency
translation type should be used in conversion tab of the amount key figure in the query designer.
Step-1: Create a variable for InfoObject 0CURRENCY (Currency Key).
Start the variable wizard in order to create a variable for 0CURRENCY.
Create a Characteristic variable with the specifications as mentioned in the following screenshots.
- Processing By: Manual Input/Default Value.
- Reference Characteristic (0CURRENCY) Currency.
- Variable Represents: Single Value.
- Ready for input: checked
Step-2: Create a currency translation type which uses this variable to determine the Target currency.
Go to Transaction Code RSCUR and create a new currency translation type.
In the Exchange Rate tab select the desired exchange rate type.
Mark the radio button Target Currency from Variable and enter the technical name of the variable
created on 0CURRENCY.
Step-3: Start the Query designer and create a query with the key figure that uses this currency translation
type.
Save and execute the query, you will be asked for a target currency in a selection variable pop-up.
Step-2: Start the query designer and create a query with a key figure that uses the newly created currency
translation type.
Step-3: under the Target Currency field select variable entry screen and create a new variable with
specifications same as in section 3.1.2.1 and save it (You can also use an existing variable).
You will see the newly created variable in the Target currency field.
Execute the query. You will be asked for a target currency in a selection variable pop-up.
On selecting Display Original Currency all the currency conversions will be disabled.
Convert to Currency: Select this option to translate results into a specific currency. In the
dropdown box, select the currency into which the results are to be translated.
Use Currency Translation: after you have selected the target currency for the results, select the
type of translation to be used for the conversion from this dropdown box.
First Apply Currency Translation from Query Definition: select this checkbox to first convert into
the currency defined in the query, and then into the currency as customized in the above settings.
Step 3: In the Currency field select From Conversion and enter the previously defined currency translation
type under conversion type as shown in the following screenshots. Save and activate the transformation.
Step 4: Load data into the InfoCube. The Data present in the cube will have the target currency mention in
the Currency Translation Type.
Following are the snapshots of the data in PSA and in the InfoCube.
Data in PSA:
Related Content
SAP Community Network
SAP Help Portal
How to Use Variable Time References In Currency Conversions
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/287bab90-0201-0010-f48e-cc55b0cd13d0
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417500)ID0697461850DB1173754685485640409
2End?blog=/pub/wlg/6413
For more information, visit the Business Intelligence homepage.