Show TOC

 Errors and WarningsLocate this document in the navigation structure

Use

You use this function to analyze the errors and warnings returned by the system during the standard and the extended program check of ABAP code.

Features

Syntax Errors (Red Light)

When you have an error in your program, the check stops and returns an error message. In many cases the system offers a possible correction of the error.

You can activate a program that has syntax errors but you cannot generate and execute it. Syntax errors are regarded as fatal by the extended program check and it is obligatory to remove them.

Syntax warnings (Yellow Light)

The syntax check does not stop at warnings and the program is basically executable. Syntax warnings should be taken care of because they may lead to unexpected errors.

The different types of warnings look the same in the syntax check tool but they have different priorities.

TODO-relevant warnings

These warnings are subdivided into three different priority levels which are linked to the internal SAP TODO checks.

  1. Priority 1

    These are warnings known to lead to a program crash. The category also includes all constructs that should not be used because they lead to program errors and semantically incorrect behavior.

  2. Priority 2

    This category refers to constructs that do not necessarily lead to errors but are, for example, obsolete and can be replaced by up-to-date constructs. Priority 2 errors may lead to priority 1 errors or syntax errors in future releases.

  3. Priority 3

    It is recommended to remove these errors when possible. They may lead to an escalation in priority in future releases.

Warnings without TODO relevance

These warnings do not have a TODO relevance but point to questionable language constructs which may lead to TODO-relevant errors.

Warnings in the extended program check

There are two more classes of syntax warnings which are displayed only during the extended program check (SLIN). They are:

  • SLIN Warnings

    Similar to the other warnings, but they are displayed only in the extended syntax check.

  • SLIN Infos

    SLIN Infos point to possible (semantic) program errors. According to the situation, the program should be changed or the messages should be switched off.

    Note

    Only the SLIN messages of this category can be switched off by means of special comments.