Get ABAP Object Source
get_abap_object_linesReturn the full ABAP source text of one object for read-only inspection; automatically appends /source/main when the URL omits it.
Instructions
Return the full ABAP source text of one object (program, class, function module, include, ...). Give the object URL and /source/main is appended automatically if you omit it. Use search_abap_object_lines to find a pattern instead of reading everything, get_abap_batch_lines for several objects at once, and get_abap_object_info for metadata only. Read-only; returns the stored version as one string, with no line numbers.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "get_abap_object_lines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ADT URL of the object or its source (e.g. /sap/bc/adt/programs/programs/ZREPORT/source/main, /sap/bc/adt/oo/classes/zcl_order_api). Includes and function modules have their own URLs. | |
| connectionId | No | SAP system connection ID (default connection if omitted) |