Security · Intermediate · Configuration
How to create a role in PFCG and check it with SU53
Build a single role from a menu, maintain its authorizations, generate the profile, assign it to a test user and use SU53 to find what is still missing.
- APPLICABILITY
- ABAP systems with role maintenance (ECC, S/4HANA on-premise and private cloud). S/4HANA Cloud Public Edition and SAP BTP ABAP environment use business roles in the Maintain Business Roles app instead of PFCG.
- TOOLS / TRANSACTIONS
- PFCG · SU01 · SU53 · STAUTHTRACE
Your project assignment
The purchasing team needs a display role for purchase orders in the hypothetical company code 1000. Build it in the development client, assign it to a test user, and prove what the user can and cannot do.
Where to start: URLs and transactions
- SAP GUI transactions
- PFCG, SU01, SU53, STAUTHTRACE
- Menu path to role maintenance
- Tools → Administration → User Maintenance → Role Administration → Roles
- SAP Learning: Creating Standard Roles
- https://learning.sap.com/courses/exploring-the-authorization-concept-for-sap-s-4hana-and-sap-business-suite/creating-standard-roles
Prerequisites
- Authorization administrator rights in the development client, following your segregation-of-duties rules (role builder and user administrator are often different people).
- A written requirement: which transactions and which organizational values the job needs.
- A test user without broad profiles such as SAP_ALL, and a customizing transport request.
- SU24 default values for the chosen transactions reviewed, because they drive the PFCG proposals. If purchasing users work in Fiori, a GUI test does not prove Fiori app access; test the Fiori catalog/role separately.
Configuration workflow
From requirement to a proven role
All steps visible. Play or advance one stage at a time.
Hands-on implementation — step by step
Follow the screen navigation, replace example values with approved project values, and mark each step after checking its result. The screens below are original teaching aids, not live SAP screenshots. Progress is local to this visit.
- 1
PFCG → create a single role
Start PFCG, enter a role name in the customer namespace (not starting with SAP_), choose Single Role, enter a description and save.
PFCG → create a single roleERPClimb · illustrative screen - Role
ZMM_PO_DISPLAY_1000 (hypothetical)- Type
Single role- Description
Display purchase orders, company code 1000
Expected result: The role exists and the tabs become available.
Why this matters: Roles in the SAP namespace are templates and can be overwritten by upgrades.
- 2
Menu tab → add transactions
On the Menu tab choose Transaction and add only the transactions from the requirement. Save.
Menu tab → add transactionsERPClimb · illustrative screen - Transaction
ME23N- Transaction
ME2N
Expected result: The role menu lists the transactions.
Why this matters: The menu drives which authorization proposals PFCG reads from the SU24 defaults.
- 3
Authorizations tab → Change Authorization Data
Choose Change Authorization Data. In the organizational levels dialog enter the agreed values, then open the tree and maintain the remaining open fields. Keep activities to display only.
Authorizations tab → Change Authorization DataERPClimb · illustrative screen - Purchasing organization
1000 (hypothetical)- Plant
1000- Activity (ACTVT)
03 Display
Expected result: All traffic lights are green and no open field remains.
Why this matters: Organizational levels and activities are what turn a generic proposal into this job's access.
- 4
Generate the profile
Choose Generate, accept or adjust the proposed profile name and return to the role.
Generate the profileERPClimb · illustrative screen - Profile name
Proposed by the system- Status of Authorizations tab
Green
Expected result: An authorization profile is generated.
Why this matters: Authorizations only take effect once the profile is generated, the user is compared, and the user logs on again (or the user buffer is refreshed).
- 5
User tab → assign and compare
On the User tab enter the test user with a validity period and choose User Comparison → Complete comparison.
User tab → assign and compareERPClimb · illustrative screen - User ID
MM_TEST01 (hypothetical)- Valid to
31.12.2026 (example date)- User Comparison
Complete comparison
Expected result: The User tab is green and SU01 shows the role and profile for the user.
Why this matters: The comparison updates the user's role and profile assignments in the user master record.
- 6
Positive and negative test as the test user
Log on as the test user. Display a purchase order of purchasing organization 1000, then try a change transaction and a purchase order from another organization.
Positive and negative test as the test userERPClimb · illustrative screen - Allowed
ME23N for organization 1000- Refused
ME22N; organization 2000
Expected result: Display works; the other attempts end with a not-authorized message.
Why this matters: A role is only proven when both the allowed and the refused cases behave as designed.
- 7
SU53 immediately after the refusal
Enter /nSU53 right after the refusal. Current releases keep a buffer of recent failed checks (100 entries by default, set by the profile parameter auth/su53_buffer_entries), so the entry does not have to come from the same session; older releases keep only the last failed check. If the entry is gone, repeat the action and call SU53 again, or evaluate an authorization trace (STAUTHTRACE, or ST01 on older releases). Read the authorization object, the fields and the values the program required, and compare them with the values the user holds.
SU53 immediately after the refusalERPClimb · illustrative screen - Object
M_BEST_EKO (example)- Required
ACTVT 02, EKORG 2000- Held
ACTVT 03, EKORG 1000
Expected result: SU53 names the object and values of the failed check.
Why this matters: SU53 shows what the program asked for; the design decision whether to grant it stays with the role owner.
Project acceptance checklist
Use this checklist to prepare evidence for your project lead.
0 of 4 checks marked. This does not certify the SAP configuration.
Validate your configuration
- The Authorizations tab and the User tab show a green status, and the test user holds the generated profile after user comparison.
- The test user can carry out the required transactions and is refused, with an entry in SU53, outside the agreed organizational values.
Common errors and what to check
the user gets a not-authorized message although the role is assigned.
Check: The profile was not generated again after a change, or user comparison has not run.
SU53 shows nothing useful.
Check: The failed check was written on another application server or was overwritten; repeat the action and call SU53 again straight away, or use the authorization trace STAUTHTRACE.
yellow or red lights remain on the Authorizations tab.
Check: Open fields or organizational levels are not maintained.
after adding a transaction, existing values look changed.
Check: Authorizations in status Changed or Manual are no longer updated from the SU24 proposals.
the transaction is missing from the menu or does not start at all.
Check: That is a role-menu or S_TCODE problem, different from an object-level refusal shown in SU53.
More in the SAP Library
Need help with a configuration error? Open ERPClimb Copilot.
Technical references & further reading
Official documentation for technical verification, release compatibility and further study.