SAP PSEUDO COMMENT CI



Get Example source ABAP code based on a different SAP table
  


VERSION 5 OUT
• '#EC CI_ ABAP_PSEUDO_COMM

Pseudo Comments for Code Inspector

ABAP_SYNTAX
... '#EC CI_...

What does it do?
The character string ABAP_KEY '#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.



Latest 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.
ABAP_HINT_END



Example ABAP Coding

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.
ABAP_EXAMPLE_END