<?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: file checking in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-checking/m-p/5182463#M1199702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_EXIST&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:RCbool type ABAP_BOOL.
  WRITE: / 'TEST METHOD FILE_EXIST'.
  CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_EXIST
    EXPORTING
      FILE                 = 'c:\temp\test_frontend_services.txt'
    RECEIVING
      RESULT               = rcbool
*  EXCEPTIONS
*    CNTL_ERROR           = 1
*    ERROR_NO_GUI         = 2
*    WRONG_PARAMETER      = 3
*    NOT_SUPPORTED_BY_GUI = 4
*    others               = 5
          .
  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.

  WRITE: / RCbool.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Feb 2009 15:43:30 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2009-02-26T15:43:30Z</dc:date>
    <item>
      <title>file checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-checking/m-p/5182461#M1199700</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;is there any way to check the existence of the file at the specified location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sreeram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 15:33:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-checking/m-p/5182461#M1199700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-26T15:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: file checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-checking/m-p/5182462#M1199701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sreeram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check with &lt;STRONG&gt;TMP_GUI_GET_FILE_EXIST&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 15:35:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-checking/m-p/5182462#M1199701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-26T15:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: file checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-checking/m-p/5182463#M1199702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_EXIST&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:RCbool type ABAP_BOOL.
  WRITE: / 'TEST METHOD FILE_EXIST'.
  CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_EXIST
    EXPORTING
      FILE                 = 'c:\temp\test_frontend_services.txt'
    RECEIVING
      RESULT               = rcbool
*  EXCEPTIONS
*    CNTL_ERROR           = 1
*    ERROR_NO_GUI         = 2
*    WRONG_PARAMETER      = 3
*    NOT_SUPPORTED_BY_GUI = 4
*    others               = 5
          .
  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.

  WRITE: / RCbool.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 15:43:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-checking/m-p/5182463#M1199702</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-02-26T15:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: file checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-checking/m-p/5182464#M1199703</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;You can check existence of a file in one of the 2 ways mentioned below:&lt;/P&gt;&lt;P&gt;1. Using function module 'DX_FILE_EXISTENCE_CHECK'.&lt;/P&gt;&lt;P&gt;2. Using Class Static Method 'CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_EXIST'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do search on them and you will get all the details necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 18:17:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-checking/m-p/5182464#M1199703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-26T18:17:41Z</dc:date>
    </item>
  </channel>
</rss>

