getFunctionModule
Fetch an ABAP function module's package, group, and full signature from just its name: parameters, defaults, exceptions, and pass-by-value flags. Optionally retrieve its source body.
Instructions
A function module by name alone: which group it lives in, its package, and its signature as data - importing, exporting, changing, tables and exceptions, with types, defaults and which parameters are passed by value. The name is all that is needed; the group is looked up. Without this, reading a module meant knowing its group to build the URL and then reading the interface out of the ABAP by eye, because ADT serves the signature as the first statement of the source (not as the *"-block SE37 shows). Pass includeSource for the body as well - it is often a thousand lines, so it is off by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Function module name, e.g. Z_APP_GET_INVOICE. | |
| version | No | Which version to read: "active" (what runs) or "inactive" (the working copy, the ADT default). | |
| maxLines | No | With includeSource: how many lines of the body to return. | |
| startLine | No | With includeSource: first line of the body to return. | |
| functionGroup | No | The group, if you know it. Saves the lookup; required only when the search cannot find the module. | |
| includeSource | No | Also return the body. Default false. |