Sub topic 8
SAP Fiori as the user interface
This chapter assumes you know the basic SAP ERP modules (FI, CO, MM, SD) and what an ABAP backend is. It also assumes you have used SAP GUI transactions in ECC. By the end you should be able to explain what Fiori consists of, how its layers connect to the S/4HANA backend, and what can go wrong when a user opens an app.
What Fiori is
SAP Fiori is SAP's design system and the set of web applications built on it. In ECC, most users work in SAP GUI, a desktop client that renders dynpro screens and is driven by transaction codes. In S/4HANA, SAP's strategic interface is the SAP Fiori launchpad, which runs in a browser on desktop, tablet, or phone.
Fiori is made of these parts:
- SAPUI5. The JavaScript UI framework that renders the apps in the browser.
- SAP Fiori launchpad. The shell that shows tiles, handles navigation and search, and hosts the apps.
- OData services. The HTTP interface the browser uses to read and write business data. S/4HANA includes SAP Gateway functionality in the ABAP stack to expose them.
- CDS views. The ABAP Core Data Services layer that defines the data model on top of HANA tables. Analytical and transactional apps read from these views.
Fiori does not replace the data model changes covered in earlier chapters. It sits on top of them. Many of the newer apps read CDS views over tables such as ACDOCA, which is one reason they perform well on HANA.
Architecture of a Fiori request
When a user clicks a tile, the launchpad resolves the tile's target and loads the SAPUI5 app. The app then calls one or more OData services. The ABAP backend checks authorizations, runs the logic, and reads data through CDS views. Each hop can fail independently, so it helps to know which layer you are debugging.
Types of Fiori apps
| Type | Purpose | Typical data source |
|---|---|---|
| Transactional | Create or change business objects, such as a purchase requisition | OData service backed by business logic |
| Analytical | KPIs and drill-down on live data | CDS views with analytical annotations |
| Fact sheet | Read-only view of one object with links to related objects | Search model plus CDS views |
Not every classic transaction has a Fiori replacement. Transactions without one can still be started from the launchpad. They open inside the browser through SAP GUI for HTML, so users can keep one entry point while the app catalog grows.
Deployment of the front-end server
The Fiori front-end server is the ABAP system that hosts the launchpad and the UI5 apps. You can put it in the S/4HANA system or in a separate system.
| Option | Description | Consequence |
|---|---|---|
| Embedded | Front-end components run in the S/4HANA system | One system to operate. UI upgrades are tied to the S/4HANA release. |
| Hub | A separate front-end server connects to one or more backends | UI can be updated on its own schedule and can serve several backends. It adds a system and a network hop. |
For a new S/4HANA system, the embedded option is generally the simpler default. A hub is worth the cost when you must front several backends with one launchpad or update the UI more often than the backend. Check the current SAP recommendation for your release before you decide.
Roles, catalogs, and what the user sees
Access to a tile is the result of several layers of configuration:
- A technical catalog defines the tiles and target mappings for an app.
- A business catalog groups apps for a business task and links to the technical catalogs.
- A business role assigns business catalogs to users. SAP delivers template roles with names starting
SAP_BR_. You normally copy them into the customer namespace before changing them. - Layout is arranged in groups, or in newer releases in spaces and pages.
Authorization objects still apply. The user needs the launchpad role entries and the authorizations for the underlying OData service and business data. Having the tile is not enough.
Calling the OData service directly
You can test a service without the UI, which is the fastest way to separate a backend problem from a UI problem. SAP delivers released APIs for many objects. The following request reads five business partners from the Business Partner API. It assumes the service is active and your user is authorized.
GET /sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner?$top=5&$select=BusinessPartner,BusinessPartnerFullName&$format=json HTTP/1.1
Host: your-s4-host.example.com:44300
Accept: application/jsonIf this call succeeds and the app still fails, look at the front end: the catalog, the target mapping, or the browser cache. If the call fails, look at the service activation and the authorizations.
Common errors
- The tile is missing. The user's role does not contain the business catalog, or the catalog is not assigned to a group or space. Check the role in PFCG and the launchpad content in the launchpad designer.
- The tile opens and shows "service not found" or a 404 error. The OData service is not activated. Activate it in transaction
/IWFND/MAINT_SERVICE, and confirm the ICF node is active inSICF. - The app shows no data, or gives an authorization error. The user lacks authorization for the service or the data. Check the authorization trace with
ST01orSU53. - Old content appears after a change. Launchpad caches hold old data. Clear them with the report
/UI2/INVALIDATE_GLOBAL_CACHESor the client-cache equivalent, and refresh the browser. - A custom app shows wrong or no data after conversion. Custom code that reads removed tables, such as the old ECC aggregate tables, needs adaptation. That is covered in the custom code chapter.
Impact on the migration
Fiori affects three project areas:
- Scope. List which transactions your users run today, then map each to a Fiori app or to a classic transaction that still runs in the launchpad. SAP publishes the SAP Fiori apps reference library, which lists apps with their required backend components and the OData services they use.
- Roles. Existing PFCG roles must be reworked or replaced so that users see the right tiles. This is often underestimated, because role redesign involves business owners.
- Training and adoption. Search-driven navigation and role-based tiles differ from entering transaction codes. Plan for training. Power users can still start many classic transactions from the launchpad.
Summary
Fiori is a browser-based UI stack: SAPUI5 apps in the launchpad calling OData services that read CDS views over HANA. You deploy it embedded or on a hub, control access through catalogs and roles, and debug it layer by layer, starting with the OData call.
Exercise
A user reports that a Fiori tile shows up, but the app fails with a "service not found" message. Which layer is most likely at fault, and what two things do you check?
Show answer
The OData service layer. Check that the service is activated in /IWFND/MAINT_SERVICE and that the matching ICF node is active in SICF.
Exercise
A user cannot see a tile that their colleague sees. The service is active and works for the colleague. What is the most likely cause, and where do you look?
Show answer
The user's role is missing the business catalog that contains the tile, or the catalog is not assigned to a group or space. Compare the two users' roles in PFCG and check the launchpad content.