Converting Currency

Objective

After completing this lesson, you will be able to convert currency

Currency Conversion

SAP Integrated Business Planning for Supply Chain can convert currency on the fly, for example, when a user of the SAP Integrated Business Planning, add-in for Microsoft Excel or Analytics selects Target Currency at runtime for a key figure, such as Sales Forecast Revenue. The prerequisites for currency conversion are that exchange rates exist in the system and that a currency conversion calculation has been defined for the key figure involved.

How Currency Conversion Works in the System

Currency conversion is configured in the system by adding currency and exchange rate attributes. The idea is to create a reference table containing the original currency (Currency ID) and the converted currency (Currency To ID), with the corresponding exchange rates included.

Currency Conversion

Currency ID

Currency To ID

Exchange Rate

USD

EUR

0.9460

USD

JPY

113.1440

USD

AUD

1.3498

EUR

USD

1.0569

EUR

JPY

119.5890

When the currency attributes are added to the Planning Levels, and the Conversion Source and Conversion Target is configured, SAP IBP is using the following calculation "behind the scenes".

Behind the Scenes Calculations

 

January

February

March

- Behind the scenes -

Input key figure

100

120

135

Currency ID

USD

USD

USD

Currency To ID

AUD

AUD

AUD

Exchange Rate

1.3498

1.3498

1.3498

Output key figure134.98161.98182.22

Demonstration: How to Configure Currency Conversion

Configure Currency Conversion

Business Example

In your role as a project manager, you configure currency conversion in SAP Integrated Business Planning for Supply Chain to provide team members that are collaborating on your project with an accurate view of key figure values.

When the values include ##, replace the characters with the number that your instructor has assigned to you.

Task 1: Create Attributes

Steps

  1. Create the attributes used for the currency conversion using the Attributes app. Use the values in the following table.

    NameNameTypeLength

    I##CURRID

    Currency From##

    NVARCHAR

    20

    I##CURRDESCR

    Currency Description##

    NVARCHAR

    40

    I##CURRTOID

    Currency To##

    NVARCHAR

    20

    I##CURRTODESCR

    Currency To Description##

    NVARCHAR

    40

    I##EXCHGRATE

    Exchange Rate##

    DECIMAL

    18, 6

    1. Open the SAP Fiori launchpad and proceed to the Model Configuration group.

    2. Choose Attributes tile.

    3. To create the attributes, choose New → New Attribute and fill the fields with the information provided in the table.

    4. To add the attribute, choose Save and New. Repeat for all the attributes.

    5. Choose Save.

  2. In the app Master Data Types, create the simple master data type I##CURRENCY using the following details.

    FieldValue
    NameCurrency From
    DescriptionCurrency From
    Master Data TypeSimple

    ATTRIBUTES:

     
    I##CURRIDSelected (Key)
    I##CURRDESCRSelected
    1. In the Model Configuration group, choose Master Data Types.

    2. Choose New, then Simple.

    3. In the ID field, enter I##CURRENCY.

    4. Enter Currency From as the Name and Description.

    5. Choose Add, select the checkboxes for the attributes I##CURRDESCR and I##CURRID, and select I##CURRID as the key/root.

    6. Choose Save.

  3. Create the reference master data type I##CURRENCYTO using the following data:

    FieldValueReference Attribute
    NameCurrency To 
    DescriptionCurrency To 
    Master Data TypeReference 
    Reference Master Data TypeI##CURRENCY 

    ATTRIBUTES:

      
    I##CURRTOIDKeyI##CURRID
    I##CURRTODESCR I##CURRDESCR
    1. In the Model Configuration group, choose Master Data Types.

    2. Choose New, then Reference.

    3. In the ID field, enter I##CURRENCYTO.

    4. Enter Currency To as the Name and Description.

    5. In the Reference Master Data Type field, assign I##CURRENCY.

    6. Choose Add, select the checkboxes for the attributes I##CURRTODESCR and I##CURRTOID.

      Note

      When I##CURRID is assigned as a reference of I##CURRTOID, the KEY (root) is automatically checked.
    7. Assign I##CURRID as the reference attribute for I##CURRTOID, and assign I##CURDESCR as the reference attribute for I##CURRTODESCR.

    8. Choose Save.

  4. Create the master data type I##EXCHANGERATE as a compound master data type of I##CURRENCY and I##CURRENCYTO using the following details:

    FieldValueSimple Master Data Types
    NameExchange Rate 
    DescriptionExchange Rate 
    Master Data TypeCompound 
    Add Simple Master Data Types: I##CURRENCY
    I##CURRENCYTO

    ATTRIBUTES:

      
    I##CURRIDKey 
    I##CURRTOIDKey 
    I##EXCHGRATE  
    1. In the Model Configuration group, choose Master Data Types.

    2. Choose New, then Compound.

    3. In the ID field, enter I##EXCHANGERATE.

    4. Enter Exchange Rate as the Name and Description.

    5. In the Component Master Data Types, choose Add, and choose I##CURRENCY, and I##CURRENCYTO from the list.

    6. Choose Select.

      The root attributes from the simple master data types are automatically added and selected as keys; I##CURRID and I##CURRTOID.

    7. In Assigned Attribute table, choose Add and choose I##EXCHGRATE from the dropdown list. Choose Select.

    8. Choose Save.

Task 2: Assign Currency Attributes to the Planning Area

Steps

  1. Open the T## planning area and assign the simple master data types I##CURRENCY and I##CURRENCYTO to the planning area.

    1. In the Model Configuration group, choose Planning Area Model Configuration tile.

    2. Select your T## Planning area in the left column.

    3. Go to Attributes tab.

    4. Select Add on the toolbar.

    5. Select I##CURRENCY and I##CURRENCYTO from the list to assign them to your planning area.

    6. Choose Add. Stay in your T## Planning Area configuration screen.

Task 3: Create Planning Levels

In this course, instructions mostly call for creating planning levels from scratch (we also have a very small model, so there aren’t many planning levels). On real engagements, most planning levels are created from other planning levels by copy, which is more time efficient.

Steps

  1. Create the PERCURRCURRTO planning level, which will be the base planning level for the exchange rate. Use the following details:

    FieldValueRootConversion SourceConversion Target
    IDPERCURRCURRTO   
    DescriptionPeriod / Currency / Currency To   
    Time Attributes    
    PERIODID (add via Change Assignment)   
    Monthly  
    Quarterly   
    Year   
    Attributes    
    I##CURRENCY    
    I##CURRDESCR   
    I##CURRID 
    I##CURRENCYTO    
    I##CURRTODESCR   
    I##CURRTOID 
    1. On the T## screen, choose the Planning Levels tab.

    2. Choose New, select lowest time profile level 1-Monthly and choose OK.

    3. Enter the ID and description.

    4. Select the master data types indicated in the table.

    5. Select the Conversion Source and Conversion Target indicators as in the table.

    6. Choose Save. Remain on that screen.

  2. Create the PERPRODCUSTCURR planning level, which will be the base planning level for the Target Rev key figure. Use the following details.

    FieldValueRoot
    ID

    PERPRODCUSTCURR

     
    DescriptionPeriod / Product / Customer / Currency 
    Time Attributes  
    PERIODID (add via Change Assignment) 
    Monthly
    Quarterly 
    Year 
    Attributes  
    I##CURRENCY  
    I##CURRDESCR 
    I##CURRID
    I##CUSTOMER  
    CUSTDESCR 
    CUSTID
    CUSTREGION 
    I##PRODUCT  
    PRDID
    PRDFAMILY 
    PRDDESCR 
    ABCCODE 
    1. On the top left hyperlink to your planning area and from main Planning Levels tab, select New.

    2. Choose New, select lowest time profile level 1-Monthly and choose OK.

    3. Enter the ID and Description, and validate Time Attributes displayed.

    4. Select Add and add Master Data Types shown in the table.

    5. Choose Save. Remain on that screen.

  3. Create the PERPRODCUSTCURRCURRTO planning level, which will be the base planning level for the Target Rev key figure. Use the following details.

    FieldValueRoot
    IDPERPRODCUSTCURRCURRTO 
    DescriptionPeriod / Product / Customer / Currency / Currency To 
    Time Attributes  
    PERIODID (add via Change Assignment) 
    Monthly
    Quarterly 
    Year 
    Attributes  
    I##CURRENCY  
    I##CURRDESCR 
    I##CURRID
    I##CURRENCYTO  
    I##CURRTOID
    I##CURRTODESCR 
    I##CUSTOMER  
    CUSTDESCR 
    CUSTID
    CUSTREGION 
    I##PRODUCT  
    PRDID
    PRDFAMILY 
    PRDDESCR 
    ABCCODE 
    1. On the top left hyperlink to your planning area and from main Planning Levels tab, select New.

    2. Choose New, select lowest time profile level 1-Monthly and choose OK.

    3. Enter the ID and Description, and validate Time Attributes displayed.

    4. Select the Master Data Types as shown in the table.

    5. Choose Save.

Task 4: Assign the EXCHANGERATE Key Figure as an Attribute as Key Figure

Steps

  1. Set I##EXCHGRATE as Attribute as key Figure and assign the PERCURRCURRTO planning level. Use the following details.

    Master Data Type

    Attribute

    Key Figure/Period

    From/To Period

    I##EXCHANGERATE

       
     

    I##EXCHGRATE

     
      

    From

    -6

      

    To

    12

    1. In the Planning Areas Model Configuration tab select your planning area, T##, in the left column.

    2. Go to Attributes as Key Figure tab and choose New.

    3. Search in the Attributes field and select I##EXCHGRATE.

    4. Assign the PERCURRCURRTO planning level.

    5. Assign the From period and To period as provided in the table.

    6. Choose Save.

  2. Make the following settings for the I##EXCHNGRATE key figure.

    FieldValue
    Stored
    Edit AllowedEditable in the Current or Future
    Aggregation ModeAvg
    Disaggregation ModeCopy Value
    1. Transition to Key Figures tab.

    2. In the left column, select your I##EXCHGRATE key figure.

    3. Choose Edit.

    4. Enter the settings from the table.

    5. Choose Save.

  3. Check that the calculation of the Request level is the Avg of the PERCURRCURRTO level and the input is stored.

    I##EXCHGRATE@REQUEST = AVG("I##EXCHGRATE@PERCURRCURRTO")
    Key FigureSelect as InputStored
    I##EXCHGRATE
    1. Check the request level calculation that was created automatically. It should appear as shown in the step.

    2. Choose Edit to work with that calculation.

    3. Choose Inputs and ensure that I##EXCHGRATE is selected as an input and selected as Stored.

    4. Choose OK.

    5. Choose Validate.

    6. Choose Save.

  4. Create a new key figure called TARGETREVENUE using the following data.

    FieldValue
    Key Figure IDTARGETREVENUE
    NameTarget Revenue
    Base Planning LevelPERPRODCUSTCURR
    Stored
    Edit AllowedEditable in the Current or Future
    Aggregation ModeSum
    Disaggregation ModeEqual distribution
    ProportionalitySame Key Figure - Stored Values
    Convert UsingI##EXCHGRATE
    1. Choose the Key Figures tab within your planning area T##.

    2. Choose New.

    3. Enter the Key Figure ID and choose OK.

    4. Enter the remaining data from the table and ensure that the Convert Using value is assigned.

    5. Choose Save. Remain in that screen.

  5. Add the calculation so the Target Revenue is calculated by the stored value times the exchange rate.

    TARGETREVENUE@PERPRODCUSTCURRCURRTO =

    "TARGETREVENUE@PERPRODCUSTCURR" * "I##EXCHGRATE@PERCURRCURRTO"

    Key FigureSelect as InputStored
    I##EXCHGRATE
    TARGETREVENUE
    1. On the Target Revenue Key Figure screen choose Edit on top right.

    2. Choose Add Calculation Definition.

    3. Enter the calculation shown in the step.

    4. Choose Inputs and ensure that I##EXCHGRATE and TARGETREVENUE are selected as input and selected as Stored.

    5. Choose Validate.

    6. Choose Save.

  6. Change the Request level calculation for TARGETREVENUE so that it is the sum of the PERPRODCUSTCURRCURRTO level.

    TARGETREVENUE@REQUEST = SUM("TARGETREVENUE@PERPRODCUSTCURRCURRTO")
    Key FigureSelect as InputStored
    TARGETREVENUE@PERPRODCUSTCURRCURRTO 
    1. To change the calculation, in the Request level calculation box, choose Edit on the toolbar.

    2. Change the planning level for TARGETREVENUE in the calculation box.

    3. Choose Inputs and ensure that TARGETREVENUE is selected as an input and is presented as Calculated.

    4. Choose Validate.

    5. Choose Save.

Task 5: Activate the Planning Area

Steps

  1. Activate your T## planning area and select the Full Scope with Dependencies.

    1. If you have the key figure screen open, transition to the main menu of the planning area, by choosing the hyperlink at the top left and then Choose Activate → Full Scope with Dependencies.

    2. Refer to the activation logs to ensure that your planning area is activated.

Task 6: Load Data into the New Master Data Types

Steps

  1. Load data into your new I##CURRENCY and the Exchange Rate master data types using the information in the following table:

    FieldValue
    Data TypeMaster Data
    Data NameCurrency From (I##CURRENCY)
    File Selection7_Currency##.csv
    Separator,
    Operation TypeInsert/Update
    Job NameI##CURRENCY
    1. Locate the data files provided by your instructor in My Documents in the WTS.

    2. On the SAP Fiori Homepage of the Web UI, choose the Data Integration Jobs tile.

    3. At the bottom left of the screen, choose + (Add) and enter the data provided in the table.

    4. Choose Save and ensure that the data is successfully loaded.

    5. Repeat the above steps to load data into the Exchange Rate master data type (use file 7_Exchange##.csv).

  2. Load data into your Target Revenue key figure using the information from the following table:

    FieldValue
    Data TypeKey Figures
    T## Planning AreaT##
    VersionBaseline ()
    File Selection7_Target Revenue##.csv
    Separator,
    Operation TypeInsert/Update
    Job NameKey Figures
    1. Locate the data files provided by your instructor in My Documents in the WTS.

    2. On the SAP Fiori home page of the Web UI, choose the Data Integration tile.

    3. At the bottom left bottom of the screen, choose + (Add) and enter the data provided in the table.

    4. Choose Save and ensure that the data is successfully loaded.

Task 7: Test the Solution using Planner Workspace

Steps

  1. Test your solution by creating a Workspace using the information from the table. After you view the data, choose Settings and change the currency to view the data in another currency.

    Use the following values for Time:

    FieldValue
    Time PeriodMonthly
    FromCurrent Month
    ToCurrent Month + 12
    RollingYes

    Use the following values for Attributes:

    FieldValue
    Product IDSelected
    Customer IDSelected
    Currency To DescriptionSelected

    Use the following values for Key Figures:

    FieldValue
    Target Revenue, Exchange Rate##Selected
    I##CURRTOIDUSD
    1. Choose Planner Workspaces app in the General Planner group.

    2. Open the workspace 300_##.

    3. On the top right, choose Workspace → Design.

    4. Choose Settings on the top right of your existing planning view.

    5. Under the More dialog (three dots), choose Manage Workspace Content.

    6. Select your component and choose Copy.

    7. Name your new planning view as Currency Conversion.

    8. Return to the Planner Workspaces app and choose Planning View.

    9. Select the copied content.

    10. Complete the dialog box with the information provided in the table.

    11. To display the planning view, choose Apply.

  2. Test the from/to period setting for the exchange rate attribute as a key figure. Expand the workspace to include the last year, and check that the exchange rate is not included past the setting.

    1. Edit the workspace to cover the last year plus next year.

    2. Check that the exchange rate is not included beyond the last 6 months.

    3. Select another currency in I##CURRTOID field and observe the effects.

    4. On the top right, choose Workspace → Save.

Log in to track your progress & complete quizzes