update_program_source
Replaces the complete ABAP source of an existing program or include, resolving type, locking, writing, and optionally activating it. Read the current source first and submit the full edited text.
Instructions
Overwrite the source of an EXISTING ABAP program or include (report, include, module pool). Resolves program-vs-include automatically, then locks, PUTs the source, optionally activates, and unlocks. Refuses to run on production profiles. IMPORTANT: this replaces the WHOLE object - always read it first with get_program_source, edit that text, and send the complete result back.
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": {
"programName": "<programName>",
"source": "<source>"
},
"name": "update_program_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Complete new ABAP source - REPLACES the entire object | |
| activate | No | Activate after writing. Default false - activate in SE38/SE80 yourself. | |
| transport | No | Transport request, e.g. D01K900123. Omit only for local/$TMP objects. | |
| programName | Yes | Program or include name, e.g. ZABLMMNF00002TOP |