editObject
Applies edits to ABAP objects in one call: locks, patches, activates, and verifies. Use dryRun to preview the diff without making changes.
Instructions
The whole edit in one call: lock, patch, unlock, activate and verify. This is the sequence a change to an ABAP object needs, and each step has a way to go wrong on its own - the lock must be released BEFORE activating, or activation fails with "user is already processing", and an activation is only believable once the inactive list comes back empty. Nothing is rolled back if a step fails: the source stays written to the inactive version, which is not what the system executes, and the answer says exactly how far it got. Pass dryRun to see the diff without locking anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edits | Yes | Edits to apply, exactly as patchObjectSource takes them: {startLine, endLine?, replacement}, {anchor, replacement, occurrence?} or {insertAfterLine, insertion}. | |
| dryRun | No | Compute the diff and return it without locking, writing or activating. | |
| activate | No | Activate after writing (default true). Set false to leave the change in the inactive version. | |
| parentUri | No | Package URI (/sap/bc/adt/packages/<package>), used when the inactive list leaves adtcore:parentUri empty. | |
| transport | No | Transport request. Pass the number of the REQUEST, not of a task inside it - a task number is refused with "not a change request". | |
| accessMode | No | Access mode for the lock. | |
| objectSourceUrl | Yes | Source URL, e.g. /sap/bc/adt/oo/classes/zcl_app/source/main |