sapdev logo background
sapdev logo sapdev logo
Comments

SAP PSEUDO COMMENT SLIN documentation, setup help and example usage



Return to SAP documentation index


ARTICLE

Pseudo Comments for the Extended Program Check

Obsolete Syntax
... "#EC ...

Effect
The string ABAP_KEY "#EC after a statement or a part of a statement that follows a particular ID defines the subsequent content of the line as a pseudo comment for the extended program check .
The possible IDs are document in the extended program check or in its results. The pseudo comments can be used to hide certain warnings from the extended program check for a particular statement.

Notes
  • When pragmas were introduced, appropriate pragmas (

  • ##... ) were implemented for all "#EC... pseudo comments; these pragmas should be used instead of the pseudo comments. This makes the pseduo comments obsolete for the extended program check. The program
    ABAP_SLIN_PRAGMAS shows which pragmas are to be used instead of the obsolete pseudo comments.
  • Do not use the pseudo comment #EC * in programs that use pragmas to deactivate warnings. This causes an extended program check warning that cannot be deactivated. The same applies to the statement SET EXTENDED CHECK .

  • To hide multiple warnings from a statement with pseudo comments, the statement must be spread across multiple lines.

  • If the ID specified after "#EC has the prefix "CI_", it is a pseudo comment for the Code Inspector

  • . These pseudo comments have not yet been replaced by pragmas.

    Example
    The pseudo comment "#EC NEEDED suppresses the message of the extended program check that tells the user that there is no read access to a .
    DATA: a TYPE string, "#EC NEEDED
    b TYPE string.
    a = b.
    The following source code section shows how the pseudo comment can be replaced by a pragma .
    DATA: a TYPE string ##needed,
    b TYPE string.
    a = b.
    Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




    PSEUDO_COMMENT_GLOSRY
    PSEUDO_COMMENT_TEST_CLASS




    comments powered by Disqus