Sub topic 4
What the launchpad shows: apps, tiles and target mappings
This chapter assumes you know what a business role and a business catalog are at a high level, and that you have opened the SAP Fiori launchpad as an end user. It explains the layer below the tiles: what a tile is, how a click turns into a running app, and why a user can see a tile and still fail to open the app.
The three launchpad objects
The launchpad is a shell that opens apps on demand. Three kinds of content objects control what it shows and what happens on a click.
| Object | What it is | What it answers |
|---|---|---|
| Tile | A visual entry point with a title, an icon and optionally live data | What does the user click? |
| Target mapping | A rule that links an intent to an app | Which app runs for this intent? |
| App | The SAPUI5 application, or a classic transaction or web dynpro, that does the work | What runs after the click? |
A tile does not contain the app. A tile contains a navigation target, which is an intent. The target mapping turns that intent into an app. This indirection lets several tiles open the same app with different parameters, and it lets an app be replaced without changing every tile.
Intents: semantic object, action and parameters
An intent is a navigation request with this form:
#SemanticObject-action?parameter1=value1¶meter2=value2- The semantic object names a business entity, for example
SalesOrderorSupplierInvoice. - The action names what to do with it, for example
display,manageorcreate. - The parameters are optional. They pass context such as a document number.
When you see #SalesOrder-display in the browser address after the launchpad URL, the launchpad is resolving that intent. Apps call each other the same way. An app that wants to show a customer does not link to a URL. It asks the shell to navigate to #Customer-display?CustomerID=1000, and the shell finds whatever app is mapped to that intent for this user.
The pair SemanticObject-action is the key. If two target mappings in the user's catalogs have the same key, the launchpad has to choose between them, and the result can look random. The device type and the parameters narrow the choice.
Target mappings in detail
A target mapping is stored in a catalog. The main fields are:
- Semantic object and action, the intent key it answers to.
- Application type, such as SAPUI5 Fiori app, transaction (SAP GUI), or web dynpro.
- Title, shown in the launched app and in some navigation lists.
- URL or SAPUI5 component, which tells the shell what to load. For a SAPUI5 app this is usually the component ID and the path of the app on the front-end server.
- Device types, which control whether the mapping applies on desktop, tablet or phone.
- Parameters, fixed or default values, and the setting that allows or forbids extra parameters.
Most SAP-delivered apps do not need hand-written target mappings. The app's descriptor, a file named manifest.json, declares the inbound navigation, and the catalog content is generated from it. A minimal inbound definition looks like this:
{
"sap.app": {
"id": "zsales.report",
"type": "application",
"crossNavigation": {
"inbounds": {
"displaySalesReport": {
"semanticObject": "ZSalesReport",
"action": "display",
"signature": {
"parameters": {
"SalesOrg": { "required": false }
},
"additionalParameters": "allowed"
}
}
}
}
}
}Read it from the shell's point of view. The app zsales.report answers the intent #ZSalesReport-display. It accepts an optional SalesOrg parameter and tolerates others.
How a click becomes a running app
The launchpad does the following every time a user opens a tile, follows a link or uses a deep link.
Two separate decisions happen here, and they are easy to confuse.
- Content resolution decides whether the shell can find a target mapping. It depends only on which catalogs reach the user through roles. No authorization object is checked against the data at this step.
- Authorization checks run later, inside the app's back end, when it reads or changes data. These are the checks covered in the chapters on authorization objects and app authorizations.
A tile that is visible but fails with "Navigation target could not be resolved" is a content problem. An app that opens and then shows no data, or fails on save, is an authorization problem. Knowing which side you are on halves the search.
Tiles: static, dynamic and others
Tile behaviour is part of the tile configuration, not of the app.
| Tile type | Behaviour |
|---|---|
| Static | Shows a fixed title, subtitle and icon. |
| Dynamic | Calls a service URL at an interval and shows a number, such as open items. |
| Link | Appears as a text link, usually in a link list on a page. |
| News and KPI | Show a feed or an analytical value. |
A dynamic tile makes its own service call, with the user's identity, as soon as the launchpad loads. That call needs its own service authorization, separate from the app's. If the user has the catalog but lacks access to the tile's service, the tile can show an error or no number while the app itself works. This is a common support ticket.
Technical catalogs and business catalogs
SAP separates two kinds of catalogs, and this separation is how content gets to users.
- A technical catalog holds the full definition of tiles and target mappings. It is the source of the content and is not normally assigned to users directly.
- A business catalog groups references to those tiles and target mappings for a job function. A business role then points to business catalogs.
Because business catalogs hold references, a tile or target mapping can sit in many business catalogs without being copied. If you change the definition in the technical catalog, all referencing business catalogs show the change. If you delete the source, the references break and the tile disappears or fails to resolve.
The next chapter covers how to build and read business catalogs. Here, keep one rule: a user needs a business catalog in a role that contains both the tile and the matching target mapping, directly or through reference.
Where to inspect and change content
You work with launchpad content in several places, depending on the release and the scope.
- The launchpad app manager and launchpad content manager apps show catalogs, tiles and target mappings, and let you create and extend them in the front-end system.
- The classic launchpad designer (transaction
/UI2/FLPD_CUSTfor customizing and/UI2/FLPD_CONFfor configuration) edits the same content. Use it in a client where customizing changes are allowed. - The Fiori apps reference library shows, for each SAP app, its catalog, its semantic object and action, and its required back-end components. Start there when you need to know what an app depends on.
Changes to launchpad content are cached. If an edit does not show up, the cache is the usual cause. Reports such as /UI2/INVALIDATE_CLIENT_CACHES and /UI2/INVALIDATE_GLOBAL_CACHES clear them. The user's browser cache can also hold old content, so test in a fresh browser session first.
Diagnosing common symptoms
| Symptom | Likely cause | First check |
|---|---|---|
| Tile is missing | The business catalog is not in any role assigned to the user. | The user's roles and the catalogs in them. |
| Tile shows, click gives "could not be resolved" | The tile's intent has no matching target mapping in the user's catalogs, or the device type does not match. | The target mapping's semantic object, action and device types. |
| Wrong app opens | Two target mappings share the same intent key. | Duplicate semantic object and action pairs across the user's catalogs. |
| Tile number is empty or shows an error | The user lacks access to the dynamic tile's service. | The service the tile calls. |
| App opens but shows no data | Back-end authorization check failed. | `SU53` right after the failure. |
| Change made but not visible | Launchpad cache. | Cache invalidation reports, then a fresh browser session. |
Exercise
A user sees the tile "Display Supplier Invoice" in the launchpad. Clicking it shows "Navigation target could not be resolved". Another user in the same business role opens the app without trouble. Name the layer where you look first, and one thing you compare between the two users.
Show answer
Look at content resolution, not at authorization objects. Compare the catalogs and roles that reach each user, and check that the target mapping for the tile's intent (semantic object and action) exists in a catalog of the failing user and matches the user's device type. Also check for a duplicate intent that resolves differently. Authorization checks in the back end would only matter after the app has loaded.
Exercise
An app's manifest declares an inbound with semantic object ZSalesReport and action display. What intent do you enter in a tile's navigation target so the tile opens this app, and why can one app serve many tiles?
Show answer
The intent is #ZSalesReport-display. A tile stores only an intent, and the target mapping resolves it to the app. Several tiles can use the same semantic object and action, or add different parameters such as ?SalesOrg=1010, and all of them reach the same app.