<?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: Get file attributes including modify date and time in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-file-attributes-including-modify-date-and-time/m-p/4874474#M1139431</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any other option in order to get the properties to a file longer than tdlist-name (char 40)???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Sep 2012 11:18:16 GMT</pubDate>
    <dc:creator>former_member231296</dc:creator>
    <dc:date>2012-09-19T11:18:16Z</dc:date>
    <item>
      <title>Get file attributes including modify date and time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-file-attributes-including-modify-date-and-time/m-p/4874471#M1139428</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 couldn't found any function for reading files all attributes.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Size, owner, type, creation date&lt;/EM&gt; and &lt;EM&gt;creation time&lt;/EM&gt; is ok, but&lt;/P&gt;&lt;P&gt;&lt;EM&gt;modify date&lt;/EM&gt; and &lt;EM&gt;creation time&lt;/EM&gt; is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function EPS_GET_FILE_ATTRIBUTES is not enough.&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;EM&gt;LOOP AT dlist.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;      &lt;EM&gt;CALL FUNCTION 'EPS_GET_FILE_ATTRIBUTES'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;        &lt;EM&gt;EXPORTING&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;          &lt;EM&gt;file_name              = dlist-name&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;          &lt;EM&gt;dir_name               = dpath&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;        &lt;EM&gt;IMPORTING&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;          &lt;EM&gt;file_size              = fattr-file_size&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;          &lt;EM&gt;file_owner             = fattr-file_owner&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;          &lt;EM&gt;file_mode              = fattr-file_mode&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;          &lt;EM&gt;file_type              = fattr-file_type&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;          &lt;EM&gt;file_mtime             = fattr-file_mtime&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;        &lt;EM&gt;EXCEPTIONS&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;          &lt;EM&gt;read_directory_failed  = 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;          &lt;EM&gt;read_attributes_failed = 2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;          &lt;EM&gt;OTHERS                 = 3.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;EM&gt;IF sy-subrc EQ 0.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;        &lt;EM&gt;fattr-file_name = dlist-name.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;        &lt;EM&gt;APPEND fattr.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;      &lt;EM&gt;ENDIF.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;    &lt;EM&gt;ENDLOOP.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;EM&gt;SORT fattr BY file_name.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;EM&gt;LOOP AT fattr.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;      &lt;EM&gt;point_in_time = fattr-file_mtime.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;EM&gt;CALL FUNCTION 'POINT_IN_TIME_CONVERT'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;        &lt;EM&gt;EXPORTING&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;          &lt;EM&gt;point_in_time = point_in_time&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;        &lt;EM&gt;IMPORTING&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;          &lt;EM&gt;date          = mdate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;          &lt;EM&gt;time          = mtime&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;        &lt;EM&gt;EXCEPTIONS&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;          &lt;EM&gt;OTHERS        = 1.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;EM&gt;SUBTRACT days1980 FROM mdate.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;EM&gt;WRITE: / fattr-file_name,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;               &lt;EM&gt;fattr-file_size,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;               &lt;EM&gt;fattr-file_owner,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;               &lt;EM&gt;mdate,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;               &lt;EM&gt;mtime.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;    &lt;EM&gt;ENDLOOP.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you your tips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Viktor David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 13:06:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-file-attributes-including-modify-date-and-time/m-p/4874471#M1139428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T13:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get file attributes including modify date and time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-file-attributes-including-modify-date-and-time/m-p/4874472#M1139429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you find any FM to get modified date for a file stored in the local drive?&lt;/P&gt;&lt;P&gt;I'm also looking for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Thruna Shanmuga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 16:16:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-file-attributes-including-modify-date-and-time/m-p/4874472#M1139429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T16:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get file attributes including modify date and time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-file-attributes-including-modify-date-and-time/m-p/4874473#M1139430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thruna!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No I've been fighting for these data's, but without any success. What do you think about to get file attributes from a cmd command (ex. ATTRIB), and export it by a function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Viktor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 07:37:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-file-attributes-including-modify-date-and-time/m-p/4874473#M1139430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T07:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get file attributes including modify date and time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-file-attributes-including-modify-date-and-time/m-p/4874474#M1139431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any other option in order to get the properties to a file longer than tdlist-name (char 40)???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 11:18:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-file-attributes-including-modify-date-and-time/m-p/4874474#M1139431</guid>
      <dc:creator>former_member231296</dc:creator>
      <dc:date>2012-09-19T11:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get file attributes including modify date and time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-file-attributes-including-modify-date-and-time/m-p/4874475#M1139432</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 believe the date and time you can get are the last modification &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 12:38:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-file-attributes-including-modify-date-and-time/m-p/4874475#M1139432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-19T12:38:04Z</dc:date>
    </item>
  </channel>
</rss>

