<?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: F4 help in selection parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-in-selection-parameter/m-p/2784966#M649271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi premnath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_drctry.
  PERFORM get_dir CHANGING p_drctry.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  get_dir
*&amp;amp;---------------------------------------------------------------------*
FORM get_dir  CHANGING p_dir.
  DATA:
    lv_inidir
 TYPE string.
  l_dir                            = lv_inidir
                                   = p_dir.

  CALL METHOD cl_gui_frontend_services=&amp;gt;directory_browse
    EXPORTING
      window_title                 = 'Select Directory'
      initial_folder               = lv_inidir
    CHANGING
      selected_folder              = l_dir
    EXCEPTIONS
      cntl_error                   = 1
      error_no_gui                 = 2
*      not_supported_by_gui        = 3
      OTHERS                       = 4.
  CALL METHOD cl_gui_cfw=&amp;gt;flush.

  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE e000 WITH 'DIR Browse error' sy-subrc p_dir ''.
  ENDIF.
  p_dir                            = l_dir.

ENDFORM.                    " get_dir

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Sep 2007 14:40:49 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2007-09-15T14:40:49Z</dc:date>
    <item>
      <title>F4 help in selection parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-in-selection-parameter/m-p/2784965#M649270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;i have a prob in creating a f4 help for a parameter to download the error log file to windows using GUI_DOWNLOAD.&lt;/P&gt;&lt;P&gt;Parameter: p_error like rlgrap-filename. i tried fm KD_GET_FILENAME_ON_F4, but it selects the file but i need the folder name to be selected to be downloaded using gui_download.Pls help me in this issue &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Prem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Sep 2007 13:56:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-in-selection-parameter/m-p/2784965#M649270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-15T13:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help in selection parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-in-selection-parameter/m-p/2784966#M649271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi premnath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_drctry.
  PERFORM get_dir CHANGING p_drctry.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  get_dir
*&amp;amp;---------------------------------------------------------------------*
FORM get_dir  CHANGING p_dir.
  DATA:
    lv_inidir
 TYPE string.
  l_dir                            = lv_inidir
                                   = p_dir.

  CALL METHOD cl_gui_frontend_services=&amp;gt;directory_browse
    EXPORTING
      window_title                 = 'Select Directory'
      initial_folder               = lv_inidir
    CHANGING
      selected_folder              = l_dir
    EXCEPTIONS
      cntl_error                   = 1
      error_no_gui                 = 2
*      not_supported_by_gui        = 3
      OTHERS                       = 4.
  CALL METHOD cl_gui_cfw=&amp;gt;flush.

  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE e000 WITH 'DIR Browse error' sy-subrc p_dir ''.
  ENDIF.
  p_dir                            = l_dir.

ENDFORM.                    " get_dir

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Sep 2007 14:40:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-in-selection-parameter/m-p/2784966#M649271</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-09-15T14:40:49Z</dc:date>
    </item>
  </channel>
</rss>

