technicaladvancedChapter 8 / 21 · Lesson 2 / 3
RAP, EML, CDS and draft failures — Guided debugger and evidence walkthrough
Find the correct behavior phase, REPORTED/FAILED response and CDS association source of truth.
Approx. 25 minutes · Guided practice + knowledge check
This guided walkthrough 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.
01Set up a safe diagnostic reproduction
RAP managed/unmanaged behavior, EML and CDS on supported ABAP Platform/ABAP Cloud; draft and authorization behavior vary by service. Use fictional keys and DEV/QA data. The expected outcome is: Find the correct behavior phase, REPORTED/FAILED response and CDS association source of truth.
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
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.
Active diagnostic action
Record request entity key, active/draft flag, user, If-Match token and returned message path.
The stale If-Match header explains 412 before the save handler is reached.
Check alternative: A stale ETag prevents an update before the RAP save sequence.
Complete six-step runbook for this chapter
- 01 Scope.Record request entity key, active/draft flag, user, If-Match token and returned message path.
- 02 Find source.Determine whether failure is HTTP precondition, CDS/DCL visibility, behavior authorization, validation, save or persistence.
- 03 Inspect.In an authorized ADT test session break at the handler/saver phase appropriate for managed versus unmanaged implementation.
- 04 Test cause.Inspect EML FAILED/REPORTED, %tky, %msg and transactional context; correlate logs without exposing raw customer payloads.
- 05 Correct safely.If the failure is stale ETag, refresh and resolve conflict; if validation, correct approved business input; don't skip lock or auth.
- 06 Verify.Retest active/draft transitions, optimistic concurrency and negative authorization in a clean session.
03Read the three decisive observations
- 1.The stale If-Match header explains 412 before the save handler is reached.
- 2.A separate missing-company-code EML case explains a business validation failure unrelated to ETag.
- 3.The same entity can appear or disappear under DCL depending on user role.
04Safe handoff and completion criteria
Never disable locking, DCL or instance authorization to make a RAP example pass. Use nonproduction service keys and test fixtures.
- Positive case.Current ETag allows a valid authorized update with correct persisted active data.
- Negative case.Stale If-Match returns a controlled concurrency failure without overwriting another user's change.
- Cross-process check.Missing 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.
- Behavior Implementations Part 5: Performance, Unit Testing and Debugging
- Draft Handling Part 5: Troubleshooting Draft Incidents
- CDS Associations Part 5: Troubleshooting Duplicates, Missing Data and Slow Queries
- EML Part 3: IN LOCAL MODE — What It Bypasses and When It Is Safe
Additional officially documented tools: SAP Learning — ABAP debugging. Confirm the documentation version for your system.