deleteMethod
Removes an ABAP method's declaration and implementation from a class. Safely handles METHODS chains and supports dry-run previews and usage checks before activation.
Instructions
Remove a method from a class - both its declaration and its implementation - and activate. A declaration inside a METHODS: chain is handled: the entry goes, and if it was the last one the chain is closed so it still compiles. What it will not do is guess at a line that declares two methods at once; that is refused and named, because rewriting it wrong takes somebody else's method with it. Pass dryRun to see the diff first, and check usageReferences before removing a method that anything calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Show the diff without locking or writing. | |
| activate | No | Activate afterwards (default true). | |
| className | Yes | Class name, e.g. ZCL_APP. | |
| transport | No | Transport request for the change. | |
| methodName | Yes | Method to remove. |