Show TOC Entering content frame

Function documentation Checking a Program Locate the document in its SAP Library structure

Use

You use this function to check programs in the ABAP Editor. Different checks include different parts of the program.

Features

Function

Description

Syntax check

The contents of the editor and the TOP include (if there is one) are checked for syntactical and semantic errors. It does not check any other includes.

To start the syntax check

·        If the program is currently displayed in the ABAP Editor, choose This graphic is explained in the accompanying text with the quick info text Check from the application toolbar.

·        Select the relevant program in the object list and choose Check ® Syntax from the context menu.

 

Main program check

The system checks the syntax of the whole program and all of its includes.

To start the check, select the main program in the object list and choose Program ® Check ® Main program.

Extended program check

The system checks the entire program and allows you to run additional static checks, which are too time consuming for the normal syntax check.

See also: Extended Program Check.

Activities

In the Syntax and Main program checks, the system displays error messages in a separate pane as soon as they occur. The pane has the following fields:

Description

Row

Type

Description of the error

Number of the row where the error occurred

Type of error. Possible variants:

Red light: Error

Yellow light: Warning

If your program has no errors you can save and activate it.

If the system finds errors in your program, you can do the following:

·        Display the error: choose This graphic is explained in the accompanying text with the quick info text Display from the pane under your source code.

·        Edit the error: choose This graphic is explained in the accompanying text with the quick info text Change from the pane under your source code

·        Auto-correct the error: choose This graphic is explained in the accompanying text with the quick info text Change and the system will automatically correct the error.

·        In case of warnings, you can change your source code accordingly but you can also ignore them.

After your program is checked, you can save and activate it.

Note

The syntax check does not stop at warnings and the program is basically executable. However, syntax warnings should be taken care of because they may lead to unexpected errors. For more information, see Errors and Warnings.

See also:

Extended Program Check

 

Leaving content frame