In this CAR Tip in a Minute, I will explain how to create a SAP Smart Business KPI tile in the SAP Fiori Launchpad.
The SAP Fiori analytical applications delivered with SAP Customer Activity Repository use SAP Smart Business tiles as opposed to static SAP Fiori tiles for three main reasons:
- SAP Smart Business tiles allow for dynamic data to be displayed. This is in contrast to a static SAP Fiori tile which can only display static data. The SAP Smart Business tile also allows the user to navigate to the application with object/action semantic options.
- SAP Smart Business tiles allow for high flexibility and customization via the configurable input parameters consumed by the application’s SAP HANA views.
- Multiple SAP Smart Business tiles can be created with the same evaluation.
Prerequisite
The front-end user must have been granted the necessary roles. For more information on the authorization roles required, see http://help.sap.com/car-> SAP Customer Activity Repository 2.0 FP1 -> Application Help -> Additional Content -> SAP Smart Business for SAP Customer Activity Repository.
Procedure
- Select the “Create KPI” tile in the SAP Fiori Launchpad.
- Enter the data for the Parameters section as follows:
- The ID will be the one that is given to the tile you are creating. This cannot be changed after this screen is confirmed. The default can be kept or you can select another ID.
- The Title will be the name and label of this KPI.
- Choose Additional Languagesto provide translations for the title
- The other attributes in the Parameters section are optional.
- Data Source section of this page provides the necessary information for the data source for the data presented in the tile.
- The SAP HANA view that you provide is consumed by the tile content. The views should be entered in the SAP HANA View field, based on which application this tile is being created for. For example if you are creating the KPI for Net Sales, you will enter the view NetSalesCurPerdQuery.
Application | SAP HANA View |
Net Sales | NetSalesCurPerdQuery |
Gross Margin | GrossMarginCurPerdQuery |
Number of Transactions | NumberOfTransactionsCurPerdQuery |
Items per Transaction | NumberOfSlsItemsPerTransCurPerdQuery |
Average transaction value | AverageTransactionValueCurPerdQuery |
- Once you have entered the SAP HANA View, when you click on the other input boxes, the correct value will be loaded automatically except for the entity set
- The OData Service you specify is the HANA XS OData service used to retrieve the data.
- The Entity set provides the data structure for the OData service. You will have to enter the correct value here as it is not loaded automatically based on the following table:
Application | Entity Set |
Net Sales | NetSalesCurPerdQueryResults |
Gross Margin | GrossMarginCurPerdQueryResults |
Number of Transactions | NumberOfTransactionsCurPerdQueryResults |
Items per Transaction | NumberOfSalesItemsPerTransCurPerdQueryResults |
Average transaction value | AverageTransactionValueCurPerdQueryResults |
- The Value Measure specifies the data source for the number that will be displayed on the tile.
- The Semantic Object/Action must be provided to determine what happens when a user clicks on the tile. The object is specified first and the action is specified in the second box. These fields specify the navigation target. The following data should be entered based on the application for which tile is being created.
Application | Semantic Object | Semantic Action |
Net Sales | NetSales | displayMCSANetSales |
Gross Margin | GrossMargin | displayMCSAGrossMargin |
Number of Transactions | NumberOfTransactions | displayMCSANumberOfTxn |
Items per Transaction | ItemsPerTransaction | displayMCSAItemsPerTransaction |
Average transaction value | AverageTransactionValueCurPerdQuery | displayMCSAAverageTransactionValue |
- Choose Activate and Add Evaluation.
- For more information on SAP Smart Business KPIs, see the SAP Help Portal
You will now enter the information required for creating the evaluation.
- Enter the Descriptive parameters. Only the Evaluation ID and title is mandatory.
- Enter the information in the Data source section. Again the SAP HANA view entered should be the same as when the tile KPI was created. The value for the other fields (OData Service, Entity Set, Value Measure, Semantic Object and Action) will be displayed automatically taken from the KPI data entered earlier.
- The Scaling Factor and Decimal Precision fields can both be set to “auto”. The scaling factor specifies how the KPI value is displayed (for example, whether the value is expressed as thousands, millions, and so on). The decimal precision specifies the number of decimal places to show in the results.
- Enter the input parameters and filters:
- De-select the P_SAPClient checkbox for Session Client and enter the Session Client value required. Note that it is necessary to provide the correct SAP Client (SAP MANDT), otherwise the results displayed may be incorrect.
- You will now fill out the Target, Threshold and Trend section:
- Change Value type to “Measure” to then enter the field names
- Enter the information in the Target, Warning, Thresholds, reference value and trend sections based on this table. This allows for the color coding that appears in the tile
Red: value < critical
Green: value > target
Orange: critical < value < target
e. The Trend is used to determine if the trend is going up or down based on the reference value, two parameters that you must enter.
Application | Target | Warning | Critical | Reference Value | Trend |
Net Sales | PreviousPeriodNetSales | PreviousPeriodPartialNetSales | PreviousPeriodPartialCriticalNetSales | PreviousPeriodPartialCriticalNetSales | CurrentPeriodNetSales |
Gross Margin | PreviousPeriodGrossMargin | PreviousPeriodPartialGrossMargin | PreviousPeriodPartialCriticalGrossMargin | PreviousPeriodPartialCriticalGrossMargin | CurrentPeriodGrossMargin |
Number of Transactions | PreviousPeriodNumberOfTransactions | PreviousPeriodPartialNumberOfTransactions | PreviousPeriodPartialCriticalNumberOfTransaction | PreviousPeriodPartialCriticalNumberOfTransaction | CurrentPeriodNumberOfTransactions |
Items per Transaction | PreviousPeriodNumberOfSlsItemsPerTransaction | PreviousPeriodPartialNumberOfSlsItemsPerTransaction | PreviousPeriodPartialCriticalNumberOfSlsItemsPerTransaction | PreviousPeriodPartialCriticalNumberOfSlsItemsPerTransaction | CurrentPeriodNumberOfSlsItemsPerTransaction |
Average Transaction value | PreviousPeriodAverageTransactionValueInDisplayCrcy | PreviousPeriodPartialAverageTransactionValueInDisplayCrcy | PreviousPeriodPartialCriticalAverageTransactionValueInDisplayCrcy | PreviousPeriodPartialCriticalAverageTransactionValueInDisplayCrcy | CurrentPeriodAverageTransactionValueInDisplayCrcy |
Next we will need to configure the tile that will appear in the SAP Fiori Launchpad for this application.
- Choose Activate and Configure Tile.
- For more information on adding evaluations to a KPI, see the SAP Help Portal.
- Fill the “Add Tile” configuration screen:
- The Tile Configuration should be filled out as follows:
- Tile Format: Numeric Tile
- Title (KPI): This will be the title of tile, as displayed in the Fiori Launchpad (blue label in tile displayed below)
- Subtitle (Evaluation): The subtitle for tile that will appear in the Fiori Launchpad (green label in tile displayed below)
- Finally, the Drill-Down selected should be “Other Drill-Down”, and make sure to select “others” under the Select Drill-Down field.
- The action and Semantic Object will be the same as when the KPI was created.
- Choose Save and Activate.
- We now need to add the authorizations to the users which are to have access to the tiles.
- Click the pencil icon in the SAP Launchpad:
- Press the + button to add the Tile
- The tiles for which you have authorizations for will appear and you can add them by pressing the + sign below the tile:
You should now see the tile in your SAP Fiori Launchpad.
You can repeat the steps outlined 4 additional times, one time for each application, each time entering the data corresponding to that application. After completing this you will find the 5 applications in the SAP Fiori Lauchpad as follows: