Syntax-Check ABAP Object
sap_syntax_checkRun an ABAP syntax check on programs, includes, classes, interfaces, or functions to retrieve errors, warnings, and info messages before activation. Supports active or inactive versions.
Instructions
Run an ABAP syntax check (check run) against an object and return errors, warnings, and info messages.
Args:
object_type ('program'|'include'|'class'|'interface'|'function').
object_name (string).
function_group (string): required for functions.
version ('active'|'inactive', default 'active').
response_format ('markdown' | 'json').
Returns (json): { objectType, objectName, version, errorCount, warningCount, messages: [{type, text, uri?}] }.
Examples:
After editing inactive source -> version='inactive' to validate before activation. Error Handling:
404 -> object/version not found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | No | Which version to check: 'active' (saved/activated) or 'inactive' (latest edited). | active |
| object_name | Yes | Object name. | |
| object_type | Yes | Object kind to check. | |
| function_group | No | Required when object_type='function'. | |
| response_format | No | Output format: 'markdown' (human-readable, default) or 'json' (structured). | markdown |