ERPClimb logoERPClimb
Draft Handling
RAP / CDS / ODataadvanced 8 min read

Draft Handling Part 5: Troubleshooting Draft Incidents

Preview · a free account unlocks the full lesson

Key takeaway

Resolve the typical draft tickets — "document locked", "my changes disappeared", "Save does nothing", "data changed by another user" — with a symptom-based checklist and the right tools.

In this lessonShow sections

Visual overview

Draft Handling Part 5: Troubleshooting Draft Incidents — learning sheetIn one line: Resolve the typical draft tickets — "document locked", "my changes disappeared", "Save does nothing", "data changed by another user" — with a symptom-based checklist and the right tools.ERPClimb.com / RAP / LESSON 5/5 / LEARNING SHEETDraft Handling Part 5: Troubleshooting Draft Incidents1 · IN ONE LINEResolve the typical draft tickets — "document locked", "my changesdisappeared", "Save does nothing", "data changed by another user" —with a symptom-based checklist and the right tools.2 · KEY IDEAS EXPLAINED1SYMPTOM 1: "THE DOCUMENT IS LOCKED"Questions: • Does the user see "Locked by<name>"? → another user holds theexclusive lock (active editing). Wait, or ask thatuser to save/discard. • Is the "otheruser" the same person on another device or…2SYMPTOM 2: "MY CHANGES DISAPPEARED" •Did the user click Discard/Cancel? (Check draftdeletion via the app flow.) • Did another usertake over an expired draft? Taking over discardsthe old draft. • Was the draft older than thedraft lifetime and removed by the cleanup? • Did…3SYMPTOM 3: "SAVE DOES NOTHING" • Prepareor Activate returned validation errors. Check thebrowser's network tab or the message popover. •Messages without %element or %state_area are easyto miss or stay stale. • An on-save determinationor validation fails only at activation (not in…4SYMPTOM 4: "DATA HAS BEEN CHANGED BY ANOTHERUSER" • Total ETag mismatch: the active datawas changed while the draft existed (often by anAPI or job after the lock expired). This iscorrect protection. The user must reload and redothe change. • If it happens right after the user's…3 · DO · AVOIDBest practice!Common mistakeStart every ticket by identifying thelifecycle stage and message.Resolve drafts through Resume/Discard, neverthrough table deletes.Make validation messages visible with %elementand %state_area.✕Deleting draft table rows manually.✕Treating "Locked by" and total ETagmessages as bugs.✕Debugging code before checking which messagesPrepare returned.4 · IN A REAL PROJECTA buyer reported that request 4711 had been "locked for two days". Support first tried to deleterows from the draft table, which the team lead stopped. Following the playbook, a READ with %is_draft showed adraft owned by the buyer herself — created on her tablet. The desktop session saw it as another session's…Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

When troubleshooting a draft incident, the first step is always to find the lifecycle stage involved — create, edit, change, prepare, activate or discard. A "Locked by" message is usually protection working correctly rather than a bug, and "Save does nothing" is usually a Prepare or validation message the user simply didn't see. One rule overrides everything else: never delete draft table rows by hand — always use Discard through the app or via EML.

Parts 1 through 4 explained how draft works; this part is the support playbook for when it misbehaves.

For the symptom "the document is locked," start by asking whether the user sees "Locked by <name>" — if so, another user holds the exclusive lock through active editing, so the fix is to wait or ask that user to save or discard.

It's also worth checking whether the "other user" is actually the same person on another device or browser tab, in which case they have their own draft that should be resumed or discarded. A background job or API might also be holding a lock, in which case check the job, since APIs should not hold locks for long.

Useful tools here are the lock monitor (SM12), which shows current enqueue locks, and the draft admin data, which shows the draft owner.

For "my changes disappeared," check whether the user clicked Discard or Cancel (verifiable through the app's draft deletion flow), whether another user took over an expired draft (which discards the old one), whether the draft was simply older than the draft lifetime and removed by cleanup, or whether activation failed and the user closed the page — in that last case the draft still exists and can be found via the "Own drafts" filter.

Free account

Create a free account to keep reading

You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.

  • Full explanation
  • Code example
  • Real project scenario
  • Common mistakes
  • Best practices
  • Interview angle

One tap with Google works too. Every topic keeps its first lesson open to everyone.

Keep exploring

Referenced SAP objects

Reviewed reference pages for the objects this page mentions.

Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.