<?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 Filter Search Help Based on Parameters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-search-help-based-on-parameters/m-p/9574619#M1755846</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'm required to filter the search help values based on certain parameters. I previously made the search help which would obtain all the records in associated in the table for the search help. However, it is required to filter the records that are displayed. &lt;/P&gt;&lt;P&gt;For example, I have the following records in a database...&lt;/P&gt;&lt;P&gt;A, 2013 &lt;/P&gt;&lt;P&gt;B, 2013&lt;/P&gt;&lt;P&gt;C, 2012&lt;/P&gt;&lt;P&gt;D, 2011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to only display in the search help records A and B, if the user inputs a value (2013) in a selection obligatory parameter before the user clicks the search help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if any additional information is needed. Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jul 2013 14:55:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-07-09T14:55:52Z</dc:date>
    <item>
      <title>Filter Search Help Based on Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-search-help-based-on-parameters/m-p/9574619#M1755846</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'm required to filter the search help values based on certain parameters. I previously made the search help which would obtain all the records in associated in the table for the search help. However, it is required to filter the records that are displayed. &lt;/P&gt;&lt;P&gt;For example, I have the following records in a database...&lt;/P&gt;&lt;P&gt;A, 2013 &lt;/P&gt;&lt;P&gt;B, 2013&lt;/P&gt;&lt;P&gt;C, 2012&lt;/P&gt;&lt;P&gt;D, 2011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to only display in the search help records A and B, if the user inputs a value (2013) in a selection obligatory parameter before the user clicks the search help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if any additional information is needed. Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 14:55:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-search-help-based-on-parameters/m-p/9574619#M1755846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-09T14:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Search Help Based on Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-search-help-based-on-parameters/m-p/9574620#M1755847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victoria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have created a new search help you can set the Import parameter for the Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the definition there is an option Dialog Behavior&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/243712" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The search help will filter it automatically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 06:45:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-search-help-based-on-parameters/m-p/9574620#M1755847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-10T06:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Search Help Based on Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-search-help-based-on-parameters/m-p/9574621#M1755848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That can be easily acheived.&lt;/P&gt;&lt;P&gt;In the below code, there are selection screen parameters, document no and year, ztable is the dictionary table from which it fetches values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no input for year selection screen field, on clicking F4 for belnr, it will return all the document numbers.&lt;/P&gt;&lt;P&gt;If some year has been entered, then it will only return those document number valid in the inputted year. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN class="L1S52"&gt;DATA: it_ret &lt;SPAN class="L1S52"&gt;TYPE&lt;/SPAN&gt; ddshretval &lt;SPAN class="L1S52"&gt;OCCURS&lt;/SPAN&gt; &lt;SPAN class="L1S32"&gt;0&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;WITH&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;HEADER&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;LINE&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;DATA: &lt;SPAN class="L1S52"&gt;BEGIN&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;OF&lt;/SPAN&gt; value_tab &lt;SPAN class="L1S52"&gt;OCCURS&lt;/SPAN&gt; &lt;SPAN class="L1S32"&gt;0&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YEAR &lt;SPAN class="L1S52"&gt;TYPE&lt;/SPAN&gt; GJAHR,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BELNR TYPE BELNR,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;END&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;OF&lt;/SPAN&gt; value_tab.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;select-options:&lt;/P&gt;&lt;P&gt;s_year for ztable-year &lt;SPAN class="L1S52"&gt;NO INTERVALS &lt;SPAN class="L1S52"&gt;NO&lt;/SPAN&gt;-EXTENSION,&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;s_belnr for ztable-belnr &lt;SPAN class="L1S52"&gt;NO INTERVALS &lt;SPAN class="L1S52"&gt;NO&lt;/SPAN&gt;-EXTENSION,&lt;/SPAN&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;AT SELECTION-&lt;SPAN class="L1S52"&gt;SCREEN&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;ON&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;VALUE&lt;/SPAN&gt;-REQUEST &lt;SPAN class="L1S52"&gt;FOR&lt;/SPAN&gt; s_belnr-low.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;CLEAR it_ret.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;if s_year is initial.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;SELECT&lt;/SPAN&gt; year belnr&amp;nbsp; &lt;SPAN class="L1S52"&gt;FROM&lt;/SPAN&gt; ztable &lt;SPAN class="L1S52"&gt;INTO&lt;/SPAN&gt; CORRESPONDING &lt;SPAN class="L1S52"&gt;FIELDS&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;OF&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;TABLE&lt;/SPAN&gt; value_tab .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;else &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L1S52"&gt;&lt;SPAN class="L1S52"&gt;SELECT&lt;/SPAN&gt; year belnr&amp;nbsp; &lt;SPAN class="L1S52"&gt;FROM&lt;/SPAN&gt; ztable &lt;SPAN class="L1S52"&gt;INTO&lt;/SPAN&gt; CORRESPONDING &lt;SPAN class="L1S52"&gt;FIELDS&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;OF&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;TABLE&lt;/SPAN&gt; value_tab where year in s_year.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;endif .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;CALL&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;FUNCTION&lt;/SPAN&gt; &lt;SPAN class="L1S33"&gt;'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; retfield&amp;nbsp;&amp;nbsp; = 'BELNR'&amp;nbsp; &lt;SPAN class="L1S31"&gt;field name in your value tab &lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value_org&amp;nbsp; = &lt;SPAN class="L1S33"&gt;'S'&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;TABLES&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value_tab&amp;nbsp; = value_tab[]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return_tab = it_ret[].&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="L1S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;IF sy-subrc &lt;SPAN class="L1S52"&gt;EQ&lt;/SPAN&gt; &lt;SPAN class="L1S32"&gt;0&lt;/SPAN&gt;.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;READ&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;TABLE&lt;/SPAN&gt; it_ret &lt;SPAN class="L1S52"&gt;INDEX&lt;/SPAN&gt; &lt;SPAN class="L1S32"&gt;1&lt;/SPAN&gt;.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; s_belnr-low = it_ret-fieldval.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;ENDIF&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN class="L1S52"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly revert in case of any doubt..&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 06:46:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-search-help-based-on-parameters/m-p/9574621#M1755848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-10T06:46:59Z</dc:date>
    </item>
  </channel>
</rss>

