<?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: Function Module existence in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-existence/m-p/2246973#M485182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I think this code works with file on your application server, not on your local disk&lt;/P&gt;&lt;P&gt;You have first to upload it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 May 2007 12:53:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-24T12:53:27Z</dc:date>
    <item>
      <title>Function Module existence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-existence/m-p/2246970#M485179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there an existing function module that will retrieve file attributes such as file size, date modified, file type, etc.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 10:01:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-existence/m-p/2246970#M485179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T10:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module existence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-existence/m-p/2246971#M485180</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;&lt;/P&gt;&lt;P&gt;chk this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT zzzz66 .
TABLES epsf.
PARAMETERS dir  LIKE epsf-epsdirnam DEFAULT '/home/user1/'.
PARAMETERS file LIKE epsf-epsfilnam DEFAULT 'file001.dat'.
DATA mtime TYPE p DECIMALS 0.
DATA time(10).
DATA date LIKE sy-datum.
 
CALL FUNCTION 'EPS_GET_FILE_ATTRIBUTES'
     EXPORTING
          file_name              = file
          dir_name               = dir
     IMPORTING
          file_size              = epsf-epsfilsiz
          file_owner             = epsf-epsfilown
          file_mode              = epsf-epsfilmod
          file_type              = epsf-epsfiltyp
          file_mtime             = mtime
     EXCEPTIONS
          read_directory_failed  = 1
          read_attributes_failed = 2
          OTHERS                 = 3.
 
*The subroutine p6_to_date_time_tz is sap std present in rstr0400.

PERFORM p6_to_date_time_tz(rstr0400) USING mtime
                                           time
                                           date.
WRITE: / mtime,
       / date, time.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Reshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 10:09:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-existence/m-p/2246971#M485180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T10:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module existence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-existence/m-p/2246972#M485181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Reshma. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would just like to ask if my file is located at my local drive (e.g.'C:'), can I get its file attributes? I executed the codes you posted but I failed to retrieve its attributes. How can I correct it? Million thanks Reshma.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZZZZ66 .&lt;/P&gt;&lt;P&gt;TABLES EPSF.&lt;/P&gt;&lt;P&gt;PARAMETERS DIR  LIKE EPSF-EPSDIRNAM DEFAULT 'C:'.&lt;/P&gt;&lt;P&gt;PARAMETERS FILE LIKE EPSF-EPSFILNAM DEFAULT 'textfile.txt'.&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;*The subroutine p6_to_date_time_tz is sap std present in rstr0400.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 12:13:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-existence/m-p/2246972#M485181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-24T12:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module existence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-existence/m-p/2246973#M485182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I think this code works with file on your application server, not on your local disk&lt;/P&gt;&lt;P&gt;You have first to upload it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 12:53:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-existence/m-p/2246973#M485182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-24T12:53:27Z</dc:date>
    </item>
  </channel>
</rss>

