update_enho
Replace the entire source of an existing hook enhancement implementation (ENHO/XHH), with locking, optional activation, and production safety. Read source first and use patch_enho for small edits.
Instructions
Overwrite the source of an EXISTING hook Enhancement Implementation (ENHO/XHH). Locks, PUTs the whole new source, unlocks, then optionally activates. Refuses to run on production profiles. REPLACES the whole source - read it first with get_enho_source and send the complete result back. Prefer patch_enho for small edits. For BAdI implementations use update_class on the implementing class.
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": {
"enhoName": "<enhoName>",
"source": "<source>"
},
"name": "update_enho"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Complete new ENHO source - REPLACES the entire implementation | |
| activate | No | Activate after writing. Default false. | |
| enhoName | Yes | Enhancement implementation name, e.g. ZEH_MY_HOOK | |
| transport | No | Transport request. Omit only for local/$TMP objects. |