<?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 on Selection screen parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen-parameter/m-p/4803515#M1124620</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishna,&lt;/P&gt;&lt;P&gt;You need to pick file name from the explorer browser, for that you may use the function module 'F4_FILENAME'.&lt;/P&gt;&lt;P&gt;parameters p_fnam type localfile.&lt;/P&gt;&lt;P&gt;define the event at selection-screen &lt;/P&gt;&lt;P&gt;At selection-screen on value-request for p_fnam.&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        program_name        = sy-cprog&lt;/P&gt;&lt;P&gt;        dynpro_number       = sy-dynnr&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FIELD_NAME          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        file_name           = p_fnam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will upload the filename into the variable p_fnam, which can be further used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps in resolving your issue.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Sachin Dargan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Dec 2008 04:37:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-01T04:37:31Z</dc:date>
    <item>
      <title>F4 help on Selection screen parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen-parameter/m-p/4803511#M1124616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone guide me on the procedure to provide f4 help on a parameter in the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is:&lt;/P&gt;&lt;P&gt; -  parameter declared of type 'localfile'  inside a selection-screen declared as a 'window'. &amp;amp; provide a f4 help to browse a local file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance.&lt;/P&gt;&lt;P&gt;Teja.gk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 16:44:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen-parameter/m-p/4803511#M1124616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-29T16:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help on Selection screen parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen-parameter/m-p/4803512#M1124617</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;At Selection on value request for p_file&lt;/P&gt;&lt;P&gt;You can call this FM FILENAME_GET &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link also:&lt;/P&gt;&lt;P&gt;&lt;A href="http://sapprograms.blogspot.com/2008/11/f4-for-files-on-presentation-or.html" target="test_blank"&gt;http://sapprograms.blogspot.com/2008/11/f4-for-files-on-presentation-or.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Neha Shukla on Nov 29, 2008 10:31 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 17:00:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen-parameter/m-p/4803512#M1124617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-29T17:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help on Selection screen parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen-parameter/m-p/4803513#M1124618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This link has solution for your problem:&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="980661"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try 'F4_FILENAME' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Neha Shukla on Nov 29, 2008 10:35 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 17:05:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen-parameter/m-p/4803513#M1124618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-29T17:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help on Selection screen parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen-parameter/m-p/4803514#M1124619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi krishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using this below class....cl_gui_frontend_services this wil surely help u..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a sample code.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: file_table.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: lt_file_names TYPE FILETABLE,&lt;/P&gt;&lt;P&gt;      lwa_file_name TYPE FILE_TABLE,&lt;/P&gt;&lt;P&gt;      lv_subrc TYPE i.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: so_file FOR file_table NO INTERVALS.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_file-low.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CALL METHOD cl_gui_frontend_services=&amp;gt;file_open_dialog&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    INITIAL_DIRECTORY       = 'C:Temp'&lt;/P&gt;&lt;P&gt;    MULTISELECTION          = 'X'&lt;/P&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    file_table              = lt_file_names[]&lt;/P&gt;&lt;P&gt;    rc                      = lv_subrc&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    FILE_OPEN_DIALOG_FAILED = 1&lt;/P&gt;&lt;P&gt;    CNTL_ERROR                        = 2&lt;/P&gt;&lt;P&gt;    ERROR_NO_GUI                    = 3&lt;/P&gt;&lt;P&gt;    others                                    = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc  0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 17:36:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen-parameter/m-p/4803514#M1124619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-29T17:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help on Selection screen parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen-parameter/m-p/4803515#M1124620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishna,&lt;/P&gt;&lt;P&gt;You need to pick file name from the explorer browser, for that you may use the function module 'F4_FILENAME'.&lt;/P&gt;&lt;P&gt;parameters p_fnam type localfile.&lt;/P&gt;&lt;P&gt;define the event at selection-screen &lt;/P&gt;&lt;P&gt;At selection-screen on value-request for p_fnam.&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        program_name        = sy-cprog&lt;/P&gt;&lt;P&gt;        dynpro_number       = sy-dynnr&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FIELD_NAME          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        file_name           = p_fnam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will upload the filename into the variable p_fnam, which can be further used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps in resolving your issue.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Sachin Dargan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2008 04:37:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen-parameter/m-p/4803515#M1124620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-01T04:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help on Selection screen parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen-parameter/m-p/4803516#M1124621</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;use this FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
 EXPORTING
*   PROGRAM_NAME        = SYST-REPID
*   DYNPRO_NUMBER       = SYST-DYNNR
*   FIELD_NAME          = ' '
   STATIC              = 'X'
*   MASK                = ' '
  CHANGING
   file_name           = file_nm
 EXCEPTIONS
   MASK_TOO_LONG       = 1
   OTHERS              = 2
          .
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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2008 04:39:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen-parameter/m-p/4803516#M1124621</guid>
      <dc:creator>former_member206439</dc:creator>
      <dc:date>2008-12-01T04:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help on Selection screen parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen-parameter/m-p/4803517#M1124622</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;PRE&gt;&lt;CODE&gt;
form F4_FILENAME .

     CALL FUNCTION 'F4_FILENAME'
    EXPORTING
      PROGRAM_NAME  = SYST-CPROG
      DYNPRO_NUMBER = SYST-DYNNR
    IMPORTING
      FILE_NAME     = P_FNAME
    EXCEPTIONS
      OTHERS        = 1.

endform.                    " F4_FILENAME
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Krishna..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2008 05:04:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-selection-screen-parameter/m-p/4803517#M1124622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-01T05:04:30Z</dc:date>
    </item>
  </channel>
</rss>

