Sub topic 6
From app to authorization: SU24 defaults and service access
This chapter assumes you know what a PFCG role is, what an authorization object, field and activity are, and how a business catalog groups apps. Here you will see how the system turns an app in a catalog into authorization data.
Two layers of access
A catalog entry lets a user see and start an app. It does not let the user read or change business data. Two things have to be in place:
- Start authorization. The user may call the app and the services behind it.
- Business authorization. The user holds the authorization objects, fields and activities that the app's code checks when it runs.
SAP stores the link between an app and its authorizations as default values. These defaults are what you maintain in transaction SU24.
What SU24 stores
For each app (or classic transaction), SU24 holds a list of authorization objects. For each object it stores:
- Whether the application checks the object.
- Whether PFCG proposes the object when you add the app to a role.
- Default values for the object's fields, such as
ACTVT.
Authorization fields where the default is empty stay open in the role. You or the role administrator must fill them, usually with organizational values.
The table shows how SAP and customers each maintain this data.
| Data | Maintained by | Purpose |
|---|---|---|
| SAP defaults | SAP, delivered with the software | Standard proposal for each app |
| Customer defaults | You, in SU24 | Your changes to the proposal |
| Comparison after upgrade | You, in SU25 | Merge new SAP defaults with your changes |
How the defaults reach a role
When you add a catalog to a role, PFCG reads each app in it. It collects the start authorizations and the SU24 proposals and writes them into the role's authorization data. You then complete the open fields and generate the profile, as covered in the PFCG chapter.
Service access
A Fiori app loads its data through an OData service (a web service that exposes business data). The user needs authorization to start that service, which the system checks with the object S_SERVICE. The value in SRV_NAME identifies the service.
You normally do not enter these values by hand. They come with the app, so adding the catalog to the role is enough. Typical problems appear in these cases:
- You build a custom app or service and never maintain its start authorization.
- You remove an app from a role by editing authorization values instead of changing the catalog.
- The service is not activated in the system, so no authorization can help.
Common errors
- Editing the generated authorizations directly. The next change to the catalog or the defaults makes the role authorization data inconsistent. Change the source (SU24 or the catalog) and regenerate.
- Opening a field to
*to make an error disappear. This grants more than the job needs. Find the missing value instead (see the troubleshooting chapter). - Skipping SU25 after an upgrade. New SAP defaults then never reach your customer entries, and new checks surface as missing authorizations.
Exercise
A user can see an app tile on the launchpad, but the app fails with an authorization error. Name two separate places in the role setup where the cause could be, and say which tool you would use to check the second one.
Show answer
The cause could be the start authorization for the app's OData service (the S_SERVICE entry), or a business authorization object whose field values are missing or too narrow. For the second one, check the role's authorization data in PFCG against the SU24 defaults of the app. SU53 shows the failed check.