whereUsedMethod
Find all callers of an ABAP method in SAP systems. Identifies usage locations with optional source snippets to trace dependencies and assess impact.
Instructions
Who calls this method. usageReferences needs the line and column of the name inside the source, which means reading the class first and counting characters; here the method name is enough. Returns the callers with the object they sit in, and their source snippets with snippets=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | Method name, e.g. CHECK_PLAN. The declaration is preferred over the implementation, because ADT answers a where-used on the declaration with every caller. | |
| snippets | No | Also fetch the source snippet of each usage (one more backend call, much larger answer). | |
| className | No | Class holding the method, e.g. ZCL_APP_PCK_PLAN. | |
| interfaceName | No | Interface holding the method, for an interface method. | |
| objectSourceUrl | No | Source URL instead of a name, e.g. /sap/bc/adt/oo/classes/zcl_app/source/main. |