cancel
Showing results for 
Search instead for 
Did you mean: 

To avoid dump while converting Hexadecimal to String using cl_abap_gzip=>decompress_binary

Former Member
0 Kudos

Hi all,

I am using class cl_abap_gzip=>decompress_binary for while converting Hex to String,

but getting dump saying as below,

This exception, which is assigned to class 'CX_BSP_WD_EXC_WRAPPER'

within a CLEANUP block, but was not caught there. Since the CLEANUP block...

The occurrence of the exception is closely related to the occurrence of
a previous exception "CX_SY_COMPRESSION_ERROR", which was raised in the program
  "CL_ABAP_GZIP==================CP",
specifically in line 2 of the (include) program
  "CL_ABAP_GZIP==================CM003".
The cause of the exception was:

The function IctDecompressStream returns the return code 30

If you have access to SAP Notes, carry out a search with the following
keywords:

"UNCAUGHT_EXCEPTION" "CX_BSP_WD_EXC_WRAPPER"
"CL_BSP_WD_ERROR_PAGE_WRITER===CP" or "CL_BSP_WD_ERROR_PAGE_WRITER===CM002"
"WRITE_ERROR_PAGE"

How to catch this error using try & catch,

I tried as below, but no use...

   ***converting hexa to binary
    TRY.
        CALL METHOD cl_abap_gzip=>decompress_binary
          EXPORTING
            gzip_in     = temp_xstring
*           GZIP_IN_LEN = -1
          IMPORTING
            raw_out     = temp_xstring
*           RAW_OUT_LEN =
          .
      CATCH cx_parameter_invalid_range .
      CATCH cx_sy_buffer_overflow .
      CATCH cx_sy_compression_error.
        CATCH  cx_bsp_wd_exc_wrapper.

    ENDTRY.

Thanks,

Vjm

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi Vjm ,

You can try FM scms_xstring_to_binary for converting hexa data to binary format.

You can use CX_ROOT exception to catch all types of exceptions .

Regards,

Nithish

Former Member
0 Kudos

Hi Nitish,

actually my data was in compressed format (Rawstring), so I need to use the ZIP class,

CX_ROOT is worked...

Thanks a lot...

Answers (0)