Get Example source ABAP code based on a different SAP table
AB_SQL - Locator, Copy Column The example demonstrates how column content can be copied using locators>.
ABAP_SOURCE_CODE DEMO CL_DEMO_DB_COPY
ABAP_DESCRIPTION The method main> derives> an LOB handle structure> from the structure of the DDIC database table DEMO_BLOB_TABLE>, where the component PICTURE> 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. As a result, the content of the column to which the locator is linked is copied> to the corresponding column of the new row without the content having to be transported to the ABAP class. If data previously written in the executable writer stream example> is read, 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 reader streams>.