update_class
Replace the complete source of an existing ABAP class, lock and unlock it during the write, and optionally activate it; production profiles are refused.
Instructions
Overwrite the source of an EXISTING ABAP class. Locks, PUTs the whole new source, unlocks, then optionally activates. Refuses to run on production profiles. IMPORTANT: this REPLACES the whole class - read it first with get_object_info (.../source/main), edit that text, and send the complete result back (both the DEFINITION and IMPLEMENTATION parts). Prefer patch_class for small edits.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"className": "<className>",
"source": "<source>"
},
"name": "update_class"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Complete new ABAP source - REPLACES the entire class | |
| activate | No | Activate after writing. Default false - activate in SE24/ADT. | |
| className | Yes | Class name, e.g. ZCL_ABL_PLANT_EMAIL | |
| transport | No | Transport request. Omit only for local/$TMP objects. |