UpdateClass
Modifies an existing ABAP class by locking it, replacing its source code, unlocking it, and optionally activating the change outside batch mode.
Instructions
Update source code of an existing ABAP class. Locks, updates, unlocks, and optionally activates. Runs outside batch mode.
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": {
"class_name": "<class_name>",
"source_code": "<source_code>"
},
"name": "UpdateClass"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | How much of the answer to return: "terse" (default, the fields you need to act), "full" (the whole parse), "raw" (the document as ADT sent it). | terse |
| activate | No | Activate after update. Default: false. | |
| class_name | Yes | Class name. | |
| source_code | Yes | Complete ABAP class source code. | |
| transport_request | No | Transport request number, not a task. Required for transportable packages. |