ABAP Keyword Documentation → ABAP - Reference → Obsolete Language Elements → Obsolete Processing of External Data → Obsolete Database Access → Obsolete Syntax Forms in Open SQL
Obsolete Host Variables
The host variables of an Open SQL statement can still be specified without the escape character @
, unless one of the
strict modes of the syntax check from Release
7.40, SP05 is used. This format is obsolete. The escape character @
must always be specified to distinguish ABAP data objects clearly from names in the database.
Other versions:
7.31 | 7.40 | 7.54
Example
SELECT
statement without escape character in front of named ABAP data objects.
FROM spfli
INTO TABLE itab
WHERE carrid = carrid AND
connid = connid.
Recommended spelling with escape character in front of named ABAP data objects.
FROM spfli
WHERE carrid = @carrid AND
connid = @connid
INTO TABLE @itab.