星期三, 九月 01, 2010

ABAP Native SQL 里的Host Variables

Host Vairable翻译为宿主变量或者托管变量,似乎都可以.主要是通过冒号: 来表示的。其他用法和普通ABAP变量或其他structure,element等等一样。没什么区别。


Host variables are global or local variables declared in the ABAP program, or variables that are used in operand positions by native SQL statements. For identification purposes, the variable name has a colon (:) directly in front of it. Instead of specifying a variable itself, you can also specify a field symbol to which the variable is assigned. The specification of a dereferenced data reference variable is not possible.

You can use elementary fields and structures with elementary components as host variables. If a structure is listed in a native SQL statement after INTO, it is converted by the native SQL interface as if its components were listed as individual fields separated by commas.