ABAP Checks and Tests
abap_testCheck ABAP code with syntax checks and ATC/ABAP Unit where available without changing source; returns line:column errors and severity to validate code before saving.
Instructions
Check ABAP code: syntax check, ABAP Unit, ATC. Changes no source.
Actions (pass action plus that action's parameters; connectionId picks the system): • syntax — 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 abap_write(action: "write"); use abap_test(action: "atc") for quality checks on the saved object. Required: url, source. Optional: mainUrl.
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": {
"action": "<action>"
},
"name": "abap_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ADT source URL of the object being checked (e.g. /sap/bc/adt/programs/programs/ZREPORT/source/main) | |
| action | Yes | What to do: syntax (see the tool description) | |
| source | No | 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 |