SAP EXPORT DATA CLUSTER ABAP Statements



Get Example source ABAP code based on a different SAP table
  


ID EXPORT
• EXPORT cluster ABAP Statement
• TO EXPORT cluster

EXPORT
Short Reference

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

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

What does it do?
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.



Latest notes:

NON_V5_HINTS
See also Classes for Data Clusters.
ABAP_HINT_END

ABAP_EXAMPLE_VX
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.
ABEXA 00250
ABAP_EXAMPLE_END

ABAP_EXAMPLE_V5
Export of an internal table to a byte string buffer and import of the content to another internal table.
ABEXA 01631
ABAP_EXAMPLE_END
• COMPRESSION ON EXPORT cluster
• COMPRESSION OFF EXPORT cluster

ABAP Addition

What does it do?
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.



Latest 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.
NON_V5_HINTS
ABAP_HINT_END

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

ABAP_EXAMPLE_V5
Export of the compressed result of an XML serialization of an object to a byte string and then importing it.
ABEXA 01632
ABAP_EXAMPLE_END
BEGIN_SECTION VERSION 5 OUT



Example ABAP Coding

The program DEMO_DATA_CLUSTER demonstrates how the size of the data cluster is affected by a compression.
ABAP_EXAMPLE_END
END_SECTION VERSION 5 OUT

Return to menu