<?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: Both file and directory path selection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/both-file-and-directory-path-selection/m-p/6175232#M1372367</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; No...file can be anywhere....file path selection means will have file name(c:\abc.txt) and directory selection means only select 'C:\'&lt;/P&gt;&lt;P&gt;&amp;gt; from which files can be selected.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Now I want to enable both the options in one parameter path.Is it possible?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AFAIK, it is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can try a workaround though &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make two radio-buttons:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Select File (rb_file)&lt;/P&gt;&lt;P&gt;2. Select Directory (rb_dir)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then based on the radio-button call the respective method &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF RB_FILE = 'X'.
Call Method CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_OPEN_DIALOG
ELSEIF RB_DIR = 'X'.
Call Method CL_GUI_FRONTEND_SERVICES=&amp;gt;DIRECTORY_BROWSE
ENDIF.&lt;/CODE&gt;&lt;/PRE&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>Mon, 05 Oct 2009 12:06:56 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2009-10-05T12:06:56Z</dc:date>
    <item>
      <title>Both file and directory path selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/both-file-and-directory-path-selection/m-p/6175229#M1372364</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 it possible to select both file path and directory path from one parameter using F4?If yes how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ginger on Oct 5, 2009 7:51 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 11:39:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/both-file-and-directory-path-selection/m-p/6175229#M1372364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-05T11:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Both file and directory path selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/both-file-and-directory-path-selection/m-p/6175230#M1372365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And what exactly do you mean by "filepath" &amp;amp; "directory path"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you talking about presentation server or application server paths ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 11:56:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/both-file-and-directory-path-selection/m-p/6175230#M1372365</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-10-05T11:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Both file and directory path selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/both-file-and-directory-path-selection/m-p/6175231#M1372366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No...file can be anywhere....file path selection means will have file name(c:\abc.txt) and directory selection means only select 'C:\'&lt;/P&gt;&lt;P&gt;from which files can be selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to enable both the options in one parameter path.Is it possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 11:59:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/both-file-and-directory-path-selection/m-p/6175231#M1372366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-05T11:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Both file and directory path selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/both-file-and-directory-path-selection/m-p/6175232#M1372367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; No...file can be anywhere....file path selection means will have file name(c:\abc.txt) and directory selection means only select 'C:\'&lt;/P&gt;&lt;P&gt;&amp;gt; from which files can be selected.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Now I want to enable both the options in one parameter path.Is it possible?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AFAIK, it is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can try a workaround though &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make two radio-buttons:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Select File (rb_file)&lt;/P&gt;&lt;P&gt;2. Select Directory (rb_dir)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then based on the radio-button call the respective method &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF RB_FILE = 'X'.
Call Method CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_OPEN_DIALOG
ELSEIF RB_DIR = 'X'.
Call Method CL_GUI_FRONTEND_SERVICES=&amp;gt;DIRECTORY_BROWSE
ENDIF.&lt;/CODE&gt;&lt;/PRE&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>Mon, 05 Oct 2009 12:06:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/both-file-and-directory-path-selection/m-p/6175232#M1372367</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-10-05T12:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Both file and directory path selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/both-file-and-directory-path-selection/m-p/6175233#M1372368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can only achieve this through custom coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can look at the function module F4_DXFILENAME_TOPRECURSION which displays a popup, where one can select application server or presentation server for file browse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this as an example, you can build your own function module, where one can select file or directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S. Suresh Babu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 12:53:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/both-file-and-directory-path-selection/m-p/6175233#M1372368</guid>
      <dc:creator>anusurbab</dc:creator>
      <dc:date>2009-10-05T12:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Both file and directory path selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/both-file-and-directory-path-selection/m-p/6175234#M1372369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi,
Try this way.
&lt;PRE&gt;&lt;CODE&gt;
  REPORT ztest_notepad.
  DATA:g_server TYPE c.

  PARAMETERS:p_server AS CHECKBOX USER-COMMAND uc1.
  PARAMETERS:p_path TYPE  dxfields-longpath.
  PARAMETERS:p_file TYPE dxfields-longpath.

  AT SELECTION-SCREEN OUTPUT.
    CASE p_server.
      WHEN 'X'.
        CLEAR p_file.
        g_server = 'A'.
        p_path = '\usr\sap\tmp'.
      WHEN space.
        CLEAR p_file.
        g_server = 'P'.
        p_path = 'C:\'.
    ENDCASE.

  AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.

    CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
      EXPORTING
        i_location_flag = g_server
        i_server        = ' '
        i_path          = p_path
        filemask        = ' '
        fileoperation   = 'R'
      IMPORTING
        o_path          = p_path.
    p_file = p_path.

  START-OF-SELECTION.
    WRITE p_file.&lt;/CODE&gt;&lt;/PRE&gt;
Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 14:51:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/both-file-and-directory-path-selection/m-p/6175234#M1372369</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-10-05T14:51:01Z</dc:date>
    </item>
  </channel>
</rss>

