abap_enh
Manage ABAP enhancement spots and BAdI definitions, including creation, filters, implementations, hooks, activation, and deletion, with transport and etag handling.
Instructions
Default op writes the root adtcore:description of an existing ENHO/XH, ENHO/XHH or ENHS/XS, optionally activating it. ENHO/XHH plug-in source body: use abap_write, not this tool. See operation for the other ops.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | write_description/delete/set_impl_active: container name (never the nested badiImplementation entry - use spec.implName). create_spot/add_badi_def/add_filter_def: spotName. create_impl/set_filter_values: enhName. exercise: badiName. create_hook: new name. discover_hook_anchors: unused. | |
| spec | No | Fields per op (?=optional, else required; numbers=max chars). IDs max 30 chars, see enhancement skill. create_spot: description(60). add_badi_def: badiName, interfaceName, singleUse(bool), shortText(60). add_filter_def: badiName, filterName, filterType(1 upper letter, e.g. C), filterText?(255). create_impl: spotName, badiName, implName, implClass, active(bool), description(60). set_filter_values: spotName, implName, filterName, filterType(as above), compare(=,<>,<,<=,>,>=,EQ,NE,LT,LE,GT,GE), value(255). exercise: methodName, filterName?, filterValue?, params?[{name, kind?(importing/changing/exporting/receiving, default importing, max 1 receiving), value?(req for importing/changing, else forbidden), type?(params[].type: req for changing/exporting/receiving, else forbidden; namespaced type ref)}]. discover_hook_anchors: hostType, hostName, hostUri. create_hook: hostType(PROG/P only), hostName, hostUri, anchorFullName, anchorFullDescription(200), responsible?(12), activate?(bool). set_impl_active: active(bool), implName?(omit only if exactly one entry), description?(60). | |
| type | No | Required for write_description/delete; unused otherwise. | |
| affects | No | Object affected; required except discover_hook_anchors. | |
| corr_nr | No | Transport request (write_description/delete/set_impl_active only). | |
| activate | No | write_description only: activate after a changed write. create_hook uses spec.activate; set_impl_active always activates. | |
| operation | No | Default "write_description". Six create ops: always $TMP, always activate. discover_hook_anchors: read-only. delete needs ABAP_ALLOW_ENHANCEMENT_DELETE=true, irreversible. set_impl_active: reversible. | |
| description | No | Required for write_description/create_hook (new adtcore:description, max 60). Unused otherwise. | |
| expect_etag | No | Refuse if etag differs (write_description/delete/set_impl_active only). |