abap_journal
View write history and undo changes made to SAP ABAP objects. List journal entries, inspect before-images, revert bad writes, and reconcile pending entries.
Instructions
History and undo for writes abapsmith made. Parameters: mode (list|show|undo|reconcile, default list), entry, object, detail, limit, session, force, activate, outcome, reason. Common calls: mode=list (recent writes with entry ids, each row's undoable column and truncated undo_blocker say up front whether an undo is expected to work); mode=show entry= (one entry with its before-image, and the full undo_blocker reason if any; detail=full for the complete images); mode=undo entry= activate=true (revert it — refuses on drift or a delete-gate; see abapsmith-recover-a-bad-write); mode=reconcile entry= outcome=<succeeded|failed> reason= (close a stranded pending entry — journal bookkeeping only, nothing is sent to SAP).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | list (default): recent writes. show: one entry incl. its before-image. undo: revert one entry. reconcile: close a stranded pending entry with an outcome you establish and a stated reason. | |
| entry | No | Journal entry id from mode=list. Required for show and undo unless `object` is given. | |
| force | No | mode=undo: proceed even though the object changed on the server after abapsmith wrote it. This OVERWRITES whatever that other change was. Read the object first. | |
| limit | No | mode=list: entries to return. Default 20. | |
| detail | No | show only. "summary" (default): header plus a unified diff of before-image → after-image, capped at about 2,000 characters. "full": the complete before-image (and after-image when one was recorded), as before. | |
| object | No | Filter by object name; for undo, targets that object's most recent undoable entry. | |
| reason | No | mode=reconcile: how you established that outcome. Required, recorded verbatim on the entry, and the only evidence it will ever carry for the asserted outcome. | |
| outcome | No | mode=reconcile: the outcome you are asserting for a `pending` entry. Required. `pending` is the state being left, so it is not offered. | |
| session | No | mode=list: filter to one session's entries. "current" resolves to this running server's own session id (see the echoed `session` in the response header). | |
| activate | No | mode=undo: re-activate after restoring. Default true. |