ABAP Keyword Documentation → ABAP − Reference → Processing Internal Data → Character String and Byte String Processing → System Classes for Character String and Byte String Processing
Class for Compressing Character Strings and Byte Strings
These classes offer a range of methods that enable text in text fields or text strings, or binary data in byte fields or byte strings to be compressed or decompressed using GZIP.
- CL_ABAP_GZIP
- CL_ABAP_GZIP_BINARY_STREAM
- CL_ABAP_GZIP_TEXT_STREAM
- CL_ABAP_UNGZIP_BINARY_STREAM
- CL_ABAP_UNGZIP_TEXT_STREAM
For more information, see the individual classes and methods.
Other versions: 7.31 | 7.40 | 7.54
Example
Compression and decompression of text.
DATA zip TYPE xstring.
cl_abap_gzip=>compress_text(
EXPORTING text_in = `Hello!`
IMPORTING gzip_out = zip ).
DATA txt TYPE string.
cl_abap_gzip=>decompress_text(
EXPORTING gzip_in = zip
IMPORTING text_out = txt ).
ASSERT txt = `Hello!`.