<?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: Automatically filter based on selection option in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filter-based-on-selection-option/m-p/9633559#M1762108</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello John ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if you&amp;nbsp; want to filter your record from input provided by Select-option i think it can be solved by passing internal &lt;STRONG&gt;select-option low&lt;/STRONG&gt; and &lt;STRONG&gt;select-option high&amp;nbsp; with sign and option for Ranges as &lt;/STRONG&gt;&lt;SPAN class="j-post-author "&gt;&lt;SPAN class="jiveTT-hover-user jive-username-link"&gt;Mohammed said. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author "&gt;&lt;SPAN class="jiveTT-hover-user jive-username-link"&gt;i don't&amp;nbsp; known weather you use&amp;nbsp; classical alv or oops alv .&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author "&gt;&lt;SPAN class="jiveTT-hover-user jive-username-link"&gt;1) for classical alv in &lt;/SPAN&gt;&lt;/SPAN&gt;REUSE_ALV_GRID_DISPLAY&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;&lt;STRONG&gt;IT_FILTER &lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;TYPE&amp;nbsp; &lt;STRONG&gt;&lt;EM&gt;SLIS_T_FILTER_ALV&lt;/EM&gt;&lt;/STRONG&gt; is a parameter&amp;nbsp; you can fill that one and pass to function module and you can achieve your solution.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)we have also option for oop alv Fm &lt;STRONG&gt;set_table_for_first_display&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD r_alv_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_structure_name = 'FS' " --------&amp;gt;( Pass structure name )&lt;/P&gt;&lt;P&gt;is_layout = w_lay " ----&amp;gt; (Pass layout structure )&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;it_outtab = itab "----&amp;gt; (Pass internal table&amp;nbsp; which holds data )&lt;/P&gt;&lt;P&gt;it_fieldcatalog = t_cat&amp;nbsp; "-----&amp;gt;( Pass field catalogue)&lt;/P&gt;&lt;P&gt;it_sort = t_sort " -----&amp;gt; ( Pass Sort internal table)&lt;/P&gt;&lt;P&gt;it_filter = t_fil "----&amp;gt; ( Pass filter internal table ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;where filter table type as&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;w_fil TYPE lvc_s_filt,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;t_fil TYPE lvc_t_filt.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;for more detail&lt;/SPAN&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://wiki.sdn.sap.com/wiki/display/ABAP/ALV+TUTOTIAL+FOR+BEGINERS+WITH+EXAMPLES" title="http://wiki.sdn.sap.com/wiki/display/ABAP/ALV+TUTOTIAL+FOR+BEGINERS+WITH+EXAMPLES"&gt;http://wiki.sdn.sap.com/wiki/display/ABAP/ALV+TUTOTIAL+FOR+BEGINERS+WITH+EXAMPLES&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://wiki.sdn.sap.com/wiki/display/ABAP/ALV+TUTOTIAL+FOR+BEGINERS+WITH+EXAMPLES" title="http://wiki.sdn.sap.com/wiki/display/ABAP/ALV+TUTOTIAL+FOR+BEGINERS+WITH+EXAMPLES"&gt;http://wiki.sdn.sap.com/wiki/display/ABAP/ALV+TUTOTIAL+FOR+BEGINERS+WITH+EXAMPLES&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Hope Your Problem will be Solved...&lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1642/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jul 2013 05:00:13 GMT</pubDate>
    <dc:creator>SwadhinGhatuary</dc:creator>
    <dc:date>2013-07-19T05:00:13Z</dc:date>
    <item>
      <title>Automatically filter based on selection option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filter-based-on-selection-option/m-p/9633555#M1762104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was wondering how one could automatically filter a column of an alv based on a parameter from the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a program that generates a wide range of data and which I can then filter manually. In particular, I would like to stream line this process by adding the item I wish to to filter by as a selection option and then displaying the filtered results. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance for any advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 19:24:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filter-based-on-selection-option/m-p/9633555#M1762104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-18T19:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically filter based on selection option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filter-based-on-selection-option/m-p/9633556#M1762105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the problem?&lt;/P&gt;&lt;P&gt;List all the needed filter parameters in the selection screen as either 'select-option' or a 'Parameter'.&lt;/P&gt;&lt;P&gt;And then add to your select statement in the code, all there parameters in 'where' clause like&lt;/P&gt;&lt;P&gt;&lt;EM&gt;matnr = p_matnr &lt;/EM&gt; in case your field is parameter&lt;/P&gt;&lt;P&gt;&lt;EM&gt;matnr in so_matnr&lt;/EM&gt; in case your field is select-option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are talking about a standard transaction, then filtering is the only solution, in case this field is not available in Selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Jogeswara Rao K&lt;/EM&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 03:37:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filter-based-on-selection-option/m-p/9633556#M1762105</guid>
      <dc:creator>jogeswararao_kavala</dc:creator>
      <dc:date>2013-07-19T03:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically filter based on selection option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filter-based-on-selection-option/m-p/9633557#M1762106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just read the selection parameter values and then in the select statement which is used for displaying the result in ALV use the where clause to filter the values and store into an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish D R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 03:38:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filter-based-on-selection-option/m-p/9633557#M1762106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-19T03:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically filter based on selection option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filter-based-on-selection-option/m-p/9633558#M1762107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ALV itself has the option of filter and you can pass the select option here directly if needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fill the Select option value to the respective field and use it in the SET_FILTER_CRITERIA of the ALV Grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear wa_filter.&lt;/P&gt;&lt;P&gt;refresh it_filter.&lt;/P&gt;&lt;P&gt;wa_filter-fieldname = 'MATNR'.&lt;/P&gt;&lt;P&gt;wa_filter-tabname = 'IT_FINAL'.&lt;/P&gt;&lt;P&gt;wa_filter-valuf = '000000000000000225'.&lt;/P&gt;&lt;P&gt;wa_filter-valut = '000000000000000250'.&lt;/P&gt;&lt;P&gt;wa_filter-valuf_int = '000000000000000225'.&lt;/P&gt;&lt;P&gt;wa_filter-valut_int = '000000000000000250'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_filter-sign0 = 'E'.&lt;/P&gt;&lt;P&gt;wa_filter-optio = 'BT'.&lt;/P&gt;&lt;P&gt;append wa_filter to it_filter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 03:47:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filter-based-on-selection-option/m-p/9633558#M1762107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-19T03:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically filter based on selection option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filter-based-on-selection-option/m-p/9633559#M1762108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello John ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if you&amp;nbsp; want to filter your record from input provided by Select-option i think it can be solved by passing internal &lt;STRONG&gt;select-option low&lt;/STRONG&gt; and &lt;STRONG&gt;select-option high&amp;nbsp; with sign and option for Ranges as &lt;/STRONG&gt;&lt;SPAN class="j-post-author "&gt;&lt;SPAN class="jiveTT-hover-user jive-username-link"&gt;Mohammed said. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author "&gt;&lt;SPAN class="jiveTT-hover-user jive-username-link"&gt;i don't&amp;nbsp; known weather you use&amp;nbsp; classical alv or oops alv .&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author "&gt;&lt;SPAN class="jiveTT-hover-user jive-username-link"&gt;1) for classical alv in &lt;/SPAN&gt;&lt;/SPAN&gt;REUSE_ALV_GRID_DISPLAY&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;&lt;STRONG&gt;IT_FILTER &lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;TYPE&amp;nbsp; &lt;STRONG&gt;&lt;EM&gt;SLIS_T_FILTER_ALV&lt;/EM&gt;&lt;/STRONG&gt; is a parameter&amp;nbsp; you can fill that one and pass to function module and you can achieve your solution.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)we have also option for oop alv Fm &lt;STRONG&gt;set_table_for_first_display&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD r_alv_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_structure_name = 'FS' " --------&amp;gt;( Pass structure name )&lt;/P&gt;&lt;P&gt;is_layout = w_lay " ----&amp;gt; (Pass layout structure )&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;it_outtab = itab "----&amp;gt; (Pass internal table&amp;nbsp; which holds data )&lt;/P&gt;&lt;P&gt;it_fieldcatalog = t_cat&amp;nbsp; "-----&amp;gt;( Pass field catalogue)&lt;/P&gt;&lt;P&gt;it_sort = t_sort " -----&amp;gt; ( Pass Sort internal table)&lt;/P&gt;&lt;P&gt;it_filter = t_fil "----&amp;gt; ( Pass filter internal table ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;where filter table type as&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;w_fil TYPE lvc_s_filt,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;t_fil TYPE lvc_t_filt.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;for more detail&lt;/SPAN&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://wiki.sdn.sap.com/wiki/display/ABAP/ALV+TUTOTIAL+FOR+BEGINERS+WITH+EXAMPLES" title="http://wiki.sdn.sap.com/wiki/display/ABAP/ALV+TUTOTIAL+FOR+BEGINERS+WITH+EXAMPLES"&gt;http://wiki.sdn.sap.com/wiki/display/ABAP/ALV+TUTOTIAL+FOR+BEGINERS+WITH+EXAMPLES&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://wiki.sdn.sap.com/wiki/display/ABAP/ALV+TUTOTIAL+FOR+BEGINERS+WITH+EXAMPLES" title="http://wiki.sdn.sap.com/wiki/display/ABAP/ALV+TUTOTIAL+FOR+BEGINERS+WITH+EXAMPLES"&gt;http://wiki.sdn.sap.com/wiki/display/ABAP/ALV+TUTOTIAL+FOR+BEGINERS+WITH+EXAMPLES&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Hope Your Problem will be Solved...&lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1642/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 05:00:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatically-filter-based-on-selection-option/m-p/9633559#M1762108</guid>
      <dc:creator>SwadhinGhatuary</dc:creator>
      <dc:date>2013-07-19T05:00:13Z</dc:date>
    </item>
  </channel>
</rss>

