SAP ABAP SQL HOSTVAR - Obsolete



Get Example source ABAP code based on a different SAP table
  



Obsolete Host Variables
The host variables of an AB_SQL statement can still be specified without the escape character @, unless one of the strict modes of the syntax check from ABAP_RELEASE ABAP_740_SP05 is in effect. This specification is obsolete. The escape character @ must always be specified to distinguish ABAP data objects clearly from names in the database.



Example ABAP Coding

SELECT statement without an escape character in front of named ABAP data objects. SELECT *
FROM spfli
INTO TABLE itab
WHERE carrid = carrid AND
connid = connid.
Recommended spelling with an escape character in front of named ABAP data objects. SELECT *
FROM spfli
WHERE carrid = @carrid AND
connid = @connid
INTO TABLE @itab.
ABAP_EXAMPLE_END