<?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: Problem in downloading data from application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-downloading-data-from-application-server/m-p/4253106#M1015283</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;This will create a file in the application server with the name you pass in p_file say '.\w_file.txt', check the file in AL11 after creating in.Use CG3y to download data into presentation server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Mani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jul 2008 10:18:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-31T10:18:22Z</dc:date>
    <item>
      <title>Problem in downloading data from application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-downloading-data-from-application-server/m-p/4253102#M1015279</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 tried the following code for downloading data to PC in background:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_file LIKE rlgrap-filename OBLIGATORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT itab INTO istab.&lt;/P&gt;&lt;P&gt;      TRANSFER istab TO p_file.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, the contents are not getting transferred to the p_file. I give the path of the file while executing the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, the file is not getting created in PC. And the statement 'OPEN DATASET p_file FOR INPUT IN TEXT MODE ENCODING DEFAULT'. is working but unable to read after that using READ DATASET statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2008 08:18:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-downloading-data-from-application-server/m-p/4253102#M1015279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-31T08:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in downloading data from application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-downloading-data-from-application-server/m-p/4253103#M1015280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will create a file in the application server with the name you pass in p_file say '.\w_file.txt', check the file in AL11 after creating in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: p_file LIKE rlgrap-filename OBLIGATORY.


OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.


LOOP AT itab INTO istab.

TRANSFER istab TO p_file.

ENDLOOP.

CLOSE DATASET p_file.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2008 08:32:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-downloading-data-from-application-server/m-p/4253103#M1015280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-31T08:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in downloading data from application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-downloading-data-from-application-server/m-p/4253104#M1015281</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;You can use this code .............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET gv_dataset for input in text mode encoding default.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;      clear gv_rec.&lt;/P&gt;&lt;P&gt;      READ DATASET gv_dataset INTO gv_rec.&lt;/P&gt;&lt;P&gt;      if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        append gv_rec to gt_raw.&lt;/P&gt;&lt;P&gt;        exit.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      append gv_rec to gt_raw.&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;    CLOSE DATASET gv_dataset.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    gv_retcode = 1.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jayan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2008 08:59:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-downloading-data-from-application-server/m-p/4253104#M1015281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-31T08:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in downloading data from application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-downloading-data-from-application-server/m-p/4253105#M1015282</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 you need to transfer a file in Application server the addition FOR OUTPUT is right, so if you can't transfer any data, u should check if the system can create the file: so the value of SY-SUBRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U make sure the structure ISTAB has char field only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2008 09:04:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-downloading-data-from-application-server/m-p/4253105#M1015282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-31T09:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in downloading data from application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-downloading-data-from-application-server/m-p/4253106#M1015283</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;This will create a file in the application server with the name you pass in p_file say '.\w_file.txt', check the file in AL11 after creating in.Use CG3y to download data into presentation server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Mani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2008 10:18:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-downloading-data-from-application-server/m-p/4253106#M1015283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-31T10:18:22Z</dc:date>
    </item>
  </channel>
</rss>

