Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Obsolete Language Elements →  Obsolete Processing of External Data →  Obsolete Database Access →  Obsolete ABAP SQL →  Obsolete Syntax in ABAP SQL 

Obsolete Host Variables

The host variables of an ABAP 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.

SELECT *
       FROM spfli
       INTO TABLE itab
       WHERE carrid = carrid AND
             connid = connid.

Recommended spelling with escape character in front of named ABAP data objects.

SELECT *
       FROM spfli
       WHERE carrid = @carrid AND
             connid = @connid
       INTO TABLE @itab.