How to setup OData & Fiori
Prerequisites
- Central package needs to be installed on the system.
- Check prerequisites from the previous chapter.
- Check and choose a system architecture, based on it continue with the setup of an OData service.
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
- Activate the SAP NetWeaver Gateway:
- Run the transaction code /n/IWFND/IWF_ACTIVATE.
- Click on the Activate button.
- 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. Do this for the services described in OData services table under General add-on information section.
- You must always add the General and the Basis add-on OData services.
- You can add other services depending on the add-ons you are planing to use.
- 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:
- 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.)
- On down left side of screen click on ICF Node and chose Configure (SICF).
- 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
- 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?sap-client=001". To correctly display the Datavard Insights application this url should be changed by replacing "/sap/bc/ui5_ui5/dvd/fiori.index.html" with "/sap/bc/ui5_ui5/dvd/fiori/dvd_hm_core.html".