ABAP Keyword Documentation → ABAP − Reference → Declarations → Declaration Statements → Data Types and Data Objects → Declaring Data Types → TYPES → TYPES - LOB HANDLE
TYPES - lob_handle_type
Other versions: 7.31 | 7.40 | 7.54
Syntax
... { READER|LOCATOR|{LOB HANDLE} }
| { WRITER|LOCATOR } ...
Effect
These additions define the static type of the LOB handle components when deriving a
LOB
handle structure using the statement TYPES
.
-
The addition
READER
defines the following:
- The static type CL_ABAP_DB_X_READER for BLOBs
- The static type CL_ABAP_DB_C_READER for CLOBs
-
The addition
WRITER
defines the following:
- The static type CL_ABAP_DB_X_WRITER for BLOBs
- The static type CL_ABAP_DB_C_WRITER for CLOBs
-
The addition
LOCATOR
defines the following:
- The static type CL_ABAP_DB_X_LOCATOR for BLOBs
- The static type CL_ABAP_DB_C_LOCATOR for CLOBs
-
The addition
LOB HANDLE
defines the following:
- The static type IF_ABAP_DB_BLOB_HANDLE for BLOBs
- The static type IF_ABAP_DB_CLOB_HANDLE for CLOBs
The additions READER
and WRITER
cannot be used
together in the statement TYPES
. Furthermore, WRITER
cannot be used with LOB HANDLE
.
The combination options with the columns
lob_handle_columns, when specified, are explained in the statement TYPES
.
Example
Definition of various LOB-Handle components for the individual columns of a database table DEMO_LOB_TABLE.
TYPES lob_handle TYPE demo_lob_table
READER FOR COLUMNS blob1
LOCATOR FOR COLUMNS blob2
LOB HANDLE FOR COLUMNS blob3.