<?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: Search help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1950648#M391639</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;        Follow this steps .&lt;/P&gt;&lt;P&gt;Step 1 - Create a custom Function Group in SE37 called ZSHLP&lt;/P&gt;&lt;P&gt;Step 2 -&lt;/P&gt;&lt;P&gt;1) In order to create a search help enhancement function, we need the interface parameters of function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Enhancing a Standard Search Help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module F4IF_SHLP_EXIT_EXAMPLE (of Function Group SDHI). Figures 2 &amp;amp; 3 show the &amp;#145;Changing&amp;#146; and&lt;/P&gt;&lt;P&gt;&amp;#145;Tables&amp;#146; parameters of F4IF_SHLP_EXIT_EXAMPLE.&lt;/P&gt;&lt;P&gt;Figure 2 &amp;#150; SE37 - Function Module &amp;#150; F4IF_SHLP_EXIT_EXAMPLE &amp;#150; Changing parameters&lt;/P&gt;&lt;P&gt;Figure 3 &amp;#150; SE37 - Function Module &amp;#150; F4IF_SHLP_EXIT_EXAMPLE &amp;#150; Tables parameters&lt;/P&gt;&lt;P&gt;2) Create a function module Z_CUSTOM_SEARCH within our custom function group ZSHLP (Figure 4).&lt;/P&gt;&lt;P&gt;Figure 4 &amp;#150; SE37 - Create Custom Function Z_CUSTOM_SEARCH within function group ZSHLP&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;*Enhancing a Standard Search Help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) We need to create a similar set of parameters within Z_CUSTOM_SEARCH, as exists in&lt;/P&gt;&lt;P&gt;F4IF_SHLP_EXIT_EXAMPLE. This is shown in Figures 5 &amp;amp; 6.&lt;/P&gt;&lt;P&gt;Figure 5 &amp;#150; SE37 &amp;#150; Function Module Z_CUSTOM_SEARCH with similar &amp;#145;Changing&amp;#146; parameters as function&lt;/P&gt;&lt;P&gt;module F4IF_SHLP_EXIT_EXAMPLE&lt;/P&gt;&lt;P&gt;Figure 6 &amp;#150; SE37 - Function Module Z_CUSTOM_SEARCH with similar &amp;#145;Tables&amp;#146; parameters as function&lt;/P&gt;&lt;P&gt;module F4IF_SHLP_EXIT_EXAMPLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 3 &amp;#150;&lt;/P&gt;&lt;P&gt;1) Within Function Module Z_CUSTOM_SEARCH go to Main Program as shown in Figure 7 and in the main&lt;/P&gt;&lt;P&gt;program TOP include, in this case INCLUDE LZSHLPTOP insert the following line&lt;/P&gt;&lt;P&gt;type-pools shlp.&lt;/P&gt;&lt;P&gt;Figure 7 &amp;#150; SE37&lt;/P&gt;&lt;P&gt;2) Save and activate the function module. You have the search help enhancement function framework ready&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 4 &amp;#150;&lt;/P&gt;&lt;P&gt;1) Go to SE11 &amp;#150; create a custom elementary search help called ZS_BILLTO&lt;/P&gt;&lt;P&gt;2) Assign the fields that you want to display on the selection condition as well as on the hit list as shown&lt;/P&gt;&lt;P&gt;below. LPos is the Hit-list position and SPos is the order of the fields on the search help selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Hit list fields in the ascending order of LPos values:&lt;/P&gt;&lt;P&gt;1 - Ship To Customer Number - KUNNR (Make sure this is an export field as this is what we want to put back&lt;/P&gt;&lt;P&gt;on the Ship-to or Sold-to party fields after the user double clicks on a value on the hit list)&lt;/P&gt;&lt;P&gt;2 - Ship to Customer Name &amp;#150; NAME1&lt;/P&gt;&lt;P&gt;3 - City &amp;#150; ORT01&lt;/P&gt;&lt;P&gt;4 - Street &amp;#150; STRAS&lt;/P&gt;&lt;P&gt;5 - Bill to Customer Number &amp;#150; KUNN2&lt;/P&gt;&lt;P&gt;4) The SPos position dictates the order in which the restriction fields will appear on the selection screen in the&lt;/P&gt;&lt;P&gt;search help tab. In the ascending order of SPos values:&lt;/P&gt;&lt;P&gt;1 - Account group - KTOKD&lt;/P&gt;&lt;P&gt;2 - Search term - SORTL&lt;/P&gt;&lt;P&gt;3 - Name &amp;#150; MCOD1&lt;/P&gt;&lt;P&gt;4 - City &amp;#150; ORT01&lt;/P&gt;&lt;P&gt;5 - Customer Number - KUNNR&lt;/P&gt;&lt;P&gt;5) As shown above, assign the custom function module Z_CUSTOM_SEARCH as Search help exit. We are&lt;/P&gt;&lt;P&gt;not using any Selection method for this example, since our selection is being done within the function module.&lt;/P&gt;&lt;P&gt;6) Since we want to restrict values in our example, we set the Dialog Type to &amp;#147;Dialog with value restriction&amp;#148;&lt;/P&gt;&lt;P&gt;and any Hot key as desired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 5 &amp;#150;&lt;/P&gt;&lt;P&gt;1) Go to SE11 &amp;#150; to Search help SD_DEBI and hit &amp;#145;Display&amp;#146; button&lt;/P&gt;&lt;P&gt;2) Go to &amp;#145;Included search helps&amp;#146; tab and hit Goto-&amp;gt; Append search help as shown below&lt;/P&gt;&lt;P&gt;3) You will be prompted to append the SD_DEBI search help with a proposed name ZASD_DEBI as shown&lt;/P&gt;&lt;P&gt;below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Hit&lt;/P&gt;&lt;P&gt;5) Go to the &amp;#145;Included search helps&amp;#146; tab of ZASD_DEBI. Here is where you will attach the custom search help&lt;/P&gt;&lt;P&gt;ZS_BILLTO created in Step 4. Select ZS_BILLTO and do the Parameter assignment for the value to be&lt;/P&gt;&lt;P&gt;transferred to the screen. We have set this to KUNNR for our example, to be pulled from the hit list to the&lt;/P&gt;&lt;P&gt;screen field when the user double clicks on a certain line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 6 &amp;#150;&lt;/P&gt;&lt;P&gt;If you read the standard SAP help for the enhancement as shown in the link below, it mentions how each of&lt;/P&gt;&lt;P&gt;the events come into play.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/EN/cf/21ee2b446011d189700000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/EN/cf/21ee2b446011d189700000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Calling the Search Help Exit&lt;/P&gt;&lt;P&gt;If a search help exit is assigned to a search help, the help processor calls it at the following times:&lt;/P&gt;&lt;P&gt;Before Displaying the Dialog Box for Selecting the Required Search Path.&lt;/P&gt;&lt;P&gt;It is only called for collective search helps. Using the search help exit, the set of elementary search helps&lt;/P&gt;&lt;P&gt;available can for example be restricted depending on the context.&lt;/P&gt;&lt;P&gt;Before Displaying the Dialog Box for Entering Search Conditions.&lt;/P&gt;&lt;P&gt;You can either influence the dialog for entering search conditions or skip it altogether here. You can also&lt;/P&gt;&lt;P&gt;influence how the selection screen looks.&lt;/P&gt;&lt;P&gt;Before Selecting Data.&lt;/P&gt;&lt;P&gt;The data selection can be partly or completely copied from the search help exit. This can become necessary&lt;/P&gt;&lt;P&gt;if the data selection cannot be implemented with a SELECT statement for a table or a view.&lt;/P&gt;&lt;P&gt;Before Displaying the Hit List.&lt;/P&gt;&lt;P&gt;You can influence the display of the hit list in this step with the search help exit. You can reduce the number&lt;/P&gt;&lt;P&gt;of values displayed here. For example, you can display only values for which the person calling the input help&lt;/P&gt;&lt;P&gt;has authorization. You can also copy the complete hit list from the search help exit.&lt;/P&gt;&lt;P&gt;Before Returning the Values Selected by the User to the Input Template&lt;/P&gt;&lt;P&gt;It could be advisable to intervene at this time if control of the further transaction flow should depend on the&lt;/P&gt;&lt;P&gt;value selected. A typical example is setting set/get parameters.&lt;/P&gt;&lt;P&gt;We are writing our code in the event of &amp;#147;Before Selecting Data&amp;#148; when callcontrol-step = &amp;#145;SELECT&amp;#146;. If you&lt;/P&gt;&lt;P&gt;wanted to further restrict the data in the hit list, you could filter it when callcontrol-step = &amp;#145;DISP&amp;#146;.&lt;/P&gt;&lt;P&gt;Step 7 &amp;#150; Within Function Module Z_CUSTOM_SEARCH put in the custom code for retrieving data within the&lt;/P&gt;&lt;P&gt;&amp;#145;SELECT&amp;#146; scenario of CALLCONTROL-STEP as shown in source code below. Make sure to set the next&lt;/P&gt;&lt;P&gt;event as CALLCONTROL-STEP = &amp;#145;DISP&amp;#146; within the code.&lt;/P&gt;&lt;P&gt;Code Sample&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;BEGIN OF CODE SAMPLE -&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;BEGIN OF INCLUDE LZSHLPTOP -&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------" /&gt;&lt;P&gt;FUNCTION-POOL zshlp. "MESSAGE-ID ..&lt;/P&gt;&lt;P&gt;Enhancing a Standard Search Help&lt;/P&gt;&lt;P&gt;© 2005 SAP AG The SAP Developer Network: &lt;A href="http://sdn.sap.com" target="test_blank"&gt;http://sdn.sap.com&lt;/A&gt; 12&lt;/P&gt;&lt;P&gt;TYPE-POOLS shlp.&lt;/P&gt;&lt;P&gt;TYPES:&lt;/P&gt;&lt;P&gt;BEGIN OF t_knvp,&lt;/P&gt;&lt;P&gt;kunnr TYPE kna1-kunnr,&lt;/P&gt;&lt;P&gt;name1 TYPE kna1-name1,&lt;/P&gt;&lt;P&gt;ort01 TYPE ort01_gp,&lt;/P&gt;&lt;P&gt;stras TYPE stras_gp,&lt;/P&gt;&lt;P&gt;kunn2 TYPE knvp-kunn2,&lt;/P&gt;&lt;P&gt;name1_2 TYPE kna1-name1,&lt;/P&gt;&lt;P&gt;END OF t_knvp.&lt;/P&gt;&lt;P&gt;DATA: i_knvp TYPE TABLE OF t_knvp,&lt;/P&gt;&lt;P&gt;wa_knvp TYPE t_knvp,&lt;/P&gt;&lt;P&gt;wa_selopt TYPE ddshselopt,&lt;/P&gt;&lt;P&gt;wa_fielddescr TYPE dfies.&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;rc TYPE i,&lt;/P&gt;&lt;P&gt;v_tabix LIKE sy-tabix.&lt;/P&gt;&lt;P&gt;RANGES: r_ktokd FOR kna1-ktokd,&lt;/P&gt;&lt;P&gt;r_mcod1 FOR kna1-name1,&lt;/P&gt;&lt;P&gt;r_sortl FOR kna1-sortl,&lt;/P&gt;&lt;P&gt;r_kunnr FOR kna1-kunnr,&lt;/P&gt;&lt;P&gt;r_ort01 FOR kna1-ort01.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;END OF INCLUDE LZSHLPTOP -&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;BEGIN OF FUNCTION MODULE Z_CUSTOM_SEARCH -&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------" /&gt;&lt;P&gt;FUNCTION z_custom_search.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local interface:&lt;/P&gt;&lt;P&gt;*" TABLES&lt;/P&gt;&lt;P&gt;*" SHLP_TAB TYPE SHLP_DESCR_TAB_T&lt;/P&gt;&lt;P&gt;*" RECORD_TAB STRUCTURE SEAHLPRES&lt;/P&gt;&lt;P&gt;*" CHANGING&lt;/P&gt;&lt;P&gt;*" VALUE(SHLP) TYPE SHLP_DESCR_T&lt;/P&gt;&lt;P&gt;*" VALUE(CALLCONTROL) LIKE DDSHF4CTRL STRUCTURE DDSHF4CTRL&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXIT immediately, if you do not want to handle this step&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CASE callcontrol-step.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;STEP SELECT (Select values)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This step may be used to overtake the data selection completely.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To skip the standard seletion, you should return 'DISP' as following&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;step in CALLCONTROL-STEP.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Normally RECORD_TAB should be filled after this step.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Enhancing a Standard Search Help&lt;/P&gt;&lt;P&gt;© 2005 SAP AG The SAP Developer Network: &lt;A href="http://sdn.sap.com" target="test_blank"&gt;http://sdn.sap.com&lt;/A&gt; 13&lt;/P&gt;&lt;P&gt;WHEN 'SELECT'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Change column header texts appearing on the search help hit list&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT shlp-fielddescr INTO wa_fielddescr.&lt;/P&gt;&lt;P&gt;v_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;CASE wa_fielddescr-fieldname.&lt;/P&gt;&lt;P&gt;WHEN 'KUNNR'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-fieldtext = 'ShipToCustomer#'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-reptext = 'ShipToCustomer#'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-scrtext_s = 'ShipTo #'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-scrtext_m = 'ShipToCustomer#'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-scrtext_l = 'ShipToCustomer#'.&lt;/P&gt;&lt;P&gt;MODIFY shlp-fielddescr FROM wa_fielddescr&lt;/P&gt;&lt;P&gt;INDEX v_tabix TRANSPORTING fieldtext reptext scrtext_s&lt;/P&gt;&lt;P&gt;scrtext_m scrtext_l.&lt;/P&gt;&lt;P&gt;WHEN 'KUNN2'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-reptext = 'BillToCustomer#'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-fieldtext = 'BillToCustomer#'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-scrtext_s = 'BillTo #'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-scrtext_m = 'BillToCustomer #'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-scrtext_l = 'BillToCustomer #'.&lt;/P&gt;&lt;P&gt;MODIFY shlp-fielddescr FROM wa_fielddescr&lt;/P&gt;&lt;P&gt;INDEX v_tabix TRANSPORTING fieldtext reptext scrtext_s&lt;/P&gt;&lt;P&gt;scrtext_m scrtext_l.&lt;/P&gt;&lt;P&gt;WHEN 'NAME1'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-fieldtext = 'ShipToCustomer Name'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-reptext = 'ShipToCustomer Name'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-scrtext_s = 'ShipTo Name'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-scrtext_m = 'ShipToCustomer Name'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-scrtext_l = 'ShipToCustomer Name'.&lt;/P&gt;&lt;P&gt;MODIFY shlp-fielddescr FROM wa_fielddescr&lt;/P&gt;&lt;P&gt;INDEX v_tabix TRANSPORTING fieldtext reptext scrtext_s&lt;/P&gt;&lt;P&gt;scrtext_m scrtext_l.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Select the Bill to party customer based on the select options&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;FREE: r_ktokd, r_kunnr, r_sortl, r_mcod1, r_ort01, i_knvp.&lt;/P&gt;&lt;P&gt;LOOP AT shlp-selopt INTO wa_selopt.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Build a Range for the 5 selection options of the search help&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CASE wa_selopt-shlpfield.&lt;/P&gt;&lt;P&gt;WHEN 'KTOKD'.&lt;/P&gt;&lt;P&gt;r_ktokd-sign = wa_selopt-sign.&lt;/P&gt;&lt;P&gt;r_ktokd-option = wa_selopt-option.&lt;/P&gt;&lt;P&gt;r_ktokd-low = wa_selopt-low.&lt;/P&gt;&lt;P&gt;r_ktokd-high = wa_selopt-high.&lt;/P&gt;&lt;P&gt;Enhancing a Standard Search Help&lt;/P&gt;&lt;P&gt;© 2005 SAP AG The SAP Developer Network: &lt;A href="http://sdn.sap.com" target="test_blank"&gt;http://sdn.sap.com&lt;/A&gt; 14&lt;/P&gt;&lt;P&gt;APPEND r_ktokd.&lt;/P&gt;&lt;P&gt;CLEAR r_ktokd.&lt;/P&gt;&lt;P&gt;WHEN 'KUNNR'.&lt;/P&gt;&lt;P&gt;r_kunnr-sign = wa_selopt-sign.&lt;/P&gt;&lt;P&gt;r_kunnr-option = wa_selopt-option.&lt;/P&gt;&lt;P&gt;r_kunnr-low = wa_selopt-low.&lt;/P&gt;&lt;P&gt;r_kunnr-high = wa_selopt-high.&lt;/P&gt;&lt;P&gt;APPEND r_kunnr.&lt;/P&gt;&lt;P&gt;CLEAR r_kunnr.&lt;/P&gt;&lt;P&gt;WHEN 'SORTL'.&lt;/P&gt;&lt;P&gt;r_sortl-sign = wa_selopt-sign.&lt;/P&gt;&lt;P&gt;r_sortl-option = wa_selopt-option.&lt;/P&gt;&lt;P&gt;r_sortl-low = wa_selopt-low.&lt;/P&gt;&lt;P&gt;r_sortl-high = wa_selopt-high.&lt;/P&gt;&lt;P&gt;APPEND r_sortl.&lt;/P&gt;&lt;P&gt;CLEAR r_sortl.&lt;/P&gt;&lt;P&gt;WHEN 'MCOD1'.&lt;/P&gt;&lt;P&gt;r_mcod1-sign = wa_selopt-sign.&lt;/P&gt;&lt;P&gt;r_mcod1-option = wa_selopt-option.&lt;/P&gt;&lt;P&gt;r_mcod1-low = wa_selopt-low.&lt;/P&gt;&lt;P&gt;r_mcod1-high = wa_selopt-high.&lt;/P&gt;&lt;P&gt;APPEND r_mcod1.&lt;/P&gt;&lt;P&gt;CLEAR r_mcod1.&lt;/P&gt;&lt;P&gt;WHEN 'ORT01'.&lt;/P&gt;&lt;P&gt;r_ort01-sign = wa_selopt-sign.&lt;/P&gt;&lt;P&gt;r_ort01-option = wa_selopt-option.&lt;/P&gt;&lt;P&gt;r_ort01-low = wa_selopt-low.&lt;/P&gt;&lt;P&gt;r_ort01-high = wa_selopt-high.&lt;/P&gt;&lt;P&gt;APPEND r_ort01.&lt;/P&gt;&lt;P&gt;CLEAR r_ort01.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Retrieve data from KNVP table for the above selected ranges&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Doing query to retrieve data for the search help&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT knvp~kunnr&lt;/P&gt;&lt;P&gt;kna1~name1&lt;/P&gt;&lt;P&gt;kna1~ort01&lt;/P&gt;&lt;P&gt;kna1~stras&lt;/P&gt;&lt;P&gt;knvp~kunn2&lt;/P&gt;&lt;P&gt;INTO TABLE i_knvp&lt;/P&gt;&lt;P&gt;FROM knvp&lt;/P&gt;&lt;P&gt;INNER JOIN kna1&lt;/P&gt;&lt;P&gt;ON knvp&lt;SUB&gt;kunnr = kna1&lt;/SUB&gt;kunnr&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;knvp~parvw = 'RE' AND " Bill to Party&lt;/P&gt;&lt;P&gt;knvp~kunnr IN r_kunnr AND&lt;/P&gt;&lt;P&gt;kna1~ktokd IN r_ktokd AND&lt;/P&gt;&lt;P&gt;kna1~sortl IN r_sortl AND&lt;/P&gt;&lt;P&gt;kna1~mcod1 IN r_mcod1 AND&lt;/P&gt;&lt;P&gt;kna1~ort01 IN r_ort01.&lt;/P&gt;&lt;P&gt;Enhancing a Standard Search Help&lt;/P&gt;&lt;P&gt;© 2005 SAP AG The SAP Developer Network: &lt;A href="http://sdn.sap.com" target="test_blank"&gt;http://sdn.sap.com&lt;/A&gt; 15&lt;/P&gt;&lt;P&gt;CHECK sy-subrc = 0.&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM i_knvp.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Select the short text for kunn2 from kna1.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Move all the selected records to Record_Tab&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT i_knvp INTO wa_knvp.&lt;/P&gt;&lt;P&gt;v_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;SELECT SINGLE name1 FROM kna1&lt;/P&gt;&lt;P&gt;INTO wa_knvp-name1_2&lt;/P&gt;&lt;P&gt;WHERE kunnr = wa_knvp-kunnr.&lt;/P&gt;&lt;P&gt;MOVE wa_knvp TO record_tab-string.&lt;/P&gt;&lt;P&gt;APPEND record_tab.&lt;/P&gt;&lt;P&gt;CLEAR record_tab.&lt;/P&gt;&lt;P&gt;MODIFY i_knvp FROM wa_knvp INDEX v_tabix.&lt;/P&gt;&lt;P&gt;CLEAR wa_knvp.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;rc = 0.&lt;/P&gt;&lt;P&gt;IF rc = 0.&lt;/P&gt;&lt;P&gt;callcontrol-step = 'DISP'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;callcontrol-step = 'EXIT'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;EXIT. "Don't process STEP DISP additionally in this call.&lt;/P&gt;&lt;P&gt;WHEN 'PRESEL1'.&lt;/P&gt;&lt;P&gt;WHEN 'DISP'.&lt;/P&gt;&lt;P&gt;WHEN OTHERS.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;END OF FUNCTION MODULE Z_CUSTOM_SEARCH -&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;END OF CODE SAMPLE -&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;Save and activate at every step.&lt;/P&gt;&lt;P&gt;Enhancing a Standard Search Help&lt;/P&gt;&lt;P&gt;© 2005 SAP AG The SAP Developer Network: &lt;A href="http://sdn.sap.com" target="test_blank"&gt;http://sdn.sap.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Output Result&lt;/P&gt;&lt;P&gt;1) After doing all of the above steps, its time to see the output! Go to transaction VA01, enter details like&lt;/P&gt;&lt;P&gt;Order Type and hit &amp;#145;Enter&amp;#146; to go to the second screen. Place cursor on the Ship-to party field at the header&lt;/P&gt;&lt;P&gt;section and hit &amp;#145;F4&amp;#146;. The last tab shows our custom search help &amp;#145;Custom Bill To Search&amp;#146;.&lt;/P&gt;&lt;P&gt;16&lt;/P&gt;&lt;P&gt;Enhancing a Standard Search Help&lt;/P&gt;&lt;P&gt;© 2005 SAP AG The SAP Developer Network: &lt;A href="http://sdn.sap.com" target="test_blank"&gt;http://sdn.sap.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2) Enter restriction values and hit enter to see the hit list result&lt;/P&gt;&lt;P&gt;3) Double clicking on any line, will bring back the value to the screen as seen below:&lt;/P&gt;&lt;P&gt;17&lt;/P&gt;&lt;P&gt;Enhancing a Standard Search Help&lt;/P&gt;&lt;P&gt;Conclusion&lt;/P&gt;&lt;P&gt;From the above example, we are able to filter based on the selection fields, change the column headers&amp;#146; text&lt;/P&gt;&lt;P&gt;appearing on the hit list and content of internal table RECORD_TAB, the contents of which are shown on the&lt;/P&gt;&lt;P&gt;hit list. As you can see, the search help exit is a powerful feature that greatly enhances the whole search help&lt;/P&gt;&lt;P&gt;functionality and makes life easier for business. You can do this for any standard SAP search help which will&lt;/P&gt;&lt;P&gt;reflect across all transactions which use that search help, thus making it global.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Feb 2007 06:13:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-09T06:13:32Z</dc:date>
    <item>
      <title>Search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1950647#M391638</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 need to create a search help which will filter the results according to a field in the screen. e.g., lets say i have selected a plant, then the search help should give results for that plant. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help me on how to do this.&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;Lilan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 06:07:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1950647#M391638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T06:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1950648#M391639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;        Follow this steps .&lt;/P&gt;&lt;P&gt;Step 1 - Create a custom Function Group in SE37 called ZSHLP&lt;/P&gt;&lt;P&gt;Step 2 -&lt;/P&gt;&lt;P&gt;1) In order to create a search help enhancement function, we need the interface parameters of function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Enhancing a Standard Search Help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module F4IF_SHLP_EXIT_EXAMPLE (of Function Group SDHI). Figures 2 &amp;amp; 3 show the &amp;#145;Changing&amp;#146; and&lt;/P&gt;&lt;P&gt;&amp;#145;Tables&amp;#146; parameters of F4IF_SHLP_EXIT_EXAMPLE.&lt;/P&gt;&lt;P&gt;Figure 2 &amp;#150; SE37 - Function Module &amp;#150; F4IF_SHLP_EXIT_EXAMPLE &amp;#150; Changing parameters&lt;/P&gt;&lt;P&gt;Figure 3 &amp;#150; SE37 - Function Module &amp;#150; F4IF_SHLP_EXIT_EXAMPLE &amp;#150; Tables parameters&lt;/P&gt;&lt;P&gt;2) Create a function module Z_CUSTOM_SEARCH within our custom function group ZSHLP (Figure 4).&lt;/P&gt;&lt;P&gt;Figure 4 &amp;#150; SE37 - Create Custom Function Z_CUSTOM_SEARCH within function group ZSHLP&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;*Enhancing a Standard Search Help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) We need to create a similar set of parameters within Z_CUSTOM_SEARCH, as exists in&lt;/P&gt;&lt;P&gt;F4IF_SHLP_EXIT_EXAMPLE. This is shown in Figures 5 &amp;amp; 6.&lt;/P&gt;&lt;P&gt;Figure 5 &amp;#150; SE37 &amp;#150; Function Module Z_CUSTOM_SEARCH with similar &amp;#145;Changing&amp;#146; parameters as function&lt;/P&gt;&lt;P&gt;module F4IF_SHLP_EXIT_EXAMPLE&lt;/P&gt;&lt;P&gt;Figure 6 &amp;#150; SE37 - Function Module Z_CUSTOM_SEARCH with similar &amp;#145;Tables&amp;#146; parameters as function&lt;/P&gt;&lt;P&gt;module F4IF_SHLP_EXIT_EXAMPLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 3 &amp;#150;&lt;/P&gt;&lt;P&gt;1) Within Function Module Z_CUSTOM_SEARCH go to Main Program as shown in Figure 7 and in the main&lt;/P&gt;&lt;P&gt;program TOP include, in this case INCLUDE LZSHLPTOP insert the following line&lt;/P&gt;&lt;P&gt;type-pools shlp.&lt;/P&gt;&lt;P&gt;Figure 7 &amp;#150; SE37&lt;/P&gt;&lt;P&gt;2) Save and activate the function module. You have the search help enhancement function framework ready&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 4 &amp;#150;&lt;/P&gt;&lt;P&gt;1) Go to SE11 &amp;#150; create a custom elementary search help called ZS_BILLTO&lt;/P&gt;&lt;P&gt;2) Assign the fields that you want to display on the selection condition as well as on the hit list as shown&lt;/P&gt;&lt;P&gt;below. LPos is the Hit-list position and SPos is the order of the fields on the search help selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Hit list fields in the ascending order of LPos values:&lt;/P&gt;&lt;P&gt;1 - Ship To Customer Number - KUNNR (Make sure this is an export field as this is what we want to put back&lt;/P&gt;&lt;P&gt;on the Ship-to or Sold-to party fields after the user double clicks on a value on the hit list)&lt;/P&gt;&lt;P&gt;2 - Ship to Customer Name &amp;#150; NAME1&lt;/P&gt;&lt;P&gt;3 - City &amp;#150; ORT01&lt;/P&gt;&lt;P&gt;4 - Street &amp;#150; STRAS&lt;/P&gt;&lt;P&gt;5 - Bill to Customer Number &amp;#150; KUNN2&lt;/P&gt;&lt;P&gt;4) The SPos position dictates the order in which the restriction fields will appear on the selection screen in the&lt;/P&gt;&lt;P&gt;search help tab. In the ascending order of SPos values:&lt;/P&gt;&lt;P&gt;1 - Account group - KTOKD&lt;/P&gt;&lt;P&gt;2 - Search term - SORTL&lt;/P&gt;&lt;P&gt;3 - Name &amp;#150; MCOD1&lt;/P&gt;&lt;P&gt;4 - City &amp;#150; ORT01&lt;/P&gt;&lt;P&gt;5 - Customer Number - KUNNR&lt;/P&gt;&lt;P&gt;5) As shown above, assign the custom function module Z_CUSTOM_SEARCH as Search help exit. We are&lt;/P&gt;&lt;P&gt;not using any Selection method for this example, since our selection is being done within the function module.&lt;/P&gt;&lt;P&gt;6) Since we want to restrict values in our example, we set the Dialog Type to &amp;#147;Dialog with value restriction&amp;#148;&lt;/P&gt;&lt;P&gt;and any Hot key as desired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 5 &amp;#150;&lt;/P&gt;&lt;P&gt;1) Go to SE11 &amp;#150; to Search help SD_DEBI and hit &amp;#145;Display&amp;#146; button&lt;/P&gt;&lt;P&gt;2) Go to &amp;#145;Included search helps&amp;#146; tab and hit Goto-&amp;gt; Append search help as shown below&lt;/P&gt;&lt;P&gt;3) You will be prompted to append the SD_DEBI search help with a proposed name ZASD_DEBI as shown&lt;/P&gt;&lt;P&gt;below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Hit&lt;/P&gt;&lt;P&gt;5) Go to the &amp;#145;Included search helps&amp;#146; tab of ZASD_DEBI. Here is where you will attach the custom search help&lt;/P&gt;&lt;P&gt;ZS_BILLTO created in Step 4. Select ZS_BILLTO and do the Parameter assignment for the value to be&lt;/P&gt;&lt;P&gt;transferred to the screen. We have set this to KUNNR for our example, to be pulled from the hit list to the&lt;/P&gt;&lt;P&gt;screen field when the user double clicks on a certain line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 6 &amp;#150;&lt;/P&gt;&lt;P&gt;If you read the standard SAP help for the enhancement as shown in the link below, it mentions how each of&lt;/P&gt;&lt;P&gt;the events come into play.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/EN/cf/21ee2b446011d189700000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/EN/cf/21ee2b446011d189700000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Calling the Search Help Exit&lt;/P&gt;&lt;P&gt;If a search help exit is assigned to a search help, the help processor calls it at the following times:&lt;/P&gt;&lt;P&gt;Before Displaying the Dialog Box for Selecting the Required Search Path.&lt;/P&gt;&lt;P&gt;It is only called for collective search helps. Using the search help exit, the set of elementary search helps&lt;/P&gt;&lt;P&gt;available can for example be restricted depending on the context.&lt;/P&gt;&lt;P&gt;Before Displaying the Dialog Box for Entering Search Conditions.&lt;/P&gt;&lt;P&gt;You can either influence the dialog for entering search conditions or skip it altogether here. You can also&lt;/P&gt;&lt;P&gt;influence how the selection screen looks.&lt;/P&gt;&lt;P&gt;Before Selecting Data.&lt;/P&gt;&lt;P&gt;The data selection can be partly or completely copied from the search help exit. This can become necessary&lt;/P&gt;&lt;P&gt;if the data selection cannot be implemented with a SELECT statement for a table or a view.&lt;/P&gt;&lt;P&gt;Before Displaying the Hit List.&lt;/P&gt;&lt;P&gt;You can influence the display of the hit list in this step with the search help exit. You can reduce the number&lt;/P&gt;&lt;P&gt;of values displayed here. For example, you can display only values for which the person calling the input help&lt;/P&gt;&lt;P&gt;has authorization. You can also copy the complete hit list from the search help exit.&lt;/P&gt;&lt;P&gt;Before Returning the Values Selected by the User to the Input Template&lt;/P&gt;&lt;P&gt;It could be advisable to intervene at this time if control of the further transaction flow should depend on the&lt;/P&gt;&lt;P&gt;value selected. A typical example is setting set/get parameters.&lt;/P&gt;&lt;P&gt;We are writing our code in the event of &amp;#147;Before Selecting Data&amp;#148; when callcontrol-step = &amp;#145;SELECT&amp;#146;. If you&lt;/P&gt;&lt;P&gt;wanted to further restrict the data in the hit list, you could filter it when callcontrol-step = &amp;#145;DISP&amp;#146;.&lt;/P&gt;&lt;P&gt;Step 7 &amp;#150; Within Function Module Z_CUSTOM_SEARCH put in the custom code for retrieving data within the&lt;/P&gt;&lt;P&gt;&amp;#145;SELECT&amp;#146; scenario of CALLCONTROL-STEP as shown in source code below. Make sure to set the next&lt;/P&gt;&lt;P&gt;event as CALLCONTROL-STEP = &amp;#145;DISP&amp;#146; within the code.&lt;/P&gt;&lt;P&gt;Code Sample&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;BEGIN OF CODE SAMPLE -&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;BEGIN OF INCLUDE LZSHLPTOP -&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------" /&gt;&lt;P&gt;FUNCTION-POOL zshlp. "MESSAGE-ID ..&lt;/P&gt;&lt;P&gt;Enhancing a Standard Search Help&lt;/P&gt;&lt;P&gt;© 2005 SAP AG The SAP Developer Network: &lt;A href="http://sdn.sap.com" target="test_blank"&gt;http://sdn.sap.com&lt;/A&gt; 12&lt;/P&gt;&lt;P&gt;TYPE-POOLS shlp.&lt;/P&gt;&lt;P&gt;TYPES:&lt;/P&gt;&lt;P&gt;BEGIN OF t_knvp,&lt;/P&gt;&lt;P&gt;kunnr TYPE kna1-kunnr,&lt;/P&gt;&lt;P&gt;name1 TYPE kna1-name1,&lt;/P&gt;&lt;P&gt;ort01 TYPE ort01_gp,&lt;/P&gt;&lt;P&gt;stras TYPE stras_gp,&lt;/P&gt;&lt;P&gt;kunn2 TYPE knvp-kunn2,&lt;/P&gt;&lt;P&gt;name1_2 TYPE kna1-name1,&lt;/P&gt;&lt;P&gt;END OF t_knvp.&lt;/P&gt;&lt;P&gt;DATA: i_knvp TYPE TABLE OF t_knvp,&lt;/P&gt;&lt;P&gt;wa_knvp TYPE t_knvp,&lt;/P&gt;&lt;P&gt;wa_selopt TYPE ddshselopt,&lt;/P&gt;&lt;P&gt;wa_fielddescr TYPE dfies.&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;rc TYPE i,&lt;/P&gt;&lt;P&gt;v_tabix LIKE sy-tabix.&lt;/P&gt;&lt;P&gt;RANGES: r_ktokd FOR kna1-ktokd,&lt;/P&gt;&lt;P&gt;r_mcod1 FOR kna1-name1,&lt;/P&gt;&lt;P&gt;r_sortl FOR kna1-sortl,&lt;/P&gt;&lt;P&gt;r_kunnr FOR kna1-kunnr,&lt;/P&gt;&lt;P&gt;r_ort01 FOR kna1-ort01.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;END OF INCLUDE LZSHLPTOP -&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;BEGIN OF FUNCTION MODULE Z_CUSTOM_SEARCH -&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------" /&gt;&lt;P&gt;FUNCTION z_custom_search.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local interface:&lt;/P&gt;&lt;P&gt;*" TABLES&lt;/P&gt;&lt;P&gt;*" SHLP_TAB TYPE SHLP_DESCR_TAB_T&lt;/P&gt;&lt;P&gt;*" RECORD_TAB STRUCTURE SEAHLPRES&lt;/P&gt;&lt;P&gt;*" CHANGING&lt;/P&gt;&lt;P&gt;*" VALUE(SHLP) TYPE SHLP_DESCR_T&lt;/P&gt;&lt;P&gt;*" VALUE(CALLCONTROL) LIKE DDSHF4CTRL STRUCTURE DDSHF4CTRL&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXIT immediately, if you do not want to handle this step&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CASE callcontrol-step.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;STEP SELECT (Select values)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This step may be used to overtake the data selection completely.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To skip the standard seletion, you should return 'DISP' as following&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;step in CALLCONTROL-STEP.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Normally RECORD_TAB should be filled after this step.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Enhancing a Standard Search Help&lt;/P&gt;&lt;P&gt;© 2005 SAP AG The SAP Developer Network: &lt;A href="http://sdn.sap.com" target="test_blank"&gt;http://sdn.sap.com&lt;/A&gt; 13&lt;/P&gt;&lt;P&gt;WHEN 'SELECT'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Change column header texts appearing on the search help hit list&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT shlp-fielddescr INTO wa_fielddescr.&lt;/P&gt;&lt;P&gt;v_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;CASE wa_fielddescr-fieldname.&lt;/P&gt;&lt;P&gt;WHEN 'KUNNR'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-fieldtext = 'ShipToCustomer#'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-reptext = 'ShipToCustomer#'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-scrtext_s = 'ShipTo #'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-scrtext_m = 'ShipToCustomer#'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-scrtext_l = 'ShipToCustomer#'.&lt;/P&gt;&lt;P&gt;MODIFY shlp-fielddescr FROM wa_fielddescr&lt;/P&gt;&lt;P&gt;INDEX v_tabix TRANSPORTING fieldtext reptext scrtext_s&lt;/P&gt;&lt;P&gt;scrtext_m scrtext_l.&lt;/P&gt;&lt;P&gt;WHEN 'KUNN2'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-reptext = 'BillToCustomer#'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-fieldtext = 'BillToCustomer#'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-scrtext_s = 'BillTo #'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-scrtext_m = 'BillToCustomer #'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-scrtext_l = 'BillToCustomer #'.&lt;/P&gt;&lt;P&gt;MODIFY shlp-fielddescr FROM wa_fielddescr&lt;/P&gt;&lt;P&gt;INDEX v_tabix TRANSPORTING fieldtext reptext scrtext_s&lt;/P&gt;&lt;P&gt;scrtext_m scrtext_l.&lt;/P&gt;&lt;P&gt;WHEN 'NAME1'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-fieldtext = 'ShipToCustomer Name'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-reptext = 'ShipToCustomer Name'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-scrtext_s = 'ShipTo Name'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-scrtext_m = 'ShipToCustomer Name'.&lt;/P&gt;&lt;P&gt;wa_fielddescr-scrtext_l = 'ShipToCustomer Name'.&lt;/P&gt;&lt;P&gt;MODIFY shlp-fielddescr FROM wa_fielddescr&lt;/P&gt;&lt;P&gt;INDEX v_tabix TRANSPORTING fieldtext reptext scrtext_s&lt;/P&gt;&lt;P&gt;scrtext_m scrtext_l.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Select the Bill to party customer based on the select options&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;FREE: r_ktokd, r_kunnr, r_sortl, r_mcod1, r_ort01, i_knvp.&lt;/P&gt;&lt;P&gt;LOOP AT shlp-selopt INTO wa_selopt.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Build a Range for the 5 selection options of the search help&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CASE wa_selopt-shlpfield.&lt;/P&gt;&lt;P&gt;WHEN 'KTOKD'.&lt;/P&gt;&lt;P&gt;r_ktokd-sign = wa_selopt-sign.&lt;/P&gt;&lt;P&gt;r_ktokd-option = wa_selopt-option.&lt;/P&gt;&lt;P&gt;r_ktokd-low = wa_selopt-low.&lt;/P&gt;&lt;P&gt;r_ktokd-high = wa_selopt-high.&lt;/P&gt;&lt;P&gt;Enhancing a Standard Search Help&lt;/P&gt;&lt;P&gt;© 2005 SAP AG The SAP Developer Network: &lt;A href="http://sdn.sap.com" target="test_blank"&gt;http://sdn.sap.com&lt;/A&gt; 14&lt;/P&gt;&lt;P&gt;APPEND r_ktokd.&lt;/P&gt;&lt;P&gt;CLEAR r_ktokd.&lt;/P&gt;&lt;P&gt;WHEN 'KUNNR'.&lt;/P&gt;&lt;P&gt;r_kunnr-sign = wa_selopt-sign.&lt;/P&gt;&lt;P&gt;r_kunnr-option = wa_selopt-option.&lt;/P&gt;&lt;P&gt;r_kunnr-low = wa_selopt-low.&lt;/P&gt;&lt;P&gt;r_kunnr-high = wa_selopt-high.&lt;/P&gt;&lt;P&gt;APPEND r_kunnr.&lt;/P&gt;&lt;P&gt;CLEAR r_kunnr.&lt;/P&gt;&lt;P&gt;WHEN 'SORTL'.&lt;/P&gt;&lt;P&gt;r_sortl-sign = wa_selopt-sign.&lt;/P&gt;&lt;P&gt;r_sortl-option = wa_selopt-option.&lt;/P&gt;&lt;P&gt;r_sortl-low = wa_selopt-low.&lt;/P&gt;&lt;P&gt;r_sortl-high = wa_selopt-high.&lt;/P&gt;&lt;P&gt;APPEND r_sortl.&lt;/P&gt;&lt;P&gt;CLEAR r_sortl.&lt;/P&gt;&lt;P&gt;WHEN 'MCOD1'.&lt;/P&gt;&lt;P&gt;r_mcod1-sign = wa_selopt-sign.&lt;/P&gt;&lt;P&gt;r_mcod1-option = wa_selopt-option.&lt;/P&gt;&lt;P&gt;r_mcod1-low = wa_selopt-low.&lt;/P&gt;&lt;P&gt;r_mcod1-high = wa_selopt-high.&lt;/P&gt;&lt;P&gt;APPEND r_mcod1.&lt;/P&gt;&lt;P&gt;CLEAR r_mcod1.&lt;/P&gt;&lt;P&gt;WHEN 'ORT01'.&lt;/P&gt;&lt;P&gt;r_ort01-sign = wa_selopt-sign.&lt;/P&gt;&lt;P&gt;r_ort01-option = wa_selopt-option.&lt;/P&gt;&lt;P&gt;r_ort01-low = wa_selopt-low.&lt;/P&gt;&lt;P&gt;r_ort01-high = wa_selopt-high.&lt;/P&gt;&lt;P&gt;APPEND r_ort01.&lt;/P&gt;&lt;P&gt;CLEAR r_ort01.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Retrieve data from KNVP table for the above selected ranges&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Doing query to retrieve data for the search help&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT knvp~kunnr&lt;/P&gt;&lt;P&gt;kna1~name1&lt;/P&gt;&lt;P&gt;kna1~ort01&lt;/P&gt;&lt;P&gt;kna1~stras&lt;/P&gt;&lt;P&gt;knvp~kunn2&lt;/P&gt;&lt;P&gt;INTO TABLE i_knvp&lt;/P&gt;&lt;P&gt;FROM knvp&lt;/P&gt;&lt;P&gt;INNER JOIN kna1&lt;/P&gt;&lt;P&gt;ON knvp&lt;SUB&gt;kunnr = kna1&lt;/SUB&gt;kunnr&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;knvp~parvw = 'RE' AND " Bill to Party&lt;/P&gt;&lt;P&gt;knvp~kunnr IN r_kunnr AND&lt;/P&gt;&lt;P&gt;kna1~ktokd IN r_ktokd AND&lt;/P&gt;&lt;P&gt;kna1~sortl IN r_sortl AND&lt;/P&gt;&lt;P&gt;kna1~mcod1 IN r_mcod1 AND&lt;/P&gt;&lt;P&gt;kna1~ort01 IN r_ort01.&lt;/P&gt;&lt;P&gt;Enhancing a Standard Search Help&lt;/P&gt;&lt;P&gt;© 2005 SAP AG The SAP Developer Network: &lt;A href="http://sdn.sap.com" target="test_blank"&gt;http://sdn.sap.com&lt;/A&gt; 15&lt;/P&gt;&lt;P&gt;CHECK sy-subrc = 0.&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM i_knvp.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Select the short text for kunn2 from kna1.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Move all the selected records to Record_Tab&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT i_knvp INTO wa_knvp.&lt;/P&gt;&lt;P&gt;v_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;SELECT SINGLE name1 FROM kna1&lt;/P&gt;&lt;P&gt;INTO wa_knvp-name1_2&lt;/P&gt;&lt;P&gt;WHERE kunnr = wa_knvp-kunnr.&lt;/P&gt;&lt;P&gt;MOVE wa_knvp TO record_tab-string.&lt;/P&gt;&lt;P&gt;APPEND record_tab.&lt;/P&gt;&lt;P&gt;CLEAR record_tab.&lt;/P&gt;&lt;P&gt;MODIFY i_knvp FROM wa_knvp INDEX v_tabix.&lt;/P&gt;&lt;P&gt;CLEAR wa_knvp.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;rc = 0.&lt;/P&gt;&lt;P&gt;IF rc = 0.&lt;/P&gt;&lt;P&gt;callcontrol-step = 'DISP'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;callcontrol-step = 'EXIT'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;EXIT. "Don't process STEP DISP additionally in this call.&lt;/P&gt;&lt;P&gt;WHEN 'PRESEL1'.&lt;/P&gt;&lt;P&gt;WHEN 'DISP'.&lt;/P&gt;&lt;P&gt;WHEN OTHERS.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;END OF FUNCTION MODULE Z_CUSTOM_SEARCH -&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;END OF CODE SAMPLE -&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;Save and activate at every step.&lt;/P&gt;&lt;P&gt;Enhancing a Standard Search Help&lt;/P&gt;&lt;P&gt;© 2005 SAP AG The SAP Developer Network: &lt;A href="http://sdn.sap.com" target="test_blank"&gt;http://sdn.sap.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Output Result&lt;/P&gt;&lt;P&gt;1) After doing all of the above steps, its time to see the output! Go to transaction VA01, enter details like&lt;/P&gt;&lt;P&gt;Order Type and hit &amp;#145;Enter&amp;#146; to go to the second screen. Place cursor on the Ship-to party field at the header&lt;/P&gt;&lt;P&gt;section and hit &amp;#145;F4&amp;#146;. The last tab shows our custom search help &amp;#145;Custom Bill To Search&amp;#146;.&lt;/P&gt;&lt;P&gt;16&lt;/P&gt;&lt;P&gt;Enhancing a Standard Search Help&lt;/P&gt;&lt;P&gt;© 2005 SAP AG The SAP Developer Network: &lt;A href="http://sdn.sap.com" target="test_blank"&gt;http://sdn.sap.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2) Enter restriction values and hit enter to see the hit list result&lt;/P&gt;&lt;P&gt;3) Double clicking on any line, will bring back the value to the screen as seen below:&lt;/P&gt;&lt;P&gt;17&lt;/P&gt;&lt;P&gt;Enhancing a Standard Search Help&lt;/P&gt;&lt;P&gt;Conclusion&lt;/P&gt;&lt;P&gt;From the above example, we are able to filter based on the selection fields, change the column headers&amp;#146; text&lt;/P&gt;&lt;P&gt;appearing on the hit list and content of internal table RECORD_TAB, the contents of which are shown on the&lt;/P&gt;&lt;P&gt;hit list. As you can see, the search help exit is a powerful feature that greatly enhances the whole search help&lt;/P&gt;&lt;P&gt;functionality and makes life easier for business. You can do this for any standard SAP search help which will&lt;/P&gt;&lt;P&gt;reflect across all transactions which use that search help, thus making it global.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 06:13:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1950648#M391639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T06:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1950649#M391640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use event AT SELECTION-SCREEN ON VALUE REQUEST FOR s-matnr. (ur field name) -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;demo code -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZGILL_VALUE_REQUEST                     .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of lt_all occurs 0.&lt;/P&gt;&lt;P&gt;        include structure DYNPREAD.&lt;/P&gt;&lt;P&gt;data  end of lt_all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of lt_selected occurs 0.&lt;/P&gt;&lt;P&gt;       include structure DDSHRETVAL.&lt;/P&gt;&lt;P&gt;data: end of lt_selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF lt_code OCCURS 0,&lt;/P&gt;&lt;P&gt;            code LIKE zgill_main-PERNR,&lt;/P&gt;&lt;P&gt;      END OF lt_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data no_dyn like sy-dynnr.&lt;/P&gt;&lt;P&gt;Parameters : ECODE like zgill_main-PERNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*parameters: pernr like pa0001-pernr .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no_dyn =  sy-dynnr.   "give the scren no directly or sy-dynnr in case of report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen on value-request for ECODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select PERNR into table lt_code from zgill_main.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        retfield               = 'ECODE'&lt;/P&gt;&lt;P&gt;        dynpprog               = sy-repid&lt;/P&gt;&lt;P&gt;       dynpnr                  = no_dyn&lt;/P&gt;&lt;P&gt;      dynprofield              =       'ECODE'&lt;/P&gt;&lt;P&gt;      window_title           = 'Employee Details'&lt;/P&gt;&lt;P&gt;       value_org              = 'S'&lt;/P&gt;&lt;P&gt;      DISPLAY                = 'F'&lt;/P&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;        value_tab             = lt_code&lt;/P&gt;&lt;P&gt;       RETURN_TAB             = lt_selected.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PARAMETER_ERROR        = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_VALUES_FOUND        = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                 = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*if sy-subrc eq '0' .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  write: 'success'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*endif.&lt;/P&gt;&lt;P&gt;read   table lt_selected index sy-tabix.&lt;/P&gt;&lt;P&gt;move lt_selected-fieldval to ECODE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 06:13:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1950649#M391640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T06:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1950650#M391641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Create a search help and in 'Selection Method' enter the table name from which you need the values.&lt;/P&gt;&lt;P&gt;'Dialog TYpe' = Display values immediately, in searche help parameter enter the fields you want, against the WERKS field which you have defined, in the default value give the standard parameter id 'WRK' (for werks).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2007 06:14:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1950650#M391641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-09T06:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1950651#M391642</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;  This is not a report. Its a normal program. I just need to put a restriction to the number of results shown from the search help depending on a screen field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any comments on how to do this?&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;Lilan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 09:11:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1950651#M391642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-15T09:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1950652#M391643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_field-low.&lt;/P&gt;&lt;P&gt;PERFORM search_help_fieldname . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM search_help_field .&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab_field OCCURS 0,&lt;/P&gt;&lt;P&gt;required fields.&lt;/P&gt;&lt;P&gt;END OF itab_field.&lt;/P&gt;&lt;P&gt;Selection query for HitList.(Which values you want to show in the Search Help) &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;retfield = 'fieldname'&lt;/P&gt;&lt;P&gt;dynpprog = sy-repid&lt;/P&gt;&lt;P&gt;dynpnr = sy-dynnr&lt;/P&gt;&lt;P&gt;dynprofield = 'S_field'&lt;/P&gt;&lt;P&gt;value_org = 'S'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;value_tab = itab_field&lt;/P&gt;&lt;P&gt;return_tab = t_return&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 EQ 0.&lt;/P&gt;&lt;P&gt;READ TABLE itab_charg INDEX 1. "transporting field&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;MOVE itab_field-fieldTO s_field-low.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way we can handle the Search Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 09:14:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1950652#M391643</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-02-15T09:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1950653#M391644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lilan , &lt;/P&gt;&lt;P&gt;   If you want to filter the data based in your input you will then have to use SERACH HELP exit , &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 09:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1950653#M391644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-15T09:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1950654#M391645</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 no knowledge about how to create the Search Help Exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lilan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 09:54:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1950654#M391645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-15T09:54:07Z</dc:date>
    </item>
  </channel>
</rss>

