<?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: issue with EPS_DELETE_FILE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-eps-delete-file/m-p/5702337#M1295208</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nope its saved as 'file_20091502.txt' in the directory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i really cant explain this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jun 2009 10:19:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-09T10:19:45Z</dc:date>
    <item>
      <title>issue with EPS_DELETE_FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-eps-delete-file/m-p/5702335#M1295206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi everybody&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im trying to execute the fm EPS_DELETE_FILE but it seems it cant delete the files&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'EPS_DELETE_FILE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    FILE_NAME                    = l_filename&lt;/P&gt;&lt;P&gt;    DIR_NAME                     = l_dirname&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   FILE_PATH                    = l_pathname&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   INVALID_EPS_SUBDIR           = 1&lt;/P&gt;&lt;P&gt;   SAPGPARAM_FAILED             = 2&lt;/P&gt;&lt;P&gt;   BUILD_DIRECTORY_FAILED       = 3&lt;/P&gt;&lt;P&gt;   NO_AUTHORIZATION             = 4&lt;/P&gt;&lt;P&gt;   BUILD_PATH_FAILED            = 5&lt;/P&gt;&lt;P&gt;   DELETE_FAILED                = 6&lt;/P&gt;&lt;P&gt;   OTHERS                       = 7&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the parameter l_pathname is not taking the extension of the files, I dont know why&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_pathname is taking this value &lt;BR /&gt;100.300.1.6\310\WORKS\OUT\file_20091502&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of &lt;BR /&gt;100.300.1.6\310\WORKS\OUT\file_20091502.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hence its not deleting the file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anybody knows the reason?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 09:43:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-eps-delete-file/m-p/5702335#M1295206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-09T09:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: issue with EPS_DELETE_FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-eps-delete-file/m-p/5702336#M1295207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In AL11, goto the path '&lt;BR /&gt;100.300.1.6\310\WORKS\OUT\' and check the name of the file, whether it is: 'file_20091502' or 'file_20091502.txt'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel that it is saved as 'file_20091502'. Hence the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 10:13:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-eps-delete-file/m-p/5702336#M1295207</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-06-09T10:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: issue with EPS_DELETE_FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-eps-delete-file/m-p/5702337#M1295208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nope its saved as 'file_20091502.txt' in the directory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i really cant explain this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 10:19:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-eps-delete-file/m-p/5702337#M1295208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-09T10:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: issue with EPS_DELETE_FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-eps-delete-file/m-p/5702338#M1295209</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;First check if file really exists in given directory:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: pa_dir TYPE epsf-epsdirnam VISIBLE LENGTH 60 OBLIGATORY.

"directory list
DATA: BEGIN OF dir_list OCCURS 0.
        INCLUDE STRUCTURE epsfili.
DATA END OF dir_list.

"------------------------ get direcotry listing
  CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
    EXPORTING
      dir_name               = pa_dir
    TABLES
      dir_list               = dir_list
    EXCEPTIONS
      invalid_eps_subdir     = 1
      sapgparam_failed       = 2
      build_directory_failed = 3
      no_authorization       = 4
      read_directory_failed  = 5
      too_many_read_errors   = 6
      empty_directory_list   = 7
      OTHERS                 = 8.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE 'No such directory' TYPE 'I' DISPLAY LIKE 'E'.
    LEAVE TO SCREEN 0.
  ENDIF.

  "------------------------ get direcotry listing
  LOOP AT dir_list.
    if dir_list-name = l_filename.
        "Exist
        CALL FUNCTION 'EPS_DELETE_FILE'. ...
    else. 
        "check another one
        CONTINUE.
   endif.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Marcin Pciak on Jun 9, 2009 12:23 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 10:21:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-eps-delete-file/m-p/5702338#M1295209</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-06-09T10:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: issue with EPS_DELETE_FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-eps-delete-file/m-p/5702339#M1295210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt; i will try the different alternatives&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 07:20:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-eps-delete-file/m-p/5702339#M1295210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-12T07:20:46Z</dc:date>
    </item>
  </channel>
</rss>

