<?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 Downloading file from application server in Binary mode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/downloading-file-from-application-server-in-binary-mode/m-p/6833184#M1471880</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 trying to read an application server file using open dataset in Binary Mode..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While downloading using gui_download method the file is getting truncated because of its size.&lt;/P&gt;&lt;P&gt;My questions are, &lt;/P&gt;&lt;P&gt;       How to increase the size of the internal table dynamically. Already tried using STRING type but it is not accepting.&lt;/P&gt;&lt;P&gt;       If I use the CHAR type with maximum length 65535 and if the length of the file is less than that then in the remaining spaces box like symbols are printed .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achieve it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;NJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Mar 2010 06:49:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-25T06:49:23Z</dc:date>
    <item>
      <title>Downloading file from application server in Binary mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/downloading-file-from-application-server-in-binary-mode/m-p/6833184#M1471880</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 trying to read an application server file using open dataset in Binary Mode..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While downloading using gui_download method the file is getting truncated because of its size.&lt;/P&gt;&lt;P&gt;My questions are, &lt;/P&gt;&lt;P&gt;       How to increase the size of the internal table dynamically. Already tried using STRING type but it is not accepting.&lt;/P&gt;&lt;P&gt;       If I use the CHAR type with maximum length 65535 and if the length of the file is less than that then in the remaining spaces box like symbols are printed .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achieve it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;NJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Mar 2010 06:49:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/downloading-file-from-application-server-in-binary-mode/m-p/6833184#M1471880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-25T06:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading file from application server in Binary mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/downloading-file-from-application-server-in-binary-mode/m-p/6833185#M1471881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TYPES: BEGIN OF type_download,&lt;/P&gt;&lt;P&gt;           data1 TYPE zchar20000, &lt;/P&gt;&lt;P&gt;           data2 TYPE zchar20000,&lt;/P&gt;&lt;P&gt;           data3 TYPE char3000,&lt;/P&gt;&lt;P&gt;           data4 TYPE char2000,&lt;/P&gt;&lt;P&gt;         END OF type_download.&lt;/P&gt;&lt;P&gt;  DATA: lt_download TYPE STANDARD TABLE OF type_download, &lt;/P&gt;&lt;P&gt;        lx_download TYPE string, &lt;/P&gt;&lt;P&gt;        lv_filename TYPE string.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read data from application server to internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  OPEN DATASET p_p_ftappl FOR INPUT IN BINARY MODE.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;      CLEAR lx_download.&lt;/P&gt;&lt;P&gt;      READ DATASET p_p_ftappl INTO lx_download.&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      APPEND lx_download TO lt_download.&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Download data to presentation server from internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    lv_filename = p_p_ftfron.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Download data from application server to PC&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   bin_filesize              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        filename                  = lv_filename&lt;/P&gt;&lt;P&gt;        filetype                  = c_bin&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   append                    = space&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      write_field_separator     = space&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   header                    = '00'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   trunc_trailing_blanks     = 'X' "space "commented&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   trunc_trailing_blanks_eol = 'X' "added&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   filelength                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        data_tab                  = lt_download.&lt;/P&gt;&lt;P&gt;*Exceptions deleted            .&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Close file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CLOSE DATASET p_p_ftappl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: NewJoinee123 on Mar 25, 2010 8:45 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Mar 2010 06:53:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/downloading-file-from-application-server-in-binary-mode/m-p/6833185#M1471881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-25T06:53:46Z</dc:date>
    </item>
  </channel>
</rss>

