Read active ABAP source with line numbers
abap_sourceRetrieves active ABAP source with debugger line numbers for classes, programs, function modules, includes, CDS views, behavior definitions, and service bindings; filter by method, line range, or grep.
Instructions
The ACTIVE source with its line numbers: of a class (main source or a local-class include), a program or a function module — numbered as abap_debug breakpoints use them — and of interfaces, includes, CDS views, behavior and service definitions. A service binding (SRVB) shows its service definitions: from a Fiori app's binding, follow SRVD → CDS views → BDEF → behavior pool to the code to debug. Narrow a source with method, lineStart/lineEnd or grep.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grep | No | Case-insensitive regular expression: only matching lines (and one line around each) are returned. | |
| name | Yes | Object name. | |
| type | Yes | CLAS, PROG or FUNC (where breakpoints go); INTF, INCL, DDLS (CDS view), DCLS, DDLX, BDEF (behavior definition), SRVD (service definition) or SRVB (service binding: its service definitions) to follow a Fiori app to its code. | |
| method | No | CLAS only: just this method (get_total, zif_order~process, lhc_travel~validate_dates), numbered as in the whole source. | |
| include | No | CLAS only: a local-class include instead of the main source — implementations (local classes, e.g. RAP handlers lhc_*), testclasses (ABAP Unit), definitions (local types). Detected for lhc_/lcl_/ltc_ methods. | |
| lineEnd | No | Last line to return. | |
| lineStart | No | First line to return (1-based). |