(DI-1808) Set up oData and Fiori

Prerequisites

  • Central package needs to be installed on the system.
  • Check prerequisites from the previous /wiki/spaces/ITOA/pages/14614191.
  • Check and choose a system architecture, based on it continue with the setup of an OData service.
  • System where OData services are activated has to be open for development.

Fiori can be installed on a central system or on a different SAP system (e.g. in the case that the central system doesn't meet the Fiori prerequisites and the other SAP system does). The Fiori application requires an already installed OData service.
In the case that Fiori is installed on a SAP system other that the central, it must be connected with the central system through a RFC connection defined with the role /dvd/mon_admin. The manual "Setup of OData service", which is bellow, is for both cases (with some small differences for the setup of Fiori on a SAP central system or on a different SAP system).

Setup of the OData service

  1. Activate the SAP NetWeaver Gateway:
    • Run the transaction code /n/IWFND/IWF_ACTIVATE.
    • Click on the Activate button.

  2. Create a system alias:
    • Run the transaction code SM30.
    • Insert /IWFND/V_DFSYAL into the Table/View field.
    • Click on the Maintain button.
    • Click on New Entries and choose a unique alias for your system (if Fiori is installed on a SAP system other than central system, fill in the RFC Destination to connect these two systems. RFC connection must be defined with the role /dvd/mon_admin).  

3. Assign an alias to the OData gateway service with the following steps:

    • Run the transaction code /n/IWFND/MAINT_SERVICE and click on Add service.
    • Enter the previously defined system alias. 
    • Click on Get services.
    • Select services that you want to add and click on Add Selected Services.
    • Always add the following OData services: MON_ODT_DI_SRV, RL_SETT_SRV, MON_SRV, MON_DET_SRV, HS_BODATA_SRV, HS_ODATA_SRV, HS_KPI_SRV
    • You can add other services depending on the add-ons you are planing to use. For more information see the chapter: Set up Add-ons
    • Select prefix "Z" and package assignment "$TMP" for the selected services and confirm. 

4. Activate the OData service

    • Go back.
    • Click on the previously added services and for each of them follow these steps (IMPORTANT: please bear in mind that these services might be already activated. By default they are, this is just a way to doublecheck that everything is activated):
      • On down left side of screen click on ICF Node and chose Configure (SICF).
      • Right click on service and choose Activate Service. (The other option is that you use the transaction SICF, enter into the Service Path /sap/opu/odata/dvd and activate the whole node which includes all the previously added services.) 

  • After a service is activated click on Test Service. A browser window appears with information about the OData service. 

After each service is activated, enter the transaction /n/IWFND/MAINT_SERVICE and click on Load Metadata.

How to setup Fiori application

Prerequisites

  • Insights OData services are up and running (see previous section).
  • Insights Fiori application transport is imported into the system.

Setup steps

  1. Enable ui5 web application:
    • Run the transaction code SICF
    • Enter the service path: /sap/public/bc/ui2. Execute (F8)

    • Right click on the node ui2 and chose Activate Service 

    • Change service path to: /sap/bc/ui2/start_up.
    • Click on Apply.
    • Right click on the node start_up and chose Activate Service
    • Change service path to: /sap/bc/ui5_ui5/dvd/. 
    • Click on Apply.
    • Expand the "dvd" node.
    • Right click on following node (fiori) and choose Activate:
    • Right click on the node "fiori" and click Test Service.

2. The web browser should display an url similar to "http://<host>:<port>/sap/bc/ui5_ui5/dvd/fiori/index.html".