Show TOC

Checking Syntax of DDL SourcesLocate this document in the navigation structure

Context

With the editor check function, you can check whether the source code of DDL sources is syntactically correct or not.

To enable the check function, there are two options available:

  • Automatic syntax check: This option is enabled by default for all source code based editors.
    Note If you wish to disable the automatic syntax check, you have to switch off the corresponding setting in the preferences: Start of the navigation path ABAP Development Next navigation step Editors Next navigation step Source Code Editors Next navigation step Automatic syntax check End of the navigation path.
  • Explicit syntax check: You can use this option whenever the automatic syntax check is disabled.

To trigger an explicit syntax check, proceed as follows:

Procedure

  1. Open the editor with the relevant DDL source.
  2. Click the icon (Check ABAP Development Object) in the toolbar. Alternatively, you can use the keyboard shortcut Ctrl + F2.

Results

If errors occur during the check, these will be issued to the Problems view and displayed there as ABAP Syntax Check Problem. In addition, the code line with the error is labeled with a decorator in the DDL source editor.

Displaying syntax error in the DDL source
Figure 1: Displaying syntax error in the DDL source
Tip The DDL editor offers corrections to some problems found. In case of missing annotation, for example, you can take advantage from the quick fix for that specific error item.
Accessing quick fix in the Problems view using the context menu of the error item
Figure 2: Accessing quick fix in the Problems view using the context menu of the error item