Ansicht
Dokumentation

ABAPEXPORT_DATA_CLUSTER - EXPORT DATA CLUSTER

ABAPEXPORT_DATA_CLUSTER - EXPORT DATA CLUSTER

Addresses (Business Address Services)   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

EXPORT

Short Reference



EXPORT parameter_list TO medium $[COMPRESSION ${ON$|OFF$}$].

Addition:

... COMPRESSION ${ON$|OFF$}

Effect

This statement stores a data cluster defined using parameter_list in a memory medium medium. The addition COMPRESSION can be used to control whether the data is stored in the cluster in compressed form. A data cluster can be read from the memory medium using the statement IMPORT and deleted using DELETE FROM.

All data objects are archived according to the current byte order (endian) and character-like data objects according to the character format of the current text environment. The ID of the data cluster indicates which byte order and character format have been used during the export. When the data cluster is imported using the IMPORT statement, this ID is evaluated, and the data is converted to the current byte order and character representation.

A data cluster can have a maximum of 2 GB. Any attempts to export more than 2 GB raise a catchable exception of the class CX_SY_COMPRESSION_ERROR. If a different resource bottleneck occurs earlier, however, its related exception can be raised first.

Note

See also Classes for Data Clusters.

Example

Export of an internal table to a suitable DDIC database table DEMO_INDX_BLOB and import of the content from the data cluster to another internal table.

Addition

... COMPRESSION ${ON$|OFF$}

Effect

This addition determines whether the data in the data cluster is compressed. By default, compression is deactivated for all memory media medium, except database tables. If compression is required, it must be switched on using ON. If stored in a database table, compression is switched on by default and is only switched off if OFF is specified.

Notes

  • When a data cluster is imported using IMPORT, the system automatically recognizes whether or not the data is compressed.
  • Compression saves space, but it is more time-consuming.

Example

Export of the compressed result of an XML serialization of an object to the ABAP memory and then importing it.

Example

The program DEMO_DATA_CLUSTER demonstrates how the size of the data cluster is affected by a compression.






General Material Data   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 4348 Date: 20240329 Time: 145448     sap01-206 ( 69 ms )