<?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 extract file from application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-file-from-application-server/m-p/1986079#M402667</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  in our application server ther is a file in &lt;BR /&gt;tmp\sap\legacy\filename_yyyymmddhhmmss.txt   this file gets generated every day night so when i run my program i need to get the data in the file to my internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to use data sets to do this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one send me the code for this please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Feb 2007 17:09:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-21T17:09:49Z</dc:date>
    <item>
      <title>extract file from application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-file-from-application-server/m-p/1986079#M402667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  in our application server ther is a file in &lt;BR /&gt;tmp\sap\legacy\filename_yyyymmddhhmmss.txt   this file gets generated every day night so when i run my program i need to get the data in the file to my internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to use data sets to do this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one send me the code for this please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 17:09:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extract-file-from-application-server/m-p/1986079#M402667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T17:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: extract file from application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-file-from-application-server/m-p/1986080#M402668</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;PARAMETERS: p_file(100).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;f1(10),&lt;/P&gt;&lt;P&gt;f2(20),&lt;/P&gt;&lt;P&gt;*******Give the field names accordingly to the length of each column..&lt;/P&gt;&lt;P&gt;END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET p_file.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;READ DATASET p_file INTO itab.&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;  ELSE.&lt;/P&gt;&lt;P&gt;    APPEND itab.&lt;/P&gt;&lt;P&gt;    CLEAR itab.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;CLOSE DATASET p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 17:13:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extract-file-from-application-server/m-p/1986080#M402668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T17:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: extract file from application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-file-from-application-server/m-p/1986081#M402669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks naren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  and where do i give the file name which i have in the application server because a new file will be created every night&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 17:16:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extract-file-from-application-server/m-p/1986081#M402669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T17:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: extract file from application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-file-from-application-server/m-p/1986082#M402670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Type READ on your ABAP editor then put cursor on top of READ and press F1 key. Select the READ DATASET option. The Help has sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 17:17:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extract-file-from-application-server/m-p/1986082#M402670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T17:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: extract file from application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-file-from-application-server/m-p/1986083#M402671</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 the file is created once in a day..Why do you have time in the filename..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To solve this issue..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can create a logical file name in the FILE transaction..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can give parameter in the filename..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use the function module FILE_GET_NAME by passing the logical file name and SY-DATUM  in the PARAMETER_1 parameter...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will give the physical filename..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 17:24:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extract-file-from-application-server/m-p/1986083#M402671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T17:24:25Z</dc:date>
    </item>
  </channel>
</rss>

