<?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 question. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-question/m-p/1668698#M295759</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I know that I can use a FTP to do that but the company don't want use a FTP or FTPS connection to do that. This is the reason because I check if exist other way like a function to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Oct 2006 14:52:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-26T14:52:34Z</dc:date>
    <item>
      <title>Function question.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-question/m-p/1668696#M295757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi people!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to take like eight files from the directory 'out' in the R/3 server. I need to create a program for this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exist a function that take me this eight files that beginning like example with 'Filetest*' ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 14:42:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-question/m-p/1668696#M295757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-26T14:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Function question.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-question/m-p/1668697#M295758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Search in the forum for the FTP solution propose by SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 14:46:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-question/m-p/1668697#M295758</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2006-10-26T14:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Function question.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-question/m-p/1668698#M295759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I know that I can use a FTP to do that but the company don't want use a FTP or FTPS connection to do that. This is the reason because I check if exist other way like a function to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 14:52:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-question/m-p/1668698#M295759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-26T14:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Function question.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-question/m-p/1668699#M295760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos, please check the following progam.  It will delete any file that starts with "TEST" in the OUT directory of your application server.  Of course you can modify for you needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001 .

data: localfile type localfile.
data: filepathname type string.
data: ifile type table of  salfldir with header line.

parameters: p_path type salfile-longname
                    default '/usr/sap/out/'.
select-options: s_file for localfile no intervals no-extension.


initialization.

  s_file-sign = 'I'.
  s_file-option = 'CP'.
  s_file-low  = 'TEST*'.
  append s_file.

start-of-selection.

  call function 'RZL_READ_DIR_LOCAL'
       exporting
            name           = p_path
       tables
            file_tbl       = ifile
       exceptions
            argument_error = 1
            not_found      = 2
            others         = 3.

  loop at ifile where name in s_file.
    concatenate p_path ifile-name into filepathname.
    delete dataset filepathname.
  endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 15:02:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-question/m-p/1668699#M295760</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-10-26T15:02:03Z</dc:date>
    </item>
  </channel>
</rss>

