code: Navigation and intelligence
IDE-grade navigation and compiler-authoritative completion: go to definition, element info, where-used, usage snippets, and code completion.
Related guides: read-navigate, ai-agents.
5 commands.
abapctl code definition
READ IDEMPNavigate to definition of symbol at cursor position
| Option | Required | Description |
|---|---|---|
object (positional) | yes | object (object/name argument) |
--line | yes | line number (1-based) |
--col | yes | column number (1-based) |
--connection | no | connection profile name |
--end-col | no | end column (defaults to --col) |
--implementation | no | find implementation instead of definition |
--include | no | class include type |
--adt-type | no | ADT object type (e.g. PROG/P, DDLS/DF, CLAS/OC). Use when a name is shared by multiple object types |
abapctl code definition ZCL_FOO
abapctl code element-info
READ IDEMPGet type, docs, and component info for symbol at cursor position
| Option | Required | Description |
|---|---|---|
object (positional) | yes | object (object/name argument) |
--line | yes | line number (1-based) |
--col | yes | column number (1-based) |
--connection | no | connection profile name |
--include | no | class include type |
--adt-type | no | ADT object type (e.g. PROG/P, DDLS/DF, CLAS/OC). Use when a name is shared by multiple object types |
abapctl code element-info ZCL_FOO
abapctl code references
READ IDEMPFind all references (where-used list) for an object or symbol
| Option | Required | Description |
|---|---|---|
object (positional) | yes | object (object/name argument) |
--connection | no | connection profile name |
--line | no | line number for position-specific lookup |
--col | no | column number for position-specific lookup |
--include | no | class include type |
--adt-type | no | ADT object type (e.g. PROG/P, DDLS/DF, CLAS/OC). Use when a name is shared by multiple object types |
abapctl code references ZCL_FOO
abapctl code snippets
READ IDEMPShow code context at each reference site
| Option | Required | Description |
|---|---|---|
object (positional) | yes | object (object/name argument) |
--connection | no | connection profile name |
--line | no | line number for position-specific lookup |
--col | no | column number for position-specific lookup |
--include | no | class include type |
--adt-type | no | ADT object type (e.g. PROG/P, DDLS/DF, CLAS/OC). Use when a name is shared by multiple object types |
abapctl code snippets ZCL_FOO
abapctl code complete
READ IDEMPGet valid completions at cursor position
| Option | Required | Description |
|---|---|---|
object (positional) | yes | object (object/name argument) |
--line | yes | line number (1-based) |
--col | yes | column number (1-based) |
--connection | no | connection profile name |
--include | no | class include type |
--source | no | use a local file as the source buffer instead of fetching from SAP |
--prefix | no | splice this text at the cursor before querying (server filters by it) |
--kind | no | filter results to a specific kind |
--max | no | cap result count |
--adt-type | no | ADT object type (e.g. PROG/P, DDLS/DF, CLAS/OC). Use when a name is shared by multiple object types |
abapctl code complete ZCL_FOO --source ./ZCL_FOO.clas.abap