<?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: How to access Application Server File Attributes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-application-server-file-attributes/m-p/1805240#M345681</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 the FM EPS_GET_FILE_ATTRIBUTES   &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;priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Dec 2006 12:24:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-20T12:24:58Z</dc:date>
    <item>
      <title>How to access Application Server File Attributes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-application-server-file-attributes/m-p/1805237#M345678</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;I have a requirement to access a application server directory. (Transaction Code AL11). I have a directory path with me. I need to check all the files exists in that directory. The file which is &amp;lt;b&amp;gt;most recent&amp;lt;/b&amp;gt;, i need to copy its data into another directory. I have to perform this through ABAP program. Have anyone done similar thing before? I know that there are certain FMs through which you can execute UNIX command but i am not sure on that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate if anyone can help me in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jignesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 12:18:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-application-server-file-attributes/m-p/1805237#M345678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T12:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Application Server File Attributes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-application-server-file-attributes/m-p/1805238#M345679</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;use fm EPS_GET_FILE_ATTRIBUTES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use that sample:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zforum66 .&lt;/P&gt;&lt;P&gt;TABLES epsf.&lt;/P&gt;&lt;P&gt;PARAMETERS dir  LIKE epsf-epsdirnam DEFAULT '/home/usr/'.&lt;/P&gt;&lt;P&gt;PARAMETERS file LIKE epsf-epsfilnam DEFAULT 'test01'.&lt;/P&gt;&lt;P&gt;DATA mtime TYPE p DECIMALS 0.&lt;/P&gt;&lt;P&gt;DATA time(10).&lt;/P&gt;&lt;P&gt;DATA date LIKE sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'EPS_GET_FILE_ATTRIBUTES'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          file_name              = file&lt;/P&gt;&lt;P&gt;          dir_name               = dir&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;          file_size              = epsf-epsfilsiz&lt;/P&gt;&lt;P&gt;          file_owner             = epsf-epsfilown&lt;/P&gt;&lt;P&gt;          file_mode              = epsf-epsfilmod&lt;/P&gt;&lt;P&gt;          file_type              = epsf-epsfiltyp&lt;/P&gt;&lt;P&gt;          file_mtime             = mtime&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          read_directory_failed  = 1&lt;/P&gt;&lt;P&gt;          read_attributes_failed = 2&lt;/P&gt;&lt;P&gt;          OTHERS                 = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM p6_to_date_time_tz(rstr0400) USING mtime&lt;/P&gt;&lt;P&gt;                                           time&lt;/P&gt;&lt;P&gt;                                           date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: / mtime,&lt;/P&gt;&lt;P&gt;       / date, time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Andreas Mann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 12:21:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-application-server-file-attributes/m-p/1805238#M345679</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2006-12-20T12:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Application Server File Attributes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-application-server-file-attributes/m-p/1805239#M345680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REPORT zsha_file_attributes.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TABLES epsf.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PARAMETERS dir  LIKE epsf-epsdirnam DEFAULT '/home/user1/'.&lt;/P&gt;&lt;P&gt;PARAMETERS file LIKE epsf-epsfilnam DEFAULT 'file001.dat'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA mtime TYPE p DECIMALS 0.&lt;/P&gt;&lt;P&gt;DATA time(10).&lt;/P&gt;&lt;P&gt;DATA date LIKE sy-datum.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'EPS_GET_FILE_ATTRIBUTES'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          file_name              = file&lt;/P&gt;&lt;P&gt;          dir_name               = dir&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;          file_size              = epsf-epsfilsiz&lt;/P&gt;&lt;P&gt;          file_owner             = epsf-epsfilown&lt;/P&gt;&lt;P&gt;          file_mode              = epsf-epsfilmod&lt;/P&gt;&lt;P&gt;          file_type              = epsf-epsfiltyp&lt;/P&gt;&lt;P&gt;          file_mtime             = mtime&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          read_directory_failed  = 1&lt;/P&gt;&lt;P&gt;          read_attributes_failed = 2&lt;/P&gt;&lt;P&gt;          OTHERS                 = 3.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PERFORM p6_to_date_time_tz(rstr0400) USING mtime&lt;/P&gt;&lt;P&gt;                                           time&lt;/P&gt;&lt;P&gt;                                           date.&lt;/P&gt;&lt;P&gt;WRITE: / mtime,&lt;/P&gt;&lt;P&gt;       / date, time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reference : &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="281646"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the above thread and award points if found helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 12:22:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-application-server-file-attributes/m-p/1805239#M345680</guid>
      <dc:creator>rahulkavuri</dc:creator>
      <dc:date>2006-12-20T12:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Application Server File Attributes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-application-server-file-attributes/m-p/1805240#M345681</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 the FM EPS_GET_FILE_ATTRIBUTES   &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;priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 12:24:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-application-server-file-attributes/m-p/1805240#M345681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T12:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to access Application Server File Attributes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-application-server-file-attributes/m-p/1805241#M345682</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;Actually the thing is I dont have file name with me. I need to find out in whole directory that which file is latest?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jignesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 12:26:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-application-server-file-attributes/m-p/1805241#M345682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T12:26:28Z</dc:date>
    </item>
  </channel>
</rss>

