CheckClass
Runs syntax checks on an ABAP class to validate active or inactive code and hypothetical source, returning syntax errors, warnings, and messages.
Instructions
[read-only] Runs a syntax check on the ABAP class named by class_name. Can check existing class (active/inactive) or validate hypothetical source code. Returns syntax errors, warnings, and messages. Recordable: in batch mode a call is recorded under the next number and answers with empty content; its answer is read by number after the batch ends.
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": {
"class_name": "<class_name>"
},
"name": "CheckClass"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | No | Version to check: 'active' (last activated) or 'inactive' (current unsaved). Default: active. | |
| class_name | Yes | Class name. | |
| source_code | No | Optional: source code to validate. If provided, validates hypothetical code without creating object. Must include complete CLASS DEFINITION and IMPLEMENTATION sections. |