get_enho_source
Reads the full ABAP source of a hook Enhancement Implementation (ENHO/XHH), including all ENHANCEMENT blocks, so you can inspect or modify SAP hook enhancements.
Instructions
Read the ABAP source of a hook Enhancement Implementation (ENHO/XHH) from SAP. Returns the full implementation source with all ENHANCEMENT blocks. Only ENHO/XHH (hook) objects have a text source - for BAdI implementations (ENHO/XHB) read the implementing class with get_class_source instead.
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>"
},
"name": "get_enho_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subtype | No | ENHO subtype: 'xhh' = hook (default, has source), 'xhb' = BAdI (no source - edit the implementing class) | xhh |
| enhoName | Yes | Enhancement implementation name, e.g. ZEH_MY_HOOK |