<?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 via function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-via-function-module/m-p/2884373#M677522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might help you...........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function module for search help F4IF_SHLP_EXIT_EXAMPLE&lt;/P&gt;&lt;P&gt;dynamic search help use 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check out the link below it will help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A repository object maintained in the ABAP Dictionary. It supplies input fields on Dynpros with single- or multi-column input helps. Search helps can be linked in the Dictionary with components from structures, data elements, and check tables. A search help enables you to search for entry values with assigned data, without you having to know the exact spelling of the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/EN/cf/21ee52446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/EN/cf/21ee52446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------" /&gt;&lt;P&gt;please explain in details with step by step process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create a search help exit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. create an fm with this 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;put this logic in it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Delete duplicate filter logic.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This logic only needs to apply at the 'DISP' event - which is just&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;before the hit list is displayed&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if callcontrol-step = 'DISP'.&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from record_tab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. edit your search help in se11 and enter the name of the above search help exit fm&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------" /&gt;&lt;P&gt;check this sample code..for dynamic search help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZTEST_F4HELP .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*---Report with selection screen and to display the list of&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;possible entries for field 'B' as per the value in field 'A'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_vbeln type vbak-vbeln,&lt;/P&gt;&lt;P&gt;p_posnr type vbap-posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of help_item occurs 0,&lt;/P&gt;&lt;P&gt;posnr type vbap-posnr,&lt;/P&gt;&lt;P&gt;matnr type vbap-matnr,&lt;/P&gt;&lt;P&gt;arktx type vbap-arktx,&lt;/P&gt;&lt;P&gt;end of help_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: dynfields type table of dynpread with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dynfields-fieldname = 'P_VBELN'.&lt;/P&gt;&lt;P&gt;append dynfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;dyname = sy-cprog&lt;/P&gt;&lt;P&gt;dynumb = sy-dynnr&lt;/P&gt;&lt;P&gt;translate_to_upper = 'X'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;dynpfields = dynfields&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;invalid_abapworkarea = 1&lt;/P&gt;&lt;P&gt;invalid_dynprofield = 2&lt;/P&gt;&lt;P&gt;invalid_dynproname = 3&lt;/P&gt;&lt;P&gt;invalid_dynpronummer = 4&lt;/P&gt;&lt;P&gt;invalid_request = 5&lt;/P&gt;&lt;P&gt;no_fielddescription = 6&lt;/P&gt;&lt;P&gt;invalid_parameter = 7&lt;/P&gt;&lt;P&gt;undefind_error = 8&lt;/P&gt;&lt;P&gt;double_conversion = 9&lt;/P&gt;&lt;P&gt;stepl_not_found = 10&lt;/P&gt;&lt;P&gt;others = 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table dynfields with key fieldname = 'P_VBELN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_vbeln = dynfields-fieldvalue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;input = p_vbeln&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;output = p_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select posnr matnr arktx into table help_item&lt;/P&gt;&lt;P&gt;from vbap&lt;/P&gt;&lt;P&gt;where vbeln = p_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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 = 'POSNR'&lt;/P&gt;&lt;P&gt;dynprofield = 'P_POSNR'&lt;/P&gt;&lt;P&gt;dynpprog = sy-cprog&lt;/P&gt;&lt;P&gt;dynpnr = sy-dynnr&lt;/P&gt;&lt;P&gt;value_org = 'S'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;value_tab = help_item.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------" /&gt;&lt;P&gt;also check this link it will help you&lt;/P&gt;&lt;P&gt;/message/3854825#3854825 &lt;B&gt;[original link is broken]&lt;/B&gt;&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;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Sep 2007 09:46:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-21T09:46:11Z</dc:date>
    <item>
      <title>Search Help via function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-via-function-module/m-p/2884370#M677519</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 developped a search-help exit like F4IF_SHLP_EXIT_EXAMPLE. And now I want to enable F4 value help for the rectriction parameters. I know this FM to enable required parameters ( F4UT_PARAMETER_REQUIRED) I need some similar to enable F4 help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone lead me to some documents or some tips I that could be usefull to me ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2007 08:36:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-via-function-module/m-p/2884370#M677519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-21T08:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Search Help via function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-via-function-module/m-p/2884371#M677520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;f4int_table_value_display&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2007 08:38:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-via-function-module/m-p/2884371#M677520</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2007-09-21T08:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Search Help via function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-via-function-module/m-p/2884372#M677521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cant find this FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2007 09:44:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-via-function-module/m-p/2884372#M677521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-21T09:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Search Help via function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-via-function-module/m-p/2884373#M677522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might help you...........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function module for search help F4IF_SHLP_EXIT_EXAMPLE&lt;/P&gt;&lt;P&gt;dynamic search help use 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check out the link below it will help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A repository object maintained in the ABAP Dictionary. It supplies input fields on Dynpros with single- or multi-column input helps. Search helps can be linked in the Dictionary with components from structures, data elements, and check tables. A search help enables you to search for entry values with assigned data, without you having to know the exact spelling of the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/EN/cf/21ee52446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/EN/cf/21ee52446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------" /&gt;&lt;P&gt;please explain in details with step by step process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create a search help exit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. create an fm with this 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;put this logic in it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Delete duplicate filter logic.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This logic only needs to apply at the 'DISP' event - which is just&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;before the hit list is displayed&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if callcontrol-step = 'DISP'.&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from record_tab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. edit your search help in se11 and enter the name of the above search help exit fm&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------" /&gt;&lt;P&gt;check this sample code..for dynamic search help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZTEST_F4HELP .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*---Report with selection screen and to display the list of&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;possible entries for field 'B' as per the value in field 'A'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_vbeln type vbak-vbeln,&lt;/P&gt;&lt;P&gt;p_posnr type vbap-posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of help_item occurs 0,&lt;/P&gt;&lt;P&gt;posnr type vbap-posnr,&lt;/P&gt;&lt;P&gt;matnr type vbap-matnr,&lt;/P&gt;&lt;P&gt;arktx type vbap-arktx,&lt;/P&gt;&lt;P&gt;end of help_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: dynfields type table of dynpread with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dynfields-fieldname = 'P_VBELN'.&lt;/P&gt;&lt;P&gt;append dynfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;dyname = sy-cprog&lt;/P&gt;&lt;P&gt;dynumb = sy-dynnr&lt;/P&gt;&lt;P&gt;translate_to_upper = 'X'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;dynpfields = dynfields&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;invalid_abapworkarea = 1&lt;/P&gt;&lt;P&gt;invalid_dynprofield = 2&lt;/P&gt;&lt;P&gt;invalid_dynproname = 3&lt;/P&gt;&lt;P&gt;invalid_dynpronummer = 4&lt;/P&gt;&lt;P&gt;invalid_request = 5&lt;/P&gt;&lt;P&gt;no_fielddescription = 6&lt;/P&gt;&lt;P&gt;invalid_parameter = 7&lt;/P&gt;&lt;P&gt;undefind_error = 8&lt;/P&gt;&lt;P&gt;double_conversion = 9&lt;/P&gt;&lt;P&gt;stepl_not_found = 10&lt;/P&gt;&lt;P&gt;others = 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table dynfields with key fieldname = 'P_VBELN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_vbeln = dynfields-fieldvalue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;input = p_vbeln&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;output = p_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select posnr matnr arktx into table help_item&lt;/P&gt;&lt;P&gt;from vbap&lt;/P&gt;&lt;P&gt;where vbeln = p_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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 = 'POSNR'&lt;/P&gt;&lt;P&gt;dynprofield = 'P_POSNR'&lt;/P&gt;&lt;P&gt;dynpprog = sy-cprog&lt;/P&gt;&lt;P&gt;dynpnr = sy-dynnr&lt;/P&gt;&lt;P&gt;value_org = 'S'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;value_tab = help_item.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------" /&gt;&lt;P&gt;also check this link it will help you&lt;/P&gt;&lt;P&gt;/message/3854825#3854825 &lt;B&gt;[original link is broken]&lt;/B&gt;&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;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2007 09:46:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-via-function-module/m-p/2884373#M677522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-21T09:46:11Z</dc:date>
    </item>
  </channel>
</rss>

