ABAP Keyword Documentation → ABAP − Reference → Declarations → Declaration Statements → Data Types and Data Objects → Declaring Data Types → TYPES → TYPES - LOB HANDLE
TYPES - lob_handle_columns
Other versions: 7.31 | 7.40 | 7.54
Syntax
... { COLUMNS blob1 blob2 ... clob1 clob2 ... }
| { ALL [OTHER] [BLOB|CLOB] COLUMNS } ...
Effect
These additions define which columns of the database table or the view dbtab
are declared as
LOB handle components when deriving a
LOB
handle structure using the statement TYPES
.
-
COLUMNS blob1 blob2 ... clob1 clob2 ...
specifies individual BLOBsblob1
,blob2
, ... or CLOBsclob1
,clob2
, ... These must exist indbtab
. -
ALL OTHER BLOB|CLOB COLUMNS
This specifies all BLOBs or CLOBs indbtab
that are not covered when individual columns are specified. In the statementTYPES
, at least one individual columnblob
orclob
must be specified usingCOLUMNS ...
-
ALL BLOB|CLOB COLUMNS
specifies all BLOBs or CLOBs ofdbtab
. -
ALL OTHER COLUMNS
This specifies all LOBs indbtab
that are not covered when individual columns are specified. In the statementTYPES
, at least one individual column must be specified usingCOLUMNS ...
-
ALL COLUMNS
This specifies all LOBs indbtab
.
No other columns can be specified in the statement TYPES
after columns specified using ALL OTHER ...
The different ways in which columns can be combined with each other and with the types specified using
lob_handle_type
are explained in the statement TYPES
.
Example
Demonstration of various specified columns in the definition of LOB-Handle components.
TYPES lob_handle TYPE demo_lob_table
READER FOR COLUMNS clob1 clob2
LOB HANDLE FOR ALL BLOB COLUMNS
LOCATOR FOR ALL OTHER CLOB COLUMNS.