<?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: Zip files in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/zip-files/m-p/7363130#M1542054</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Example&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_OPEN_DIALOG
  CHANGING
    FILE_TABLE              = FILE_N_TAB
    RC                      = WA_INT



 CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_UPLOAD
     EXPORTING
       FILENAME                = FULL_PATH
       FILETYPE                = 'BIN'
    IMPORTING
      FILELENGTH              = FILE_LENGTH
    CHANGING
      DATA_TAB                = file_tab.


CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
  EXPORTING
    INPUT_LENGTH       = FILE_LENGTH
  IMPORTING
    BUFFER             = FILEX
  TABLES
    BINARY_TAB         = file_tab


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Nov 2010 09:41:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-04T09:41:07Z</dc:date>
    <item>
      <title>Zip files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/zip-files/m-p/7363129#M1542053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to zip some unicode  txt files that exist in the presentation server...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did the following steps.. but the final result was not good. Utf8 characters were not displaying well..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I load the file from server int an  HEX internal table&lt;/P&gt;&lt;P&gt;call function 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;     FILENAME                      = gfile2&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;    FILELENGTH                    = bytecount&lt;/P&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                      = hex_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) then i convert the hex_tab to XSTRING&lt;/P&gt;&lt;P&gt;call function 'SCMS_BINARY_TO_XSTRING'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      input_length = bytecount&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      buffer       = content_x&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      binary_tab   = hex_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)i do the zipping&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  call method g_zipper-&amp;gt;add&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      name    = file_name&lt;/P&gt;&lt;P&gt;      content = content_x.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  call method g_zipper-&amp;gt;save&lt;/P&gt;&lt;P&gt;    receiving&lt;/P&gt;&lt;P&gt;      zip = zip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4)i convert it again to binary and download it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"convert to table&lt;/P&gt;&lt;P&gt;  call function 'SCMS_XSTRING_TO_BINARY'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      buffer        = zip&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      output_length = bytecount&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      binary_tab    = hex_tab."file_tab.&lt;/P&gt;&lt;P&gt;  "Save the file&lt;/P&gt;&lt;P&gt;  call function 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;    " bin_filesize = ''&lt;/P&gt;&lt;P&gt;      filename     = gfile2&lt;/P&gt;&lt;P&gt;      filetype     = 'BIN'&lt;/P&gt;&lt;P&gt;     " CODEPAGE     = '4310'&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      data_tab     = hex_tab."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************************&lt;/P&gt;&lt;P&gt;but as i told you the  greek language does not shown ok... any ideas why ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 14:28:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/zip-files/m-p/7363129#M1542053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-03T14:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Zip files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/zip-files/m-p/7363130#M1542054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Example&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_OPEN_DIALOG
  CHANGING
    FILE_TABLE              = FILE_N_TAB
    RC                      = WA_INT



 CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_UPLOAD
     EXPORTING
       FILENAME                = FULL_PATH
       FILETYPE                = 'BIN'
    IMPORTING
      FILELENGTH              = FILE_LENGTH
    CHANGING
      DATA_TAB                = file_tab.


CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
  EXPORTING
    INPUT_LENGTH       = FILE_LENGTH
  IMPORTING
    BUFFER             = FILEX
  TABLES
    BINARY_TAB         = file_tab


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Nov 2010 09:41:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/zip-files/m-p/7363130#M1542054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-04T09:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Zip files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/zip-files/m-p/7363131#M1542055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function --&amp;gt;&lt;/P&gt;&lt;P&gt;SCMS_BINARY_TO_XSTRING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe doesnt take care of the greek characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any solution? - (or any work around?)&lt;/P&gt;&lt;P&gt;I apppreciate your help,&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Roxani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 08:08:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/zip-files/m-p/7363131#M1542055</guid>
      <dc:creator>former_member537489</dc:creator>
      <dc:date>2012-05-11T08:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Zip files</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/zip-files/m-p/7363132#M1542056</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 have specified a link below. Even though the question is unanswered, it has details about a class that reads Unicode data. Please try that and post furher for clarifications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/thread/981746"&gt;http://scn.sap.com/thread/981746&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Pranav. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/745/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 08:57:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/zip-files/m-p/7363132#M1542056</guid>
      <dc:creator>former_member222709</dc:creator>
      <dc:date>2012-05-11T08:57:07Z</dc:date>
    </item>
  </channel>
</rss>

