Sub topic 8
SAP Fiori as the user interface
This chapter assumes you know SAP GUI and basic ABAP. It also assumes you know the difference between a database and an application layer. It covers what Fiori changes for users and what it changes for the technical landscape.
What Fiori is
SAP Fiori is the user experience (UX) for S/4HANA. Apps run in a web browser and are built with SAPUI5, SAP's JavaScript UI framework. They are role-based: each app covers one task, such as approving a purchase requisition or displaying a journal entry. This differs from SAP GUI, where one transaction code often exposes many functions to every user.
Fiori does not replace SAP GUI everywhere. Many transactions still run in SAP GUI, either in a classic window or embedded in the launchpad. A typical S/4HANA system serves both.
The main building blocks
- Fiori Launchpad is the entry point. It shows tiles, and each tile starts an app.
- Spaces and pages organize tiles by role. Older systems use groups and catalogs for the same purpose.
- OData services carry data between the browser and the backend. They are exposed through SAP Gateway.
- CDS views (Core Data Services) define the data model for many apps. They are read directly on SAP HANA.
Types of Fiori apps
| Type | Purpose | Example |
|---|---|---|
| Transactional | Create or change business documents | Manage purchase orders |
| Analytical | Show KPIs and figures in real time | Cash position overview |
| Fact sheet | Show object details with navigation | Material or supplier overview |
Analytical apps depend on the data model changes covered earlier. Because aggregates are no longer stored, these apps compute results from line items such as ACDOCA on SAP HANA.
Deployment choices
The Fiori front-end server runs the launchpad and the UI code. You can place it in one of two ways.
- Embedded: the front-end components run in the same system as the S/4HANA backend. This is simpler and is the usual choice for S/4HANA.
- Hub: a separate front-end server connects to one or more backends. It suits landscapes with several systems, but it adds a system to maintain.
On the public cloud edition, SAP operates this layer for you.
Finding and enabling apps
Use the SAP Fiori Apps Reference Library to find apps. For each app it lists the required OData services, roles, and release. Enabling an app usually means activating its services and assigning the matching catalogs or spaces to a role. These transactions are common starting points:
/UI2/FLP Open the Fiori Launchpad
/UI2/FLPD_CUST Configure launchpad content in the client
/IWFND/MAINT_SERVICE Activate and test OData servicesCommon errors
- A tile appears but the app fails. The OData service is often not activated, or the user lacks the authorization. Test the service in
/IWFND/MAINT_SERVICE. - A tile is missing. The user's role does not include the catalog or space that contains it.
- Custom transactions have no Fiori equivalent. Wrap them as SAP GUI tiles first, then rebuild the important ones as Fiori apps later.
- Treating Fiori as a pure UI project. Role design, authorizations, and service activation need planning, and they take effort in a conversion.
For the migration decision, remember that Fiori adoption can be phased. You can convert the backend first and move users to Fiori role by role.
Exercise
A user reports that a Fiori tile appears on the launchpad but the app shows an error when opened. Name two likely causes and one transaction you would use to investigate.
Show answer
Likely causes are an OData service that is not activated, or missing authorization for the user. Use /IWFND/MAINT_SERVICE to check that the service is active and to test it.