adt_write_source
Write ABAP source code to an object, performing conflict check, syntax check, lock, write with transport, and optional activation. Never leaves a dangling lock.
Instructions
AI-safe edit of an ABAP object. Orchestrates: optional conflict check → optional syntax check → lock → write (with transport) → unlock (always) → optional activate. Never leaves a dangling lock. Blocked in read-only mode; object name must match the allowed Z*/Y* prefix whitelist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Complete, new ABAP source for the object | |
| activate | No | Activate after writing | |
| objectUri | Yes | Object URI (base, not .../source/main) | |
| transport | No | Existing transport request; if omitted, one is auto-created | |
| description | No | Transport description when auto-creating | Changed via ABAP ADT MCP |
| syntaxCheck | No | Run syntax check before writing | |
| expectedCurrentSource | No | If provided, write only if the current source still equals this (concurrency guard) |