ABAP Syntax Check
syntax_checkRuns an SAP syntax check on supplied ABAP source in the context of an existing object without saving or locking, returning line/column messages or a no-errors confirmation before you write source.
Instructions
Run the SAP syntax check on source text you supply, in the context of an existing object, without saving or locking anything. Returns each message as line:column, severity and text, or a no-errors confirmation. Use it before write_abap_object_source; use run_atc_analysis for quality checks on the saved object. Read-only; the object must already exist.
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>",
"source": "<source>"
},
"name": "syntax_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ADT source URL of the object being checked (e.g. /sap/bc/adt/programs/programs/ZREPORT/source/main) | |
| source | Yes | The complete ABAP source to check, as it would be saved (not a fragment) | |
| mainUrl | No | ADT URL of the main object. Default and almost always right: the object itself (url without /source/main) — also for function modules, includes and classes. | |
| connectionId | No | SAP system connection ID |