Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Declarations →  Declaration Statements →  Data Types and Data Objects →  Declaring Data Objects →  DATA 

DATA - LOB HANDLE

Quick Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


DATA dtype TYPE dbtab|view [READ-ONLY] 
                lob_handle_type FOR lob_handle_columns
               [ lob_handle_type FOR lob_handle_columns
                ...                                   ].

Effect

Derives a LOB handle structure as a work area for working with streaming and locators in ABAP SQL. dbtab expects a database table defined in ABAP Dictionary or a database view defined for view in ABAP Dictionary.

The specified columns lob_handle_columns are used to determine LOBs from dbtab or view for which LOB handle components are created in the structure. Their static type is determined using the specified type lob_handle_type.

The syntax and meaning of the additions are exactly the same as the definition of LOB handle structures using the corresponding variant of the statement TYPES.


Example

Declares work areas with LOB handle components for a writer stream and a reader stream for the column PICTURE and for locators for all LOBs in database table DEMO_BLOB_TABLE.

DATA wa1 TYPE demo_blob_table WRITER FOR COLUMNS picture. 
DATA wa2 TYPE demo_blob_table READER FOR COLUMNS picture. 
DATA wa3 TYPE demo_blob_table LOCATOR FOR ALL COLUMNS.