Ansicht
Dokumentation

ABENPSEUDO_COMMENT_CI - PSEUDO COMMENT CI

ABENPSEUDO_COMMENT_CI - PSEUDO COMMENT CI

BAL_S_LOG - Application Log: Log header data   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

Pseudo Comments for Code Inspector

... "#EC CI_...

Effect

The character string "#EC behind a statement or a part of a statement followed by an abbreviation with the prefix CI_ defines a pseudo comment for the Code Inspector.

These pseudo comments can be used to hide certain warnings from the Code Inspector for the relevant statement. The possible abbreviations are documented with the Code Inspector or in the output of its messages.

Notes

  • Until now, only the pseudo comments for the Code Inspector have not been replaced by other language elements.
  • To hide multiple warnings from a statement with pseudo comments, the statement must be split into multiple lines.

Example

The following join expression bypasses table buffering, which raises a warning from the Code Inspector. However, if the SELECT statement is part of an application that buffers selected data itself, the warning can be hidden as shown here. An additional regular comment illustrates to the user why the pseudo comment is being used.

SELECT d~object, h~dokldate, h~dokltime   "#EC CI_BUFFJOIN
  FROM dokil AS d                         "Buffering is done
       INNER JOIN dokhl AS h              "by application
         ON h~id         = d~id     AND   "with Shared Objects
            h~object     = d~object AND
            h~typ        = d~typ    AND
            h~langu      = d~langu  AND
            h~dokversion = d~version
  WHERE d~id    ='SD'    AND
        d~typ   = 'E'    AND
        d~langu = @langu AND
        d~object LIKE 'AB%'
  INTO CORRESPONDING FIELDS OF TABLE docu_tab.






General Data in Customer Master   General Material Data  
This documentation is copyright by SAP AG.

Length: 3223 Date: 20240426 Time: 201315     sap01-206 ( 35 ms )