syntax_check
Run ABAP syntax and consistency checks on existing objects without activating them. Detect errors and warnings before activation to fix issues first.
Instructions
Run the ABAP syntax/consistency check (the same check ADT runs) on an existing object WITHOUT activating it. Read-only and safe on any profile, including production. Use this after writing source and BEFORE activate_object - it reports errors and warnings so you can fix them first. To check source you have just written but not yet activated, pass version="inactive".
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": {
"objectUri": "<objectUri>"
},
"name": "syntax_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | No | Which version to check. Use 'inactive' for source that is saved but not yet activated. | active |
| objectUri | Yes | ADT URI of the object, e.g. /sap/bc/adt/oo/classes/zcl_foo or /sap/bc/adt/ddic/ddl/sources/zi_foo (with or without /source/main) |