ERPClimb logoERPClimb

technicaladvancedChapter 8 / 21 · Lesson 3 / 3

RAP, EML, CDS and draft failures — Root-cause case, remediation and assessment

Find the correct behavior phase, REPORTED/FAILED response and CDS association source of truth.

Approx. 30 minutes · Guided practice + knowledge check

This incident case covers “RAP, EML, CDS and draft failures”, a advanced technical troubleshooting topic. The symptom it starts from: A RAP action succeeds locally but fails save, draft or authorization checks. It follows a 3-phase evidence flow and a six-step runbook, references 5 tools (ADT, EML, RAP behavior debugger, SQL trace, DCL) and ends with a self-check question. All system data in the examples is fictional.

01Incident briefing: identify what really failed

A RAP action succeeds locally but fails save, draft or authorization checks. You are investigating a fictional case; the task is to prove which boundary is responsible without damaging business state.

FICTIONAL SAMPLE · READ-ONLY EVIDENCENever paste live customer data
PATCH /Orders(OrderUUID=guid'DEMO')
If-Match: W/"etag-old" → HTTP 412 Precondition Failed
EML TEST (separate scenario): FAILED-order key DEMO-42
REPORTED-order severity error: 'Order cannot save without company code'
Draft owner TEST_A; active ETag has changed
Sample code, keys and log lines are authored for teaching; not captured from a productive SAP system.

02Separate facts from competing hypotheses

  1. EVIDENCE 1The stale If-Match header explains 412 before the save handler is reached.
  2. EVIDENCE 2A separate missing-company-code EML case explains a business validation failure unrelated to ETag.
  3. EVIDENCE 3The same entity can appear or disappear under DCL depending on user role.

Which explanation is best supported by this evidence?

03Investigation runbook

  1. 01Record request entity key, active/draft flag, user, If-Match token and returned message path.
  2. 02Determine whether failure is HTTP precondition, CDS/DCL visibility, behavior authorization, validation, save or persistence.
  3. 03In an authorized ADT test session break at the handler/saver phase appropriate for managed versus unmanaged implementation.
  4. 04Inspect EML FAILED/REPORTED, %tky, %msg and transactional context; correlate logs without exposing raw customer payloads.
  5. 05If the failure is stale ETag, refresh and resolve conflict; if validation, correct approved business input; don't skip lock or auth.
  6. 06Retest active/draft transitions, optimistic concurrency and negative authorization in a clean session.

04Proof of a durable resolution

Never disable locking, DCL or instance authorization to make a RAP example pass. Use nonproduction service keys and test fixtures.

  • Positive caseCurrent ETag allows a valid authorized update with correct persisted active data.
  • Negative caseStale If-Match returns a controlled concurrency failure without overwriting another user's change.
  • Cross-process checkMissing mandatory data and unauthorized users still fail with accurate business/authorization messages.

05Check your diagnosis

A Fiori RAP draft save returns HTTP 412 and an old If-Match. Where should you investigate first?

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.