<?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 GUI_DELETE_FILE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-delete-file/m-p/849804#M45969</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;after procesing a file i want to delete it.&lt;/P&gt;&lt;P&gt;i use the following code:&lt;/P&gt;&lt;P&gt;  call function 'GUI_DELETE_FILE'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      file_name       = d_file&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     FAILED          = 1&lt;/P&gt;&lt;P&gt;     OTHERS          = 2.&lt;/P&gt;&lt;P&gt;*if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*endif.&lt;/P&gt;&lt;P&gt;&lt;U&gt;although the file is correctly deleted i always get sy-subrc = 1&lt;/U&gt;. Why is this happening?&lt;BR /&gt;(i´ve commented if sy-subrc &amp;lt;&amp;gt; 0 because i got this message: MESSAGE_TYPE_UNKNOWN).&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jun 2005 15:21:33 GMT</pubDate>
    <dc:creator>former_member182371</dc:creator>
    <dc:date>2005-06-02T15:21:33Z</dc:date>
    <item>
      <title>GUI_DELETE_FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-delete-file/m-p/849804#M45969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;after procesing a file i want to delete it.&lt;/P&gt;&lt;P&gt;i use the following code:&lt;/P&gt;&lt;P&gt;  call function 'GUI_DELETE_FILE'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      file_name       = d_file&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     FAILED          = 1&lt;/P&gt;&lt;P&gt;     OTHERS          = 2.&lt;/P&gt;&lt;P&gt;*if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*endif.&lt;/P&gt;&lt;P&gt;&lt;U&gt;although the file is correctly deleted i always get sy-subrc = 1&lt;/U&gt;. Why is this happening?&lt;BR /&gt;(i´ve commented if sy-subrc &amp;lt;&amp;gt; 0 because i got this message: MESSAGE_TYPE_UNKNOWN).&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2005 15:21:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-delete-file/m-p/849804#M45969</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2005-06-02T15:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_DELETE_FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-delete-file/m-p/849805#M45970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure why you are getting that, but maybe try the following code instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

call method cl_gui_frontend_services=&amp;gt;file_delete
  exporting
    filename           = filepatch
  changing
    rc                 = sysubrc
*  EXCEPTIONS
*    FILE_DELETE_FAILED = 1
*    CNTL_ERROR         = 2
*    ERROR_NO_GUI       = 3
*    FILE_NOT_FOUND     = 4
*    ACCESS_DENIED      = 5
*    UNKNOWN_ERROR      = 6
*    others             = 7
        .
if sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&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, 02 Jun 2005 15:29:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-delete-file/m-p/849805#M45970</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-06-02T15:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_DELETE_FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-delete-file/m-p/849806#M45971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wouldn't trust in that function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;German documentation says: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBSOLET: bitte Klasse CL_GUI_FRONTEND_SERVICES verwenden&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;means : not anymore supported, use Class .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason could be: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE ORBTYP.&lt;/P&gt;&lt;P&gt;    WHEN ORB_COM_DEF.&lt;/P&gt;&lt;P&gt;         CALL METHOD OF H_COM1 'DeleteFile'           = RET&lt;/P&gt;&lt;P&gt;         EXPORTING #1 = FILE_NAME.&lt;/P&gt;&lt;P&gt;         IF ( RET = 0 ) .&lt;/P&gt;&lt;P&gt;           RAISE FAILED.&lt;/P&gt;&lt;P&gt;         ENDIF.&lt;/P&gt;&lt;P&gt;         IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;           RAISE FAILED.&lt;/P&gt;&lt;P&gt;         ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2005 15:31:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-delete-file/m-p/849806#M45971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-02T15:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_DELETE_FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-delete-file/m-p/849807#M45972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;are GUI_DOWNLOAD and GUI_UPLOAD obsolte as well?&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2005 15:49:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-delete-file/m-p/849807#M45972</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2005-06-02T15:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_DELETE_FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-delete-file/m-p/849808#M45973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of using this stupid FM (I saw that it doesn't care and gives no indication even if you send an empty FILE_NAME to it...) use the function "WS_FILE_DELETE".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also watch this topic on more stuff regading: &lt;/P&gt;&lt;P&gt;"Obsolete Functions in SAP 4.7"&lt;/P&gt;&lt;P&gt;Link:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="7822"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enjoy&lt;/P&gt;&lt;P&gt;ayal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2005 06:23:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-delete-file/m-p/849808#M45973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-11T06:23:32Z</dc:date>
    </item>
  </channel>
</rss>

