<?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: Implement CL_ABAP_GZIP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/implement-cl-abap-gzip/m-p/1436674#M208114</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="40941"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shashi Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jun 2006 03:28:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-28T03:28:21Z</dc:date>
    <item>
      <title>Implement CL_ABAP_GZIP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implement-cl-abap-gzip/m-p/1436673#M208113</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 know this is not a new topic in this Forum but there is no node which shows how it is implemented. I need help on how to use this class to ZIP a file and output to Local Workstation. The source data is from a SAP table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone could help me on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 03:03:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implement-cl-abap-gzip/m-p/1436673#M208113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T03:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Implement CL_ABAP_GZIP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implement-cl-abap-gzip/m-p/1436674#M208114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="40941"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shashi Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 03:28:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implement-cl-abap-gzip/m-p/1436674#M208114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T03:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Implement CL_ABAP_GZIP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implement-cl-abap-gzip/m-p/1436675#M208115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmm.. doesn't seems to be what I'm actually looking for. i have code some sample here &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  ZCOMPRESS.

TABLES : VBAP.

DATA : BEGIN OF XTAB OCCURS 0,
         VBELN(10)   TYPE C,  SP01(1)  TYPE C,
         POSNR(10)   TYPE C,
       END OF XTAB.

*-- Here is the constant for TAB
CLASS CL_ABAP_CHAR_UTILITIES DEFINITION LOAD.
CONSTANTS: C_CON_TAB TYPE C VALUE
           CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB.

SELECT * FROM VBAP UP TO 1000000 ROWS.
  MOVE-CORRESPONDING VBAP TO XTAB.
  MOVE C_CON_TAB          TO XTAB-SP01.
  APPEND XTAB.  CLEAR : XTAB.
ENDSELECT.

*-- Download FM
*-- Here the file (Test-raw.txt) is the raw un-compress
*-- version

*-- I need to output it as a zip file ?

CALL FUNCTION 'GUI_DOWNLOAD'
  EXPORTING
    FILENAME                = 'D:TempTest-raw.txt'
    FILETYPE                = 'ASC'
  TABLES
    DATA_TAB                = XTAB
  EXCEPTIONS
    FILE_OPEN_ERROR         = 1
    FILE_READ_ERROR         = 2
    NO_BATCH                = 3
    GUI_REFUSE_FILETRANSFER = 4
    INVALID_TYPE            = 5
    NO_AUTHORITY            = 6
    UNKNOWN_ERROR           = 7
    BAD_DATA_FORMAT         = 8
    HEADER_NOT_ALLOWED      = 9
    SEPARATOR_NOT_ALLOWED   = 10
    HEADER_TOO_LONG         = 11
    UNKNOWN_DP_ERROR        = 12
    ACCESS_DENIED           = 13
    DP_OUT_OF_MEMORY        = 14
    DISK_FULL               = 15
    DP_TIMEOUT              = 16
    OTHERS                  = 17.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the downloaded file to be a compressed zip file. Any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 07:00:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implement-cl-abap-gzip/m-p/1436675#M208115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T07:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Implement CL_ABAP_GZIP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implement-cl-abap-gzip/m-p/1436676#M208116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for the zip question you have an example in SDN:&lt;/P&gt;&lt;P&gt;- download area&lt;/P&gt;&lt;P&gt;- code sample&lt;/P&gt;&lt;P&gt;- Technologies&lt;/P&gt;&lt;P&gt;- ABAP code samples&lt;/P&gt;&lt;P&gt;The name of the document is:&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;"Abap class to gzip and gunzip.pdf"&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;as for the FTP have a look at sap standard program:&lt;/P&gt;&lt;P&gt;RSFTP002&lt;/P&gt;&lt;P&gt;if not u can check this link u may get some idea&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="13644"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1273206"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 07:04:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implement-cl-abap-gzip/m-p/1436676#M208116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T07:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Implement CL_ABAP_GZIP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implement-cl-abap-gzip/m-p/1436677#M208117</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;Downloading a file can be doen via this kind of code&lt;/P&gt;&lt;P&gt;call method CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_DOWNLOAD&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;FILENAME = p_filename&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;DATA_TAB = p_table&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;FILE_WRITE_ERROR = 1&lt;/P&gt;&lt;P&gt;NO_BATCH = 2&lt;/P&gt;&lt;P&gt;GUI_REFUSE_FILETRANSFER = 3&lt;/P&gt;&lt;P&gt;INVALID_TYPE = 4&lt;/P&gt;&lt;P&gt;NO_AUTHORITY = 5&lt;/P&gt;&lt;P&gt;UNKNOWN_ERROR = 6&lt;/P&gt;&lt;P&gt;HEADER_NOT_ALLOWED = 7&lt;/P&gt;&lt;P&gt;SEPARATOR_NOT_ALLOWED = 8&lt;/P&gt;&lt;P&gt;FILESIZE_NOT_ALLOWED = 9&lt;/P&gt;&lt;P&gt;HEADER_TOO_LONG = 10&lt;/P&gt;&lt;P&gt;DP_ERROR_CREATE = 11&lt;/P&gt;&lt;P&gt;DP_ERROR_SEND = 12&lt;/P&gt;&lt;P&gt;DP_ERROR_WRITE = 13&lt;/P&gt;&lt;P&gt;UNKNOWN_DP_ERROR = 14&lt;/P&gt;&lt;P&gt;ACCESS_DENIED = 15&lt;/P&gt;&lt;P&gt;DP_OUT_OF_MEMORY = 16&lt;/P&gt;&lt;P&gt;DISK_FULL = 17&lt;/P&gt;&lt;P&gt;DP_TIMEOUT = 18&lt;/P&gt;&lt;P&gt;FILE_NOT_FOUND = 19&lt;/P&gt;&lt;P&gt;DATAPROVIDER_EXCEPTION = 20&lt;/P&gt;&lt;P&gt;CONTROL_FLUSH_ERROR = 21&lt;/P&gt;&lt;P&gt;NOT_SUPPORTED_BY_GUI = 22&lt;/P&gt;&lt;P&gt;ERROR_NO_GUI = 23&lt;/P&gt;&lt;P&gt;others = 24.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eddy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. &lt;/P&gt;&lt;P&gt;Did you (and your colleagues) put yourself on the SDN world map already? Pls check &lt;/P&gt;&lt;P&gt;/people/eddy.declercq/blog/2006/06/14/from-the-grumpy-old-man-hoy-en-el-mundo&lt;/P&gt;&lt;P&gt;for detai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 07:09:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implement-cl-abap-gzip/m-p/1436677#M208117</guid>
      <dc:creator>eddy_declercq</dc:creator>
      <dc:date>2006-06-28T07:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Implement CL_ABAP_GZIP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implement-cl-abap-gzip/m-p/1436678#M208118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi kishan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've actually visited both the thread but none can actually help in my case. As for the PDF document, I can't seems to locate it from the 2 thread you've sent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt; -ah tiang-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 07:57:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implement-cl-abap-gzip/m-p/1436678#M208118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T07:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Implement CL_ABAP_GZIP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implement-cl-abap-gzip/m-p/1436679#M208119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi eddy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your effort here but I need to ZIP up the file before downloading it. The download function module is working fine but what I need is to implement the CL_ABAP_GZIP to zip the download file before downloading it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you and regards;&lt;/P&gt;&lt;P&gt; - ah tiang -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 07:59:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implement-cl-abap-gzip/m-p/1436679#M208119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T07:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Implement CL_ABAP_GZIP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implement-cl-abap-gzip/m-p/1436680#M208120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just check  one  more...&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1330557"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 08:14:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implement-cl-abap-gzip/m-p/1436680#M208120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T08:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Implement CL_ABAP_GZIP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implement-cl-abap-gzip/m-p/1436681#M208121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wow... this guy is creating his own class for the zip function. not sure if i need to create this entire class to have the job done, but if yes then i have to study his coding 1 by 1. hmm... anyone who has done this kind of task before please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyway thanks a lot kishan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 08:40:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implement-cl-abap-gzip/m-p/1436681#M208121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T08:40:17Z</dc:date>
    </item>
  </channel>
</rss>

