<?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 select file from app server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-file-from-app-server/m-p/1964000#M396061</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 there will be a file in the following format&lt;/P&gt;&lt;P&gt;\tmp\ebsfiles\From-EBS\sap_oeu_RDC#_yyyymmddhhmmss.txt. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so this file will be comming from our legacy system and will be so many files comming in one day so when ever my program is executed i have have to pick the LATEST FILE can any one send me the logic how i can do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Feb 2007 13:46:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-26T13:46:41Z</dc:date>
    <item>
      <title>select file from app server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-file-from-app-server/m-p/1964000#M396061</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 there will be a file in the following format&lt;/P&gt;&lt;P&gt;\tmp\ebsfiles\From-EBS\sap_oeu_RDC#_yyyymmddhhmmss.txt. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so this file will be comming from our legacy system and will be so many files comming in one day so when ever my program is executed i have have to pick the LATEST FILE can any one send me the logic how i can do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 13:46:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-file-from-app-server/m-p/1964000#M396061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T13:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: select file from app server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-file-from-app-server/m-p/1964001#M396062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi siri,&lt;/P&gt;&lt;P&gt;              see following function modules might be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   F4_FILENAME_SERVER 	&amp;#147; 	                       File Path on Server&lt;/P&gt;&lt;P&gt;   FILE_NAME_GET		&amp;#147;	                       Logical File Path&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;Vishvesh.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 13:53:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-file-from-app-server/m-p/1964001#M396062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T13:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: select file from app server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-file-from-app-server/m-p/1964002#M396063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siri,&lt;/P&gt;&lt;P&gt;  Use the functionmodule SUBST_GET_FILE_LIST to get the files in a particular directory.&lt;/P&gt;&lt;P&gt;Once you get the files in the directory, sort the files internal table by MOD_DATE and MOD_TIME in descending order.&lt;/P&gt;&lt;P&gt;Then the first file will be the latest file.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 13:55:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-file-from-app-server/m-p/1964002#M396063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T13:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: select file from app server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-file-from-app-server/m-p/1964003#M396064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi siri,&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: CMD_LS(50)   VALUE 'ls -al \tmp\ebsfiles\From-EBS'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  DATA: BEGIN OF ITAB_LS OCCURS 0,&lt;/P&gt;&lt;P&gt;          LINE(200),&lt;/P&gt;&lt;P&gt;        END   OF ITAB_LS.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  CALL 'SYSTEM'&lt;/P&gt;&lt;P&gt;    ID 'COMMAND' FIELD CMD_LS&lt;/P&gt;&lt;P&gt;    ID 'TAB'     FIELD ITAB_LS-&lt;STRONG&gt;SYS&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;loop at itab_ls . write: / ITAB_LS-LINE+57(30). endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put ITAB_LS-LINE+57(30) in an internal table, sort this table, take the&lt;/P&gt;&lt;P&gt;first record of this table and do what you want with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 13:59:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-file-from-app-server/m-p/1964003#M396064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T13:59:23Z</dc:date>
    </item>
  </channel>
</rss>

