ARTICLE
Locator , Copy Column
The example demonstrates how column content can be copied using
locators .
ABAP_SOURCE_CODE
ABAP_EXEC
ABAP_DESCRIPTION
In the main method, an
LOB handle structure is derived from the structure of the
DEMO_BLOB_TABLE database table , whereby
the PICTURE component is declared as an
LOB handle component for
a locator . This locator is then created in a SELECT
statement .
A new value is then assigned to the key field of the LOB handle
structure and the LOB handle structure is used as a work area in
an INSERT statement. In this way, the content of the column to
which the locator is connected is copied to the corresponding column of
the new row without the content
having to be transported to the ABAP program.
If you are accessing data which was previously written in the
example for write streams , this is the data
of a figure in the GIF format. By specifying the new name, the
copied figure can be displayed using the example
for read streams .
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved