adt_read_source
Read ABAP source code from SAP objects with line-range slicing and optional DDIC context to optimize token usage.
Instructions
Read the ABAP source of an object. Accept either the object URI (e.g. /sap/bc/adt/oo/classes/zcl_x) or its /source/main URI. Supports line-range slicing and line-number prefixes. Large sources are truncated with a warning unless a range is given. Set attachContext=true to prepend a compressed prologue of the DDIC objects (domains/data elements) referenced by TYPE/LIKE clauses — saves the agent from issuing one lookup per referenced type (token optimisation).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endLine | No | 1-based end line | |
| objectUri | Yes | Object URI or .../source/main URI from adt_search_objects | |
| startLine | No | 1-based start line | |
| attachContext | No | Prepend a compressed prologue of referenced DDIC objects (token optimisation) |