<?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 Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5565531#M1269721</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 FM 'F4_FILENAME' . Pass your selection parameter to this FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 May 2009 13:14:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-18T13:14:02Z</dc:date>
    <item>
      <title>F4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5565526#M1269716</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 creating one screen consisting of 2 fields:&lt;/P&gt;&lt;P&gt;1. Folder Selection&lt;/P&gt;&lt;P&gt;2. File Selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Requirement is hw to add F4 help to File Selection Field to select local file and add that into that field? This is module pool programming.&lt;/P&gt;&lt;P&gt;Can any one giv me a reply...&lt;/P&gt;&lt;P&gt;&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;Srinath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 10:30:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5565526#M1269716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T10:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5565527#M1269717</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;First you capture the input which you have given in the Issue no field using the following FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use FM 'C14Z_DYNP_READ_FIELD'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Instance it should be like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : v_field(255) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'C14Z_DYNP_READ_FIELD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_program = sy-repid&lt;/P&gt;&lt;P&gt;i_dynpro = sy-dynnr&lt;/P&gt;&lt;P&gt;i_fieldname = 'V_PLANT' "here specify your own field which u want to read&lt;/P&gt;&lt;P&gt;i_flg_steploop = ''&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;e_value = v_field. "Specify the variable inwhich u want to have the value and based on that u select other F4 help entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then based on the selected value select the data to shown in the select search help and apply that internal table in second field search help FM call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the FM "F4IF_INT_TABLE_VALUE_REQUEST"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/community &lt;B&gt;[original link is broken]&lt;/B&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 11:42:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5565527#M1269717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T11:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5565528#M1269718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt; Cut and paste without attribution from &lt;A href="http://www.saptechies.com/how-to-add-f4-help-to-a-field-on-screen-module-pool/" target="test_blank"&gt;http://www.saptechies.com/how-to-add-f4-help-to-a-field-on-screen-module-pool/&lt;/A&gt; removed &amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on May 18, 2009 4:08 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 12:02:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5565528#M1269718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T12:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5565529#M1269719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understood that u need F4 help which redirects to the folders in the local system.&lt;/P&gt;&lt;P&gt;The FM used for this is  'F4_FILENAME'&lt;/P&gt;&lt;P&gt;Ex : &lt;/P&gt;&lt;P&gt; CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      FILE_NAME = FILENAME. -&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;&amp;gt; Decleration FILENAME LIKE RLGRAP-FILENAME.&lt;/P&gt;&lt;P&gt;Hope this will be helpful to you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 12:10:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5565529#M1269719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T12:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5565530#M1269720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Srinath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the sample code ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to write the code in dynpro..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS AFTER INPUT.
* Module Screen Exit and Cancel Operation
  MODULE exit_screen_1020 AT EXIT-COMMAND.

*F4 Help
PROCESS ON VALUE-REQUEST.
  FIELD p_filename MODULE f4_choose_filename.


Module  f4_choose_filename INPUT . "INPUT
    CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
      EXPORTING
        i_location_flag = 'P'
        i_server        = ' '
        i_path          = p_filename 
        filemask        = ' '
        fileoperation   = 'R'
      IMPORTING
        o_path          = p_filename .
ENDMODULE.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 12:26:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5565530#M1269720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T12:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5565531#M1269721</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 FM 'F4_FILENAME' . Pass your selection parameter to this FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 13:14:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5565531#M1269721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T13:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5565532#M1269722</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;In screen flow logic (jn POV - PROCESS ON VALUE-REQUEST) you can use any of provided above FMs or you can do this using &lt;EM&gt;cl_gui_frontend_services&lt;/EM&gt; class and its static method &lt;EM&gt;file_open_dialog&lt;/EM&gt; .&lt;/P&gt;&lt;P&gt;Check this out: [read a file from directory using cl_gui_frontend_services|http://sapprograms.blogspot.com/2008/12/read-file-from-directory-using.html]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note. Althought using FMs is not banned, it is recommended to go for ABAP OO aproach, where new classes are derived from old FMs imporving their perfomance or filling some "gap". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 19:49:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5565532#M1269722</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-05-18T19:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5565533#M1269723</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 the following function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   parameters :   p_url TYPE localfile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'KD_GET_FILENAME_ON_F4'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      program_name  = syst-repid&lt;/P&gt;&lt;P&gt;      dynpro_number = syst-dynnr&lt;/P&gt;&lt;P&gt;      static        = 'X'&lt;/P&gt;&lt;P&gt;      mask          = ',Excel Worksheet,*.XLS'&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      file_name     = p_url&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      mask_too_long = 1&lt;/P&gt;&lt;P&gt;      OTHERS        = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Here p_url must be the parameter value also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   you write this function module in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    process ON VALUE-REQUEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field p_url module browse_file_9000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; where browse_file_9000 is the module which will have the function module call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this FM, you can restrict the file type also. For example, the above example will open only Excel file. If you want to open only text file, then in mask parameter you write as ',Text document,*.txt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 04:28:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/5565533#M1269723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T04:28:54Z</dc:date>
    </item>
  </channel>
</rss>

