CheckSyntax
Validate ABAP source code syntax and get detailed error information. Accepts file paths, direct source code, or existing object names for flexible checking.
Instructions
Check ABAP source code syntax and return detailed error information. Supports three input modes: file_path (from tmp folder), source_code (direct code), or object_name (existing object). Priority: file_path > source_code > object_name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | Path to ABAP source file to check. Defaults to tmp folder for relative paths (e.g., "ZCL_MY_CLASS.abap"). Supports absolute paths. Auto-detects class name from filename. | |
| object_name | No | Name of the ABAP object. If file_path and source_code not provided, will fetch source from this existing class. Also used for file_path when class name cannot be auto-detected. | |
| object_type | No | Optional ABAP object type (CLAS, PROG, FUGR, etc. - auto-detected if not provided) | |
| source_code | No | ABAP source code to check for syntax errors (used if file_path not provided) |