<?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: file donwload in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-donwload/m-p/1003675#M77126</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;Check this.May be this can help you.&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.ittoolbox.com/code/d.asp?d=2285&amp;amp;a=s" target="test_blank"&gt;http://sap.ittoolbox.com/code/d.asp?d=2285&amp;amp;a=s&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points if it is useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2005 10:57:27 GMT</pubDate>
    <dc:creator>jayanthi_jayaraman</dc:creator>
    <dc:date>2005-07-27T10:57:27Z</dc:date>
    <item>
      <title>file donwload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-donwload/m-p/1003671#M77122</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 need to download a file from the application server (BW - transaction CG3Y doesn't exist). Could anyone post here the &amp;lt;b&amp;gt;complete abap source&amp;lt;/b&amp;gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 09:55:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-donwload/m-p/1003671#M77122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T09:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: file donwload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-donwload/m-p/1003672#M77123</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;Here is the code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

*&amp;amp;---------------------------------------------------------------------*

*&amp;amp;      Form  f1104_download_to_lofile

*&amp;amp;---------------------------------------------------------------------*

*       Download to data from internal table to Logical File/application server

*----------------------------------------------------------------------*

FORM f1104_download_to_lofile.

* Open the file in application server

  OPEN DATASET v_filepht FOR OUTPUT IN TEXT MODE.

  IF sy-subrc &amp;lt;&amp;gt; 0.

    MESSAGE s185 WITH v_filepht.           

    LEAVE LIST-PROCESSING.

  ENDIF.

  LOOP AT i_logfile INTO w_logfile.

    TRANSFER w_logfile TO v_filepht.

    CLEAR w_logfile.

  ENDLOOP.

  IF sy-subrc = 0.

    WRITE:/ text-055, v_filepht, text-056.

  ELSE.

    WRITE:/ text-057, v_filepht.      

  ENDIF.

* Closing the file

  CLOSE DATASET v_filepht.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 10:06:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-donwload/m-p/1003672#M77123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T10:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: file donwload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-donwload/m-p/1003673#M77124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, but because I'm newbie I need something runable, not only a part.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 10:15:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-donwload/m-p/1003673#M77124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T10:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: file donwload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-donwload/m-p/1003674#M77125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just create a internal table, populate some dummy data and call this funtion with appropriate parameters. It's enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 10:24:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-donwload/m-p/1003674#M77125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T10:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: file donwload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-donwload/m-p/1003675#M77126</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;Check this.May be this can help you.&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.ittoolbox.com/code/d.asp?d=2285&amp;amp;a=s" target="test_blank"&gt;http://sap.ittoolbox.com/code/d.asp?d=2285&amp;amp;a=s&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points if it is useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 10:57:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-donwload/m-p/1003675#M77126</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-07-27T10:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: file donwload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-donwload/m-p/1003676#M77127</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;and what is with func-group C13Z&lt;/P&gt;&lt;P&gt;and fm C13Z_APPL_TO_FRONT_END ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 11:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-donwload/m-p/1003676#M77127</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-07-27T11:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: file donwload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-donwload/m-p/1003677#M77128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This module and group doesn't exist because the system is not R/3 but BW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 11:47:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-donwload/m-p/1003677#M77128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T11:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: file donwload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-donwload/m-p/1003678#M77129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How could it help? I don't want to download table content but a file that exists on AS (in sap/trans directory).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 11:50:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-donwload/m-p/1003678#M77129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T11:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: file donwload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-donwload/m-p/1003679#M77130</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;try that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ztrans01 .
*Parameters(files)
PARAMETERS: ux_dir TYPE epsf-epsdirnam OBLIGATORY
            DEFAULT '/usr/sap/trans',
            filename TYPE epsf-epsfilnam OBLIGATORY DEFAULT 'test1',
            pc_dir TYPE rlgrap-filename OBLIGATORY
            DEFAULT 'c:tmp'.
*DATA(Strings)
DATA itab TYPE TABLE OF string.
DATA wa TYPE string.
DATA file TYPE string.
DATA size TYPE epsf-epsfilsiz.
DATA ux_file TYPE epsf-epspath.
DATA mode TYPE epsf-epstxtmod.
*start-of-selection
START-OF-SELECTION.


*1) transfer
  CONCATENATE ux_dir '/' filename INTO ux_file.
  OPEN DATASET ux_file FOR INPUT IN TEXT MODE.

  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE i502(me) WITH ux_file.
  ENDIF.

  DO.
    READ DATASET ux_file INTO wa.
    IF sy-subrc &amp;lt;&amp;gt; 0. EXIT . ENDIF.
    APPEND wa TO itab.
  ENDDO.

  CLOSE DATASET ux_file.




*2)download
  CONCATENATE  pc_dir  '' filename  INTO file.

  CALL FUNCTION 'GUI_DOWNLOAD'
       EXPORTING
            filename = file
       TABLES
            data_tab = itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 12:36:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-donwload/m-p/1003679#M77130</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-07-27T12:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: file donwload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-donwload/m-p/1003680#M77131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it's more suitable to FTP the file from the server to your local machine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you can give some more information about the goal you want to achieve?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 12:36:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-donwload/m-p/1003680#M77131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T12:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: file donwload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-donwload/m-p/1003681#M77132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, this is exactly what I wanted, but it doesn't seem to be working with binary files. 'IN TEXT MODE' isn't syntactically correct, I had to add 'ENCODING DEFAULT' and I tried 'IN BINARY MODE' as well. Inspite of this the size of the local file differs from that on AS. Any idea how to correct this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2005 08:17:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-donwload/m-p/1003681#M77132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-28T08:17:00Z</dc:date>
    </item>
  </channel>
</rss>

