<?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 search in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search/m-p/3732401#M898293</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;You can either use search help exit for this or if you want to use this function -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM &amp;lt;tablename&amp;gt; INTO TABLE it_tab where condition  . " based on werks and matnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SORT it_tab.&lt;/P&gt;&lt;P&gt;  DELETE ADJACENT DUPLICATES FROM it_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' " This function helps returning F4 help value to be displayed in internal table&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      retfield        = 'PROCESS'  " Table field&lt;/P&gt;&lt;P&gt;      dynpprog        = l_progname " Program Name&lt;/P&gt;&lt;P&gt;      dynpnr          = l_dynnum " Screen No&lt;/P&gt;&lt;P&gt;      dynprofield     = 'PROC_IO' " For which control to display the search help&lt;/P&gt;&lt;P&gt;      window_title    = 'Select Process' " Window Title&lt;/P&gt;&lt;P&gt;      value_org       = 'S' " Reading Structure wise&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      value_tab       = it_process " Values to be displayed&lt;/P&gt;&lt;P&gt;      return_tab      = it_return " Value selected&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      parameter_error = 1&lt;/P&gt;&lt;P&gt;      no_values_found = 2&lt;/P&gt;&lt;P&gt;      OTHERS          = 3.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 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;  ELSE.&lt;/P&gt;&lt;P&gt;    READ TABLE it_return INDEX 1.&lt;/P&gt;&lt;P&gt;    proc_io = it_return-fieldval.  " pass field value into proc_io control&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Apr 2008 17:47:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-28T17:47:16Z</dc:date>
    <item>
      <title>F4 search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search/m-p/3732399#M898291</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 have to search production version based on matnr and werks. The search result should come as standard search , but result based on matnr and werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to achieve the search  when i use &lt;STRONG&gt;F4IF_INT_TABLE_VALUE_REQUEST&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;But it doesnt display in the standard way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i dont give the above, i get the standard search page, but the matnr and werks are not considered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest a solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 15:49:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search/m-p/3732399#M898291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T15:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: F4 search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search/m-p/3732400#M898292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would use SE11, create a Z* search help.   Then attach your Z* search help to the SAP search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which search help do you want to change?   What transaction are you running?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 16:02:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search/m-p/3732400#M898292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T16:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: F4 search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search/m-p/3732401#M898293</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;You can either use search help exit for this or if you want to use this function -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM &amp;lt;tablename&amp;gt; INTO TABLE it_tab where condition  . " based on werks and matnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SORT it_tab.&lt;/P&gt;&lt;P&gt;  DELETE ADJACENT DUPLICATES FROM it_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' " This function helps returning F4 help value to be displayed in internal table&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      retfield        = 'PROCESS'  " Table field&lt;/P&gt;&lt;P&gt;      dynpprog        = l_progname " Program Name&lt;/P&gt;&lt;P&gt;      dynpnr          = l_dynnum " Screen No&lt;/P&gt;&lt;P&gt;      dynprofield     = 'PROC_IO' " For which control to display the search help&lt;/P&gt;&lt;P&gt;      window_title    = 'Select Process' " Window Title&lt;/P&gt;&lt;P&gt;      value_org       = 'S' " Reading Structure wise&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      value_tab       = it_process " Values to be displayed&lt;/P&gt;&lt;P&gt;      return_tab      = it_return " Value selected&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      parameter_error = 1&lt;/P&gt;&lt;P&gt;      no_values_found = 2&lt;/P&gt;&lt;P&gt;      OTHERS          = 3.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 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;  ELSE.&lt;/P&gt;&lt;P&gt;    READ TABLE it_return INDEX 1.&lt;/P&gt;&lt;P&gt;    proc_io = it_return-fieldval.  " pass field value into proc_io control&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 17:47:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search/m-p/3732401#M898293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T17:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: F4 search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search/m-p/3732402#M898294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Since you want to search on the basis of the two fields the best approach will be to create a new search help from se11. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this create a new FM for use in the search help in se37, you can copy the FM "F4IF_SHLP_EXIT_EXAMPLE" say z_search_help. Call this FM in the search help exit in the search help created through se11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside this z_search_help function module put your select statement after the line &lt;/P&gt;&lt;P&gt;IF CALLCONTROL-STEP = 'SELECT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; the return values should be filled into RECORD_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can proceed with creation of the search help as usual by defining the parameters, import and export parameters, etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when you run the search help you will get results based o the select querry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need more details.&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;Barjinder Singh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 20:34:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search/m-p/3732402#M898294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T20:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: F4 search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search/m-p/3732403#M898295</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;A search help already exists for thi sfield in se11. H_MKAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i use mfbf transaction. give the material number and werks and go for f4 in production version, i get the verid s based on metnr and werks.and the display is also standard way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to achieve similar functionality in a custom transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my transaction the matnr and werks are not considered. i want to correct this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Raghuram Chaluvadi on Apr 29, 2008 9:50 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 07:50:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search/m-p/3732403#M898295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T07:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: F4 search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search/m-p/3732404#M898296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should make sure that the other two fields you want considered in the F4 are "like" or "type" of the correct name for the searchhelp to pick up - the report example below should show you this in action:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report zlocal_jc_sdn_verid_f4.

parameters:
  p_field1     type mkal-verid,
  p_field2     type mkal-werks default 'JC',
  p_field3     type mkal-matnr.

start-of-selection.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.... if you change the values in field2 and field3 and then F4 on field1 to get the matchcode / searchhelp up you should see your values defaulted in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 08:17:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search/m-p/3732404#M898296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T08:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: F4 search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search/m-p/3732405#M898297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jonathan. It solved the problem. &lt;/P&gt;&lt;P&gt;Hoes does this decalaration affect the process. Does the search help check for the type or something like that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 09:00:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search/m-p/3732405#M898297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T09:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: F4 search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search/m-p/3732406#M898298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad it helped!... If you have the time to step through all the SAP code that fires when you select F4, I think you'll eventually find some code that looks at the data elements of the screen parameters and tries to match these against the input parameters for the searchhelp... also if you look in SE11 at the searchhelp and F1 on the Input Parameter checkbox and follow your nose a bit you can find a comment in the help about SAP using matching of field names... not sure how it copes if you have several fields all of the same data element - probably picks the first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 09:15:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search/m-p/3732406#M898298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T09:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: F4 search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search/m-p/3732407#M898299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;         I have also got the same requirement where i am have 3 fields in which if i select one field from the search help then it should display the other 2 fields automatically.&lt;/P&gt;&lt;P&gt;I have created the search help with import and export checkboxes have been selected. Can you give me solution for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 08:51:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search/m-p/3732407#M898299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T08:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: F4 search</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search/m-p/3732408#M898300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;         I have also got the same requirement where i am have 3 fields in which if i select one field from the search help then it should display the other 2 fields automatically.&lt;/P&gt;&lt;P&gt;I have created the search help with import and export checkboxes have been selected. Can you give me solution for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 09:10:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-search/m-p/3732408#M898300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T09:10:20Z</dc:date>
    </item>
  </channel>
</rss>

