Business Example
When the values include ##, replace the characters with the number that your instructor has assigned to you.
Task 1: Create Attributes
Steps
Create the attributes used for the currency conversion using the Attributes app. Use the values in the following table.
Name | Name | Type | Length |
---|
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 |
Open the SAP Fiori launchpad and proceed to the Model Configuration group.
Choose Attributes tile.
To create the attributes, choose New → New Attribute and fill the fields with the information provided in the table.
To add the attribute, choose Save and New. Repeat for all the attributes.
Choose Save.
In the app Master Data Types, create the simple master data type I##CURRENCY using the following details.
Field | Value |
---|
Name | Currency From |
Description | Currency From |
Master Data Type | Simple |
ATTRIBUTES: | |
I##CURRID | Selected (Key) |
I##CURRDESCR | Selected |
In the Model Configuration group, choose Master Data Types.
Choose New, then Simple.
In the ID field, enter I##CURRENCY.
Enter Currency From as the Name and Description.
Choose Add, select the checkboxes for the attributes I##CURRDESCR and I##CURRID, and select I##CURRID as the key/root.
Choose Save.
Create the reference master data type I##CURRENCYTO using the following data:
Field | Value | Reference Attribute |
---|
Name | Currency To | |
Description | Currency To | |
Master Data Type | Reference | |
Reference Master Data Type | I##CURRENCY | |
ATTRIBUTES: | | |
I##CURRTOID | Key | I##CURRID |
I##CURRTODESCR | | I##CURRDESCR |
In the Model Configuration group, choose Master Data Types.
Choose New, then Reference.
In the ID field, enter I##CURRENCYTO.
Enter Currency To as the Name and Description.
In the Reference Master Data Type field, assign I##CURRENCY.
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.Assign I##CURRID as the reference attribute for I##CURRTOID, and assign I##CURDESCR as the reference attribute for I##CURRTODESCR.
Choose Save.
Create the master data type I##EXCHANGERATE as a compound master data type of I##CURRENCY and I##CURRENCYTO using the following details:
Field | Value | Simple Master Data Types |
---|
Name | Exchange Rate | |
Description | Exchange Rate | |
Master Data Type | Compound | |
Add Simple Master Data Types: | | I##CURRENCY |
I##CURRENCYTO |
ATTRIBUTES: | | |
I##CURRID | Key | |
I##CURRTOID | Key | |
I##EXCHGRATE | | |
In the Model Configuration group, choose Master Data Types.
Choose New, then Compound.
In the ID field, enter I##EXCHANGERATE.
Enter Exchange Rate as the Name and Description.
In the Component Master Data Types, choose Add, and choose I##CURRENCY, and I##CURRENCYTO from the list.
Choose Select.
The root attributes from the simple master data types are automatically added and selected as keys; I##CURRID and I##CURRTOID.
In Assigned Attribute table, choose Add and choose I##EXCHGRATE from the dropdown list. Choose Select.
Choose Save.
Task 2: Assign Currency Attributes to the Planning Area
Steps
Open the T## planning area and assign the simple master data types I##CURRENCY and I##CURRENCYTO to the planning area.
In the Model Configuration group, choose Planning Area Model Configuration tile.
Select your T## Planning area in the left column.
Go to Attributes tab.
Select Add on the toolbar.
Select I##CURRENCY and I##CURRENCYTO from the list to assign them to your planning area.
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
Create the PERCURRCURRTO planning level, which will be the base planning level for the exchange rate. Use the following details:
Field | Value | Root | Conversion Source | Conversion Target |
---|
ID | PERCURRCURRTO | | | |
Description | Period / 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 | √ | | √ |
On the T## screen, choose the Planning Levels tab.
Choose New, select lowest time profile level 1-Monthly and choose OK.
Enter the ID and description.
Select the master data types indicated in the table.
Select the Conversion Source and Conversion Target indicators as in the table.
Choose Save. Remain on that screen.
Create the PERPRODCUSTCURR planning level, which will be the base planning level for the Target Rev key figure. Use the following details.
Field | Value | Root |
---|
ID | PERPRODCUSTCURR | |
Description | Period / 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 | |
On the top left hyperlink to your planning area and from main Planning Levels tab, select New.
Choose New, select lowest time profile level 1-Monthly and choose OK.
Enter the ID and Description, and validate Time Attributes displayed.
Select Add and add Master Data Types shown in the table.
Choose Save. Remain on that screen.
Create the PERPRODCUSTCURRCURRTO planning level, which will be the base planning level for the Target Rev key figure. Use the following details.
Field | Value | Root |
---|
ID | PERPRODCUSTCURRCURRTO | |
Description | Period / 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 | |
On the top left hyperlink to your planning area and from main Planning Levels tab, select New.
Choose New, select lowest time profile level 1-Monthly and choose OK.
Enter the ID and Description, and validate Time Attributes displayed.
Select the Master Data Types as shown in the table.
Choose Save.
Task 4: Assign the EXCHANGERATE Key Figure as an Attribute as Key Figure
Steps
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 |
In the Planning Areas Model Configuration tab select your planning area, T##, in the left column.
Go to Attributes as Key Figure tab and choose New.
Search in the Attributes field and select I##EXCHGRATE.
Assign the PERCURRCURRTO planning level.
Assign the From period and To period as provided in the table.
Choose Save.
Make the following settings for the I##EXCHNGRATE key figure.
Field | Value |
---|
Stored | √ |
Edit Allowed | Editable in the Current or Future |
Aggregation Mode | Avg |
Disaggregation Mode | Copy Value |
Transition to Key Figures tab.
In the left column, select your I##EXCHGRATE key figure.
Choose Edit.
Enter the settings from the table.
Choose Save.
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 Figure | Select as Input | Stored |
---|
I##EXCHGRATE | √ | √ |
Check the request level calculation that was created automatically. It should appear as shown in the step.
Choose Edit to work with that calculation.
Choose Inputs and ensure that I##EXCHGRATE is selected as an input and selected as Stored.
Choose OK.
Choose Validate.
Choose Save.
Create a new key figure called TARGETREVENUE using the following data.
Field | Value |
---|
Key Figure ID | TARGETREVENUE |
Name | Target Revenue |
Base Planning Level | PERPRODCUSTCURR |
Stored | √ |
Edit Allowed | Editable in the Current or Future |
Aggregation Mode | Sum |
Disaggregation Mode | Equal distribution |
Proportionality | Same Key Figure - Stored Values |
Convert Using | I##EXCHGRATE |
Choose the Key Figures tab within your planning area T##.
Choose New.
Enter the Key Figure ID and choose OK.
Enter the remaining data from the table and ensure that the Convert Using value is assigned.
Choose Save. Remain in that screen.
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 Figure | Select as Input | Stored |
---|
I##EXCHGRATE | √ | √ |
TARGETREVENUE | √ | √ |
On the Target Revenue Key Figure screen choose Edit on top right.
Choose Add Calculation Definition.
Enter the calculation shown in the step.
Choose Inputs and ensure that I##EXCHGRATE and TARGETREVENUE are selected as input and selected as Stored.
Choose Validate.
Choose Save.
Change the Request level calculation for TARGETREVENUE so that it is the sum of the PERPRODCUSTCURRCURRTO level.
TARGETREVENUE@REQUEST = SUM("TARGETREVENUE@PERPRODCUSTCURRCURRTO")Key Figure | Select as Input | Stored |
---|
TARGETREVENUE@PERPRODCUSTCURRCURRTO | √ | |
To change the calculation, in the Request level calculation box, choose Edit on the toolbar.
Change the planning level for TARGETREVENUE in the calculation box.
Choose Inputs and ensure that TARGETREVENUE is selected as an input and is presented as Calculated.
Choose Validate.
Choose Save.
Task 5: Activate the Planning Area
Steps
Activate your T## planning area and select the Full Scope with Dependencies.
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.
Refer to the activation logs to ensure that your planning area is activated.
Task 6: Load Data into the New Master Data Types
Steps
Load data into your new I##CURRENCY and the Exchange Rate master data types using the information in the following table:
Field | Value |
---|
Data Type | Master Data |
Data Name | Currency From (I##CURRENCY) |
File Selection | 7_Currency##.csv |
Separator | , |
Operation Type | Insert/Update |
Job Name | I##CURRENCY |
Locate the data files provided by your instructor in My Documents in the WTS.
On the SAP Fiori Homepage of the Web UI, choose the Data Integration Jobs tile.
At the bottom left of the screen, choose + (Add) and enter the data provided in the table.
Choose Save and ensure that the data is successfully loaded.
Repeat the above steps to load data into the Exchange Rate master data type (use file 7_Exchange##.csv).
Load data into your Target Revenue key figure using the information from the following table:
Field | Value |
---|
Data Type | Key Figures |
T## Planning Area | T## |
Version | Baseline () |
File Selection | 7_Target Revenue##.csv |
Separator | , |
Operation Type | Insert/Update |
Job Name | Key Figures |
Locate the data files provided by your instructor in My Documents in the WTS.
On the SAP Fiori home page of the Web UI, choose the Data Integration tile.
At the bottom left bottom of the screen, choose + (Add) and enter the data provided in the table.
Choose Save and ensure that the data is successfully loaded.
Task 7: Test the Solution using Planner Workspace
Steps
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:
Field | Value |
---|
Time Period | Monthly |
From | Current Month |
To | Current Month + 12 |
Rolling | Yes |
Use the following values for Attributes:
Field | Value |
---|
Product ID | Selected |
Customer ID | Selected |
Currency To Description | Selected |
Use the following values for Key Figures:
Field | Value |
---|
Target Revenue, Exchange Rate## | Selected |
I##CURRTOID | USD |
Choose Planner Workspaces app in the General Planner group.
Open the workspace 300_##.
On the top right, choose Workspace → Design.
Choose Settings on the top right of your existing planning view.
Under the More dialog (three dots), choose Manage Workspace Content.
Select your component and choose Copy.
Name your new planning view as Currency Conversion.
Return to the Planner Workspaces app and choose Planning View.
Select the copied content.
Complete the dialog box with the information provided in the table.
To display the planning view, choose Apply.
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.
Edit the workspace to cover the last year plus next year.
Check that the exchange rate is not included beyond the last 6 months.
Select another currency in I##CURRTOID field and observe the effects.
On the top right, choose Workspace → Save.