technicaladvancedChapter 8 / 21 · Lesson 1 / 3
RAP, EML, CDS and draft failures — Concepts and mental models
Find the correct behavior phase, REPORTED/FAILED response and CDS association source of truth.
Approx. 18 minutes · Guided practice + knowledge check
This concepts lesson 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, 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.
01Understand the execution or business process
A RAP request crosses multiple layers: consumer and OData request, CDS projection/exposure, behavior contract, implementation, transactional buffer, save sequence and persistence. Debug the failing phase, not an arbitrary database write. Managed and unmanaged scenarios place different responsibility on framework versus application code.
FAILED and REPORTED are structured business outcomes, not simply uncaught ABAP dumps. EML READ or MODIFY can return messages even when the HTTP envelope is technically accepted. Distinguish feature control, instance authorization, validation, determination, lock, ETag and draft ownership.
CDS path expressions and association cardinality can change row counts; DCL can hide data for a user. Check the consumer's role and projection before blaming the behavior handler for missing entities. Draft data and active data must be inspected separately when a stale draft is involved.
- EVIDENCE PHASE 1Reproduce action, draft context and EML response
- EVIDENCE PHASE 2Inspect behavior handler, saver, DCL and associations
- EVIDENCE PHASE 3Validate ETag, authorization and persisted state
02Three mistakes that lead to false root causes
- An HTTP 412 is often a failed concurrency precondition rather than proof of a backend dump.
- FAILED/REPORTED messages can represent expected business validation; inspect their keys and state.
- A missing CDS row under a restricted user can result from DCL, not a failed SQL join.
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.
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
04Choose the right tools and release context
RAP managed/unmanaged behavior, EML and CDS on supported ABAP Platform/ABAP Cloud; draft and authorization behavior vary by service. Do not use a classic transaction code on a cloud edition unless it is supported by that environment and permitted for your role.
- ADT
- EML
- RAP behavior debugger
- SQL trace
- DCL
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.