Ansicht
Dokumentation

ABAPEXEC_HOST - EXEC HOST

ABAPEXEC_HOST - EXEC HOST

BAL_S_LOG - Application Log: Log header data   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

- Host Variables

... :dobj ...

Effect

Host variables are global or local data objects (usually variables) declared in the ABAP program that are used in operand positions of embedded Native SQL statements. Named data objects can be identified by an escape character (a colon :) placed in front of the names of the data objects. Instead of the data object itself, a field symbol to which the data object is assigned can also be specified. Dereferenced data reference variables cannot be specified. Depending on the operand position, the data objects can be variables or constants. Constant host variables are host constants.

Usually, only flat elementary fields and flat structures with elementary components can be used as host variables. If a structure is specified after the INTO clause by Native SQL, it is transformed by the Native SQL interface as if its components were specified as individual fields separated by commas.

In assignments between host variables and fields in database tables, a mapping takes place between the ABAP types and the database types. The ABAP types must match the database types. If they do not match, conversions must be made in the Native SQL interface. These conversions are platform-dependent and can raise exceptions.

Notes

  • When passed to a host variable, a null value is transformed to its type-dependent initial value.
  • The indicator variables provided in the SQL standard, which can be specified after an operand to identify null values, can be specified in static Native SQL using a host variable that has to be of an external data type INT2.
  • As it is common in ABAP, trailing blanks are truncated in text field host variables.

Example

Like the example for literals. Here, the row to be read is specified using host variables.










Vendor Master (General Section)   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 3340 Date: 20240416 Time: 114125     sap01-206 ( 55 ms )