SAP NAMES ESCAPING



Get Example source ABAP code based on a different SAP table
  


• ! ABAP_ESCAPE

!, Escape Character for Operands

ABAP_SYNTAX
... !operand ...

What does it do?
The character ! can be written directly before a name operand of a single operand in order to distinguish it from an ABAP word with the same notation in a statement. The escape character ! can be placed in front of a chaining, but it cannot be used in front of components that are addressed by a component selector .
With the exception of the first word of a statement that is introduced by a keyword, each word of a statement that is preceded by the escape character is interpreted as an operand, and not as an ABAP word during program generation. The escape character itself is not part of a name and is ignored when the statement is executed.



Latest notes:

The escape character ! may be required on rare occasions in which the compiler cannot tell the difference between an operand and a reserved word of the same name. Otherwise, it can be used for the documentation of operands in the source code.
The escape character ! must not be used in front of operators. For example, != cannot be specified instead of =.
NON_V5_HINTS
ABAP_HINT_END
BEGIN_SECTION VERSION 5 OUT



Example ABAP Coding

Without the escape character ! before CHANGING after USING, the following program extract would be syntactically incorrect , because a formal parameter must be entered after USING. Although the second escape character is not necessary, it is used to document USING after CHANGING as a formal parameter.
ABEXA 01142
ABAP_EXAMPLE_END
END_SECTION VERSION 5 OUT