create_enho
Creates and activates SAP hook enhancement implementations (ENHO/XHH) from ENHANCEMENT source blocks, refusing production profiles and requiring a transport unless the package is $TMP.
Instructions
Create a new hook Enhancement Implementation (ENHO/XHH) in SAP and activate it. Refuses to run on production profiles. The source must contain at least one ENHANCEMENT block. Example: 'ENHANCEMENT 1 <enho_name>. " code ENDENHANCEMENT.' For BAdI implementations (ENHO/XHB) create the implementing class instead. Needs a transport unless package is $TMP.
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>",
"description": "<description>",
"packageName": "<packageName>",
"source": "<source>"
},
"name": "create_enho"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Complete ENHO source with ENHANCEMENT...ENDENHANCEMENT blocks | |
| activate | No | Activate after writing the source | |
| enhoName | Yes | Enhancement implementation name, e.g. ZEH_MY_HOOK | |
| transport | No | Transport request. Omit only for $TMP. | |
| description | Yes | Short description | |
| packageName | Yes | Package, e.g. ZABAP. Use $TMP for a local throwaway. |