_DECOMPRESS_TEXT_STREAM SAP Method Kernel Method for Decompression









Below is documentation, parameters and attributes of ABAP Method _DECOMPRESS_TEXT_STREAM within SAP class CL_ABAP_UNGZIP_TEXT_STREAM. There is also a number of example ABAP code snipts to help you use the functionality of this method.

This is a private Method so can only be executed from within the class itself. I.e. You could access it from another method of the class.

This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name CL_ABAP_UNGZIP_TEXT_STREAM into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Instance

This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.

The following technical details of method _DECOMPRESS_TEXT_STREAM can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method _DECOMPRESS_TEXT_STREAM

.

NameTypeData TypeDescriptionDefault Value
CONVERSIONImportingTYPE
ABAP_ENCOD
Conversion to UTF8 (UC)
DS_INImportingTYPE
%_C_POINTER
Decompress Handle
GZIP_INImportingTYPE
XSEQUENCE
Input (Compressed Text)
GZIP_IN_LENImportingTYPE
I
Input Length
STREAM_ENDImportingTYPE
ABAP_BOOL
End of Input
TEXT_OUT_FILLImportingTYPE
I
Fill Level of Output
CHAR_BUFExportingTYPE
CSEQUENCE
Character Buffer
CHAR_BUF_FILLExportingTYPE
I
Fill Level of Character Buffer
MOJIBAKEExportingTYPE
XSEQUENCE
Mojibake Buffer
MOJIBAKE_FILLExportingTYPE
I
Fill Level of Mojibake Buffer
TEXT_OUTExportingTYPE
CSEQUENCE
Decompressed Output
TEXT_OUT_LENExportingTYPE
I
Output Length
GZIP_IN_OFFChangingTYPE
I



Exceptions of Method _DECOMPRESS_TEXT_STREAM

CHAR_BUFExportingTYPE
CSEQUENCECharacter BufferCHAR_BUF_FILLExportingTYPE
IFill Level of Character BufferMOJIBAKEExportingTYPE
XSEQUENCEMojibake BufferMOJIBAKE_FILLExportingTYPE
IFill Level of Mojibake BufferTEXT_OUTExportingTYPE
CSEQUENCEDecompressed OutputTEXT_OUT_LENExportingTYPE
IOutput LengthCX_SY_CONVERSION_CODEPAGE - System exception in character set conversion

Example ABAP coding

This is a private Method so the below code can only be executed from within the class itself. I.e. from another method of the class.

DATA: lo_class TYPE REF TO CL_ABAP_UNGZIP_TEXT_STREAM.
DATA: lv_CHAR_BUF TYPE CSEQUENCE,
lv_CHAR_BUF_FILL TYPE I,
lv_CONVERSION TYPE ABAP_ENCOD,
lv_DS_IN TYPE %_C_POINTER,
lv_GZIP_IN TYPE XSEQUENCE,
lv_GZIP_IN_LEN TYPE I,
lv_MOJIBAKE TYPE XSEQUENCE,
lv_MOJIBAKE_FILL TYPE I,
lv_STREAM_END TYPE ABAP_BOOL,
lv_TEXT_OUT TYPE CSEQUENCE,
lv_TEXT_OUT_FILL TYPE I,
lv_TEXT_OUT_LEN TYPE I,
lv_GZIP_IN_OFF TYPE I,
lv_other TYPE c.

CALL METHOD lo_class=>_DECOMPRESS_TEXT_STREAM(
EXPORTING
CONVERSION = lv_CONVERSION
DS_IN = lv_DS_IN
GZIP_IN = lv_GZIP_IN
GZIP_IN_LEN = lv_GZIP_IN_LEN
STREAM_END = lv_STREAM_END
TEXT_OUT_FILL = lv_TEXT_OUT_FILL
IMPORTING
CHAR_BUF = lv_CHAR_BUF
CHAR_BUF_FILL = lv_CHAR_BUF_FILL
MOJIBAKE = lv_MOJIBAKE
MOJIBAKE_FILL = lv_MOJIBAKE_FILL
TEXT_OUT = lv_TEXT_OUT
TEXT_OUT_LEN = lv_TEXT_OUT_LEN
CHANGING
GZIP_IN_OFF = lv_GZIP_IN_OFF ).

Links to Related Class(s)

CL_ABAP_...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!