getObjectSource
Read ABAP source from an ADT URL. For large objects, use search with context or specify a line range to avoid truncation.
Instructions
Reads ABAP source. For LARGE objects do NOT read it whole: use search (grep with line numbers + context) to locate statements, or startLine/endLine to read a window. Without those, a very large source is truncated (head only) with totalLines and a hint. Line numbers in the output are display-only — do not include the "NNN: " prefix in editObjectSource.oldString.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | No | Return only lines matching this text/regex, with line numbers and context. Ideal to locate a statement (e.g. "FROM ckmlpp"). | |
| endLine | No | Last line to return (1-based) when reading a window. | |
| options | No | Optional ObjectSourceOptions (e.g. version). | |
| maxChars | No | Truncation guard for full reads (default 45000). | |
| startLine | No | First line to return (1-based) when reading a window. | |
| connection | No | Optional: SAP connection name to use for THIS call only (overrides the active connection; see listConnections). Immune to server restarts and concurrent switches. | |
| ignoreCase | No | Case-insensitive search (default true). | |
| contextLines | No | Lines of context around each search match (default 3, max 20). | |
| objectSourceUrl | Yes | ADT source URL (e.g. .../programs/programs/ZFOO/source/main). |