Sub topic 9
Starting from SAP-delivered business role templates
This chapter assumes you know what a business catalog and a business role are, and that you have seen PFCG roles and SU24 defaults. You should also be able to open the Fiori launchpad app Business Roles or the equivalent role maintenance in your system.
Why start from a template
A business role template is a business role that SAP delivers for a typical job function, such as accounts payable accountant or sales manager. It already combines the right business catalogs, spaces and pages, and it carries the matching authorization defaults. SAP maintains these templates and updates them with each release.
Building a role from scratch means picking catalogs, checking every app's authorization defaults, and arranging a launchpad layout. A copied template gives you a tested starting point, so you only change what your company does differently.
What a template contains
| Part | What it provides |
|---|---|
| Business catalogs | The apps and target mappings the job function can open |
| Spaces and pages | A ready launchpad layout for that function |
| Authorization defaults | Authorization objects with values taken from the SU24 defaults of the included apps |
| Restriction types | Fields, such as company code, that you can fill in per role |
Template IDs follow SAP's naming, for example SAP_BR_AP_ACCOUNTANT. Templates sit in the SAP namespace, so you cannot change them. Your system may overwrite them during an upgrade.
Copying a template
The usual flow has five steps.
- Find the template that is closest to the job function. Search the template list by name or by the apps you need.
- Copy it into your customer namespace, for example
ZBR_AP_ACCOUNTANT. - Remove catalogs or apps the role should not have. Add custom catalogs if you built your own.
- Set restrictions, such as company codes or plants, so the role covers only the organizational units that apply.
- Save the role, check that the generated authorization data is consistent, and assign it to a test user.
Keeping the copy current
A copy does not follow later changes to the original. When SAP adds an app to a template in a new release, your copy keeps its old content. Plan a review after each upgrade:
- Compare your role with the new version of the template.
- Decide for each new app whether your users need it.
- Run a test with a representative user before you transport the change.
Common mistakes
- Assigning the template directly to users. The template has no restrictions for your organization, so users may see far more data than intended.
- Copying a template that is much larger than the job function and then never trimming it. Unused apps widen access and make audits harder.
- Forgetting to set restriction values after copying. The role may then give access to all company codes, or to none, depending on the field.
- Changing authorizations by hand in PFCG without recording why. The next reviewer cannot tell a deliberate change from an error.
Exercise
A colleague needs a role for accounts payable clerks in company code 1000 only. List the steps you would take, starting from the SAP-delivered template, and say what you would avoid.
Show answer
Find the accounts payable accountant template and copy it into the customer namespace, for example ZBRAPCLERK. Remove catalogs and apps the clerks do not need. Set the company code restriction to 1000. Save, check the generated authorization data, test with a clerk's user, and then assign the role. Avoid editing the SAP template itself and avoid assigning the unrestricted template to users. Plan to compare the copy with the template after each upgrade.