Show TOC

 Checking a ProgramLocate this document in the navigation 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. The system does not check any other includes.

To start the syntax check:

  • If the program is currently displayed in the ABAP Editor, choose  with the quick info text Check from the application toolbar.
  • Select the relevant program in the object list and in the context menu of the program, choose Check → Syntax.
Master 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 → Master 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.

ABAP Test Cockpit (ATC)

The ABAP Test Cockpit (ATC) is a tool for doing static and dynamic quality checking of ABAP code and associated repository objects. The checks are only executed for the selected master programm.

To start the ATC check, choose Program → Check → ABAP Test Cockpit (ATC).

See also: Quality Checking with the ABAP Test Cockpit

Package check

The package check covers the static relationships between repository objects as well as the syntax of an ABAP program.

To start the package check, choose Program → Check → Package Check.

See also: Performing a Package Check

Activities

In the Syntax and Master 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:

  • Displaythe error: Choose  with the quick info text Display from the pane under your source code.
  • Edit theerror: Choose  with the quick info text Change from the pane under your source code
  • Auto-correct the error: Choose  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.