ERPClimb logoERPClimb

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.

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.

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 request entity key, active/draft flag, user, If-Match token and returned message path.

What it should reveal

The stale If-Match header explains 412 before the save handler is reached.

If evidence disagrees

Check alternative: A stale ETag prevents an update before the RAP save sequence.

Complete six-step runbook for this chapter

  1. 01 Scope.Record request entity key, active/draft flag, user, If-Match token and returned message path.
  2. 02 Find source.Determine whether failure is HTTP precondition, CDS/DCL visibility, behavior authorization, validation, save or persistence.
  3. 03 Inspect.In an authorized ADT test session break at the handler/saver phase appropriate for managed versus unmanaged implementation.
  4. 04 Test cause.Inspect EML FAILED/REPORTED, %tky, %msg and transactional context; correlate logs without exposing raw customer payloads.
  5. 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.
  6. 06 Verify.Retest active/draft transitions, optimistic concurrency and negative authorization in a clean session.

03Read the three decisive observations

  1. 1.The stale If-Match header explains 412 before the save handler is reached.
  2. 2.A separate missing-company-code EML case explains a business validation failure unrelated to ETag.
  3. 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.

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