ERPClimb logoERPClimb

technicaladvancedChapter 12 / 21 · Lesson 1 / 3

Authorization, Basis and cross-layer traces — Concepts and mental models

Confirm whether role values, technical identities or runtime services cause the failure.

Approx. 18 minutes · Guided practice + knowledge check

This concepts lesson covers “Authorization, Basis and cross-layer traces”, a advanced technical troubleshooting topic. The symptom it starts from: The same transaction works for one user but not another. It follows a 3-phase evidence flow, references 6 tools (SU53, STAUTHTRACE, PFCG, SM21, ST22, STAD) and ends with a self-check question. All system data in the examples is fictional.

01Understand the execution or business process

Authorization failures require the actual executing user, object, activity and values. SU53 shows the last failed check for a given context and can be overwritten; STAUTHTRACE provides a scoped trace when the last-check display is ambiguous. The requested operation and the technical identity used by a service may differ.

Security issues cross UI role/catalog assignment, OData or RFC service access, ABAP AUTHORITY-CHECK statements, CDS DCL and backend PFCG roles. A blanket role grant can appear to fix a symptom while creating excessive access. Always isolate the precise missing privilege.

Basis runtime evidence such as system logs, workload monitors and process health can tell a different story from authorization. A 403 may reflect CSRF or session context rather than an ABAP authorization object; preserve these alternatives until ruled out.

  1. EVIDENCE PHASE 1Compare execution identity and failing operation
  2. EVIDENCE PHASE 2Run least-privilege authorization or workload trace
  3. EVIDENCE PHASE 3Validate narrow remediation with Security/Basis owner

02Three mistakes that lead to false root causes

  • A blank SU53 after a failure isn't evidence that authorization succeeded.
  • A Fiori tile assignment and backend business permission are separate gates.
  • Granting SAP_ALL can conceal a faulty requirement and violate Segregation of Duties.

03Worked evidence sample

Read the fictional evidence, identify which boundary last succeeded, and predict the next safe diagnostic tool before moving to the guided investigation.

FICTIONAL SAMPLE · READ-ONLY EVIDENCENever paste live customer data
TEST_USER clicks Approve Invoice
Fiori tile opens, OData action returns 403
CSRF check: passed
STAUTHTRACE: object M_RECH_WRK, ACTVT=02, BUKRS=DE10 denied (fictional values)
Role TEST_AP_CLERK: ACTVT=03 only
Sample code, keys and log lines are authored for teaching; not captured from a productive SAP system.

04Choose the right tools and release context

SAP GUI/S/4HANA authorization infrastructure, PFCG, SU53, STAUTHTRACE and Basis diagnostics; cloud access varies. Do not use a classic transaction code on a cloud edition unless it is supported by that environment and permitted for your role.

  • SU53
  • STAUTHTRACE
  • PFCG
  • SM21
  • ST22
  • STAD

05Check your diagnosis

SU53 shows no decisive object but the action fails for one user. What is the appropriate next step?

Select an answer to see the reasoning. This self-check is not a certification examination.

06Continue studying this SAP issue

The links below preserve the original published ERPClimb lessons in their own technical/functional modules. They supplement, not duplicate, this 22nd-module teaching page.

Additional officially documented tools: SAP Learning — ABAP debugging. Confirm the documentation version for your system.