<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: cl_abap_zip getting dump DECOMPRESS_BINARY in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-abap-zip-getting-dump-decompress-binary/m-p/6243314#M1382477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi,
Try to check these links 
&amp;lt;li&amp;gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3566911"&gt;&lt;/A&gt;

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Oct 2009 02:52:27 GMT</pubDate>
    <dc:creator>venkat_o</dc:creator>
    <dc:date>2009-10-07T02:52:27Z</dc:date>
    <item>
      <title>cl_abap_zip getting dump DECOMPRESS_BINARY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-abap-zip-getting-dump-decompress-binary/m-p/6243313#M1382476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using cl_abap_zip get method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lo_zip-&amp;gt;get( EXPORTING name = ls_splice-name&lt;/P&gt;&lt;P&gt;                 IMPORTING content = lv_spliced_content&lt;/P&gt;&lt;P&gt;                 EXCEPTIONS zip_index_error = 1&lt;/P&gt;&lt;P&gt;                            zip_decompression_error = 2 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am getting dump when i use this method.Some zip files are working great but some of not decompressed and get dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could not find any OSS note about this issue.DECOMPRESS_BINARY is a kernel function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;error message is :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;An exception occurred that is explained in detail below.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The exception, which is assigned to class 'CX_SY_COMPRESSION_ERROR', was not&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;caught in&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;procedure "DECOMPRESS_BINARY" "(METHOD)", nor was it propagated by a RAISING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;clause.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Since the caller of the procedure could not have anticipated that the&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;exception would occur, the current program is terminated.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The reason for the exception is:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The function IctDecompressStream returns the return code 30&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do u have any solution to this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 02:12:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-abap-zip-getting-dump-decompress-binary/m-p/6243313#M1382476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-07T02:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: cl_abap_zip getting dump DECOMPRESS_BINARY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-abap-zip-getting-dump-decompress-binary/m-p/6243314#M1382477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi,
Try to check these links 
&amp;lt;li&amp;gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3566911"&gt;&lt;/A&gt;

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 02:52:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-abap-zip-getting-dump-decompress-binary/m-p/6243314#M1382477</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-10-07T02:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: cl_abap_zip getting dump DECOMPRESS_BINARY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-abap-zip-getting-dump-decompress-binary/m-p/6243315#M1382478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SAP does not support winzip files , what should we use then?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 07:27:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-abap-zip-getting-dump-decompress-binary/m-p/6243315#M1382478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-07T07:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: cl_abap_zip getting dump DECOMPRESS_BINARY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-abap-zip-getting-dump-decompress-binary/m-p/6243316#M1382479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Here's a program to decrompress a zip file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  YFPZ0008.

TYPES:
t_xline(2048) TYPE x, "BINARY FILES

BEGIN OF t_line,
line(1024) TYPE c,
END OF t_line. "CONTENT

DATA:
size type i.

DATA:
data_tab TYPE STANDARD TABLE OF t_xline,
text_tab TYPE STANDARD TABLE OF t_line.

DATA:
input_x type xstring, "BINARY CONTENT INPUT
output_x type xstring. "BINARY OUTPUT OUTPUT


data : CL_ZIP type ref to CL_ABAP_ZIP .

DATA files LIKE LINE OF  cl_abap_zip=&amp;gt;files.

DATA:
name type string.

  PARAMETER:
    p_file TYPE string.

  PARAMETER:
    p_output TYPE string.

CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_UPLOAD
EXPORTING
FILENAME = p_file
FILETYPE = 'BIN'
IMPORTING
FILELENGTH = size
CHANGING
DATA_TAB = data_tab.


CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
EXPORTING
INPUT_LENGTH = size
IMPORTING
BUFFER = input_x
TABLES
BINARY_TAB = data_tab.

CREATE OBJECT cl_zip.

CALL METHOD cl_zip-&amp;gt;load(
EXPORTING
zip = input_x
).


LOOP AT cl_zip-&amp;gt;files INTO files.

CLEAR output_x.
MOVE files-name TO name.
cl_zip-&amp;gt;GET(
EXPORTING
NAME = name " Example.txt (file in the zip file)
IMPORTING
CONTENT = output_x
)
.

REFRESH data_tab.

CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
BUFFER = output_x
IMPORTING
OUTPUT_LENGTH = size
TABLES
BINARY_TAB = data_tab
.
CALL FUNCTION 'SCMS_BINARY_TO_TEXT'
EXPORTING
INPUT_LENGTH = size
TABLES
BINARY_TAB = data_tab
TEXT_TAB = text_tab
.
CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_DOWNLOAD
EXPORTING
BIN_FILESIZE = size
FILENAME = p_output
FILETYPE = 'BIN'
CHANGING
DATA_TAB = data_tab&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 18:19:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-abap-zip-getting-dump-decompress-binary/m-p/6243316#M1382479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-16T18:19:43Z</dc:date>
    </item>
  </channel>
</rss>

