Sub topic 8
Spaces and pages: arranging apps for users
This chapter assumes you know what a business role, a business catalog and an authorization object are, and that you have seen the SAP Fiori launchpad as an end user. It covers how spaces and pages decide where apps appear on the launchpad, and why they do not decide whether a user may run an app.
Where spaces and pages fit
A business catalog answers the question "which apps can this role open?" It does not say where those apps appear on the launchpad. Spaces and pages answer that second question.
- A space is a top-level entry in the launchpad navigation. A user sees spaces as menu entries, for example "Procurement" or "Accounts Payable".
- A page is the content of a space. A page holds sections, and each section holds apps shown as tiles or links.
- A section is a titled group of apps on a page.
A business role is assigned one or more spaces. Each space points to one or more pages. In the layout model, the user's launchpad is built from the spaces of all assigned roles.
The dotted line is the important one. A section can only show an app that the same role makes available through a catalog. The page is the arrangement, and the catalog is the supply.
Visibility is not authorization
Spaces and pages control visibility. They do not grant authorization. Keep these two ideas separate:
| Question | Answered by | Effect if missing |
|---|---|---|
| Is the app on the user's launchpad? | Space, page, section, and the catalog behind it | The user cannot find the app in the navigation |
| May the user start the app and see the data? | Authorization objects and values in the role | The app opens but fails, or shows no data |
Removing an app from a page does not take away any authorization. A user who knows the app's direct URL, or who can find it in the app finder, may still open it if the role contains the catalog and the authorization values. Equally, an app placed on a page without a matching catalog in the role does not appear, and a user cannot run it.
Spaces, pages and the role
When you maintain a business role in the Maintain Business Roles app, you work on these tabs in this order:
- General information: the role ID and description.
- Assigned Business Catalogs: the catalogs that supply apps and, through them, the authorizations.
- Assigned Business Users: which users receive the role.
- Menu: the spaces assigned to the role and their order in the navigation.
The Menu tab is where the spaces are assigned. If a role has no space, its apps can still be opened through the app finder or a search, but they have no home position in the navigation.
A single page can be used by several spaces, and a single space can be used by several roles. This reuse is the main reason to design them separately from roles. One page for "Accounts Payable Overview" can serve an accountant role and a manager role, while each role keeps its own catalogs and its own authorization values.
Pages in detail
A page has a layout and a content set. When you edit a page, you can:
- Add a section and give it a title.
- Add apps to a section from the catalogs that are available to you. The app list is built from the catalogs you choose to draw from.
- Choose how an app is shown. A tile shows a title, optional subtitle and often a live number from a data source. A link is a plain text entry that saves space.
- Reorder sections and apps by dragging.
- Set which sections are visible by default and whether users can collapse them.
Each app entry on a page refers to a launchpad catalog entry, so it carries its target mapping. That target mapping is what starts the app. This is the same link you met in the chapter on launchpad content: the tile identifies a semantic object and an action, and the target mapping resolves them to the app.
Page layout reuse across roles
Because pages are separate objects, a change to a page affects every space that uses it, and therefore every user whose roles lead to that space. Treat a shared page like shared code. Before you change it, check where it is used.
What users see
When a user opens the launchpad, the system builds the view as follows:
- It reads all business roles assigned to the user.
- It collects the spaces of those roles.
- It shows each space as a navigation entry. If the same space comes from several roles, it shows it once.
- When the user selects a space, it displays the page or pages of that space.
- For each app on the page, it checks that the app is available to the user through a catalog in one of the user's roles. Apps without a matching catalog are not shown.
Users can also personalize a page if the administrator has allowed it. Personalization stores a per-user layer on top of the page. It can hide or rearrange sections and apps, but it cannot add an app that the roles do not supply.
Designing spaces and pages
A few rules keep the design manageable.
- One job function, one space. A buyer should find purchasing apps in a "Purchasing" space and not spread over five spaces.
- Keep pages short. Aim for a handful of sections with a clear title each, such as "Daily work", "Monitoring" and "Reports".
- Match catalogs to pages. If a page shows apps from a catalog the role does not contain, those apps are silently missing. Document which catalogs a page needs.
- Limit the number of spaces per user. A user with ten roles can end up with many navigation entries. Merge spaces that serve the same work.
- Name for users. Space and page titles are read by business users, so use their vocabulary and not technical IDs.
Common errors
| Symptom | Likely cause | What to check |
|---|---|---|
| The space does not appear | The role has no space on its **Menu** tab, or the user does not have the role | Role assignment and the **Menu** tab |
| The space appears, but the page is empty | None of the page's apps are in catalogs of the user's roles | Catalogs on the role against the apps on the page |
| One app is missing from the page | Its catalog is not in the role, or the app was removed from the section | The app's source catalog |
| The tile appears, but the app fails with an authorization error | Visibility is fine, but authorization values are missing | SU53 and the trace, as covered in the troubleshooting chapter |
| A change to a page affects unrelated users | The page is shared by several spaces | Where-used information for the page |
| The user sees a layout from before your change | The user's personalization overrides it, or the launchpad cache is stale | Personalization settings and cache |
Using SAP-delivered spaces and pages
SAP delivers spaces and pages together with its business role templates. A template such as an accounts payable accountant role comes with a matching space and page that already reference the template's catalogs. When you copy the template to a custom role, you can keep the delivered space or copy it as well. Keep in mind:
- Delivered spaces and pages are updated by SAP in releases. If you use them unchanged, you receive those updates.
- If you copy and change them, your copy no longer follows SAP changes. You must compare after each release.
- Prefer to copy only when you need a different layout. If you only need fewer apps, restrict the catalogs and keep the delivered page.
The next chapters build on this: role templates show how to start from SAP content, and restrictions show how to narrow the data a user sees without changing the layout at all.
Exercise
A user has a business role with the catalog "Accounts Payable - Invoices" and a space whose page shows the apps "Manage Supplier Invoices" and "Display Supplier Balances". Only the first app appears on the page. The catalog contains both apps. Name two checks that would explain the missing tile, and say which of them is a visibility problem and which, if any, is an authorization problem.
Show answer
First, check whether "Display Supplier Balances" is actually in the section of the page. If someone removed it from the section, it is a visibility problem and the fix is to add it back. Second, check whether the catalog containing the app is really assigned to the user's role, because a similar catalog may hold only the first app. This is also visibility, since the tile is filtered out. Neither is an authorization problem. A missing authorization value would not hide a tile that is on the page and supplied by a catalog. It would show up as an error when the app is started.
Exercise
A security officer asks you to remove the app "Change Bank Details" from the page of the "Accounts Payable" space so that clerks cannot change bank details. Does this meet the requirement? What should you do instead?
Show answer
No. Removing the tile only changes visibility. Clerks can still run the app if their role contains the catalog and the authorization values, for example through the app finder or a direct link. Remove the catalog that contains the app from the role, or split it into a separate role, or remove the authorization values for the activity that changes data. Then also remove the tile from the page so the layout stays consistent.