ERPClimb logoERPClimb

technicaladvancedChapter 12 / 21 · Lesson 2 / 3

Authorization, Basis and cross-layer traces — Guided debugger and evidence walkthrough

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

Approx. 25 minutes · Guided practice + knowledge check

This guided walkthrough 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 and a six-step runbook, references 6 tools (SU53, STAUTHTRACE, PFCG, SM21, ST22, STAD) and ends with a self-check question. All system data in the examples is fictional.

01Set up a safe diagnostic reproduction

SAP GUI/S/4HANA authorization infrastructure, PFCG, SU53, STAUTHTRACE and Basis diagnostics; cloud access varies. Use fictional keys and DEV/QA data. The expected outcome is: Confirm whether role values, technical identities or runtime services cause the failure.

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.

02Animated investigation walkthrough

Choose any step or play the trace. The highlighted evidence and explanation change for this exact chapter. This is a teaching simulation, not a SAP GUI recording.

Diagnostic step 1 / 6

Active diagnostic action

Record affected end user, application and exact failed action; determine whether UI, OData, DCL or ABAP check rejects it.

What it should reveal

The role grants display activity but not approve/change activity, explaining the controlled denial.

If evidence disagrees

Check alternative: Role misses the documented approve activity for this company code.

Complete six-step runbook for this chapter

  1. 01 Scope.Record affected end user, application and exact failed action; determine whether UI, OData, DCL or ABAP check rejects it.
  2. 02 Find source.Exclude CSRF/session and service-activation failure from the HTTP evidence before tracing business authorization.
  3. 03 Inspect.Capture SU53 immediately after the controlled failure; if incomplete, run user/time-restricted STAUTHTRACE with Security approval.
  4. 04 Test cause.Compare denied object and field values to actual PFCG role design and the business owner's required activity.
  5. 05 Correct safely.Request the smallest permitted role adjustment; never bypass AUTHORITY-CHECK or relax DCL globally.
  6. 06 Verify.Retest approved activity and an intentionally unapproved activity; record access-owner approval and audit evidence.

03Read the three decisive observations

  1. 1.The role grants display activity but not approve/change activity, explaining the controlled denial.
  2. 2.The UI tile loads and CSRF passed, making a client-side routing error unlikely.
  3. 3.Authorization trace identifies the exact object/field values; it is stronger evidence than guesswork.

04Safe handoff and completion criteria

Do not recommend SAP_ALL, emergency IDs without governance, or broad customer access. Security trace data must remain confidential.

  • Positive case.Authorized approver can perform the exact action on the permitted company-code record.
  • Negative case.Display-only clerk still cannot approve even after the change.
  • Cross-process check.Restricted company code remains inaccessible and a cross-system technical user isn't overprivileged.

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.