<?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_OPEN_DIALOG problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-open-dialog-problem/m-p/9275450#M1723365</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;If the folder does not exist then the method will try to open a previously opened directory. You can check the code for the method, you will find the code for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also check method DIRECTORY_BROWSE if you are only browsing directories. There are more of them which can be used to verify if directory exists&lt;/P&gt;&lt;P&gt;DIRECTORY_BROWSE&lt;/P&gt;&lt;P&gt;DIRECTORY_CREATE&lt;/P&gt;&lt;P&gt;DIRECTORY_DELETE&lt;/P&gt;&lt;P&gt;DIRECTORY_EXIST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;swanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Feb 2013 21:13:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-02-13T21:13:01Z</dc:date>
    <item>
      <title>FILE_OPEN_DIALOG problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-open-dialog-problem/m-p/9275449#M1723364</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;I am using CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_OPEN_DIALOG to open a directory in Network. (I dont want to open or select any files just to open the directory and see documents are there or not)&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;Network directory is: &lt;A href="https://community.sap.com/"&gt;\\network\directory&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Folders in the directory are: folder1, folder2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now my code is like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_folder = '\\network\directory\folder1'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL METHOD cl_gui_frontend_services=&amp;gt;file_open_dialog&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; initial_directory = lv_folder&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHANGING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file_table&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = lt_file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = lv_rc.&lt;/P&gt;&lt;P&gt;This works fine.&lt;/P&gt;&lt;P&gt;Now if i am giving folder3 which is not existing in the directory.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_folder = '\\network\directory\folder3'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL METHOD cl_gui_frontend_services=&amp;gt;file_open_dialog&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; initial_directory = lv_folder&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHANGING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file_table&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = lt_file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = lv_rc.&lt;/P&gt;&lt;P&gt;after execution, i am seeing the last folder location '\\network\directory\folder1'&amp;nbsp; instead of &lt;A href="https://community.sap.com/"&gt;\\network\directory&lt;/A&gt;. Also other thing i observed is, if i open any other report which is using the same method it points to same old location '\\network\directory\folder1' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This method is more suitable with my requirement(look and feel similar to our regular windows file opening) than other method: directory_browse.&lt;/P&gt;&lt;P&gt;Could you pls help where i am doing wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 21:00:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-open-dialog-problem/m-p/9275449#M1723364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-13T21:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: FILE_OPEN_DIALOG problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-open-dialog-problem/m-p/9275450#M1723365</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;If the folder does not exist then the method will try to open a previously opened directory. You can check the code for the method, you will find the code for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also check method DIRECTORY_BROWSE if you are only browsing directories. There are more of them which can be used to verify if directory exists&lt;/P&gt;&lt;P&gt;DIRECTORY_BROWSE&lt;/P&gt;&lt;P&gt;DIRECTORY_CREATE&lt;/P&gt;&lt;P&gt;DIRECTORY_DELETE&lt;/P&gt;&lt;P&gt;DIRECTORY_EXIST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;swanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 21:13:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-open-dialog-problem/m-p/9275450#M1723365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-13T21:13:01Z</dc:date>
    </item>
  </channel>
</rss>

