Search ABAP Object Source Lines
search_abap_object_linesSearch a single ABAP object's source for case-insensitive regex matches and return numbered matching lines to locate statements before editing or setting breakpoints.
Instructions
Find lines in one object's source that match a case-insensitive regular expression and return them as numbered lines (line number, then text). Use it to locate a statement before editing or setting a breakpoint; use where_used for references across objects and get_abap_object_lines to read the whole source. Read-only; searches a single object per call and reads the full source first.
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>",
"pattern": "<pattern>"
},
"name": "search_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) | |
| pattern | Yes | Case-insensitive JavaScript regular expression; a plain word works as a substring (e.g. SELECT .* FROM MARA). An invalid expression fails the call. | |
| connectionId | No | SAP system connection ID |