<?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: How to get a default layout filter settings in to program. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-a-default-layout-filter-settings-in-to-program/m-p/9738316#M1772938</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Abaper,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can set the filtering condition in program level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare &lt;/P&gt;&lt;P&gt;w_fil TYPE lvc_s_filt,&lt;/P&gt;&lt;P&gt;t_fil TYPE lvc_t_filt.&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------fill the field&lt;/P&gt;&lt;P&gt;w_fil-fieldname = 'CARRID'.&amp;nbsp; " ----&amp;gt;( Field name )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_fil-sign = 'E'. " --&amp;gt;( Give sign E for excluding the set, I for including the set )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_fil-option = 'BT'.&amp;nbsp; "----&amp;gt; ( Give 'EQ' for only single value , 'BT' for ranges )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_fil-low = 'JL'. " ----&amp;gt; ( Mention value u want to exclude or include )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_fil-high = 'LH'. "----&amp;gt; ( Mention value u want to exclude or include )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND w_fil TO t_fil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR w_fil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_fil-fieldname = 'CITYFROM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; w_fil-sign = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_fil-option = 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; w_fil-low = 'NEW YORK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND w_fil TO t_fil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR w_fil.&lt;/P&gt;&lt;P&gt; ----------------------------------------------------------------------------------------------------------pass in alv&lt;/P&gt;&lt;P&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;&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_structure_name = 'FS' " --------&amp;gt;( Pass structure name )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is_layout = w_lay " ----&amp;gt; (Pass layout structure )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;it_fieldcatalog = t_cat&amp;nbsp; "-----&amp;gt;( Pass field catalogue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_sort = t_sort " -----&amp;gt; ( Pass Sort internal table)&lt;/P&gt;&lt;P&gt;&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;/P&gt;&lt;P&gt;for details&amp;nbsp; check below link&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://wiki.scn.sap.com/wiki/display/ABAP/Alv+with+sort+and+filter" title="http://wiki.scn.sap.com/wiki/display/ABAP/Alv+with+sort+and+filter"&gt;http://wiki.scn.sap.com/wiki/display/ABAP/Alv+with+sort+and+filter&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope you use oo alv report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will Help you &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1826/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Oct 2013 13:06:02 GMT</pubDate>
    <dc:creator>SwadhinGhatuary</dc:creator>
    <dc:date>2013-10-05T13:06:02Z</dc:date>
    <item>
      <title>How to get a default layout filter settings in to program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-a-default-layout-filter-settings-in-to-program/m-p/9738315#M1772937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my requirement let say the output has 100 records before displaying the ALV. During the default layout filter setting in the GUI for that report 5 records are getting filtered out and only 95 records are shown to the user. Is there a way to know to read the filter settings in the program so that I can display that 5 records out of 100 got filtered in the header portion of the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 21:48:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-a-default-layout-filter-settings-in-to-program/m-p/9738315#M1772937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-04T21:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a default layout filter settings in to program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-a-default-layout-filter-settings-in-to-program/m-p/9738316#M1772938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Abaper,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can set the filtering condition in program level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare &lt;/P&gt;&lt;P&gt;w_fil TYPE lvc_s_filt,&lt;/P&gt;&lt;P&gt;t_fil TYPE lvc_t_filt.&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------fill the field&lt;/P&gt;&lt;P&gt;w_fil-fieldname = 'CARRID'.&amp;nbsp; " ----&amp;gt;( Field name )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_fil-sign = 'E'. " --&amp;gt;( Give sign E for excluding the set, I for including the set )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_fil-option = 'BT'.&amp;nbsp; "----&amp;gt; ( Give 'EQ' for only single value , 'BT' for ranges )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_fil-low = 'JL'. " ----&amp;gt; ( Mention value u want to exclude or include )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_fil-high = 'LH'. "----&amp;gt; ( Mention value u want to exclude or include )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND w_fil TO t_fil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR w_fil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_fil-fieldname = 'CITYFROM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; w_fil-sign = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_fil-option = 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; w_fil-low = 'NEW YORK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND w_fil TO t_fil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR w_fil.&lt;/P&gt;&lt;P&gt; ----------------------------------------------------------------------------------------------------------pass in alv&lt;/P&gt;&lt;P&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;&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_structure_name = 'FS' " --------&amp;gt;( Pass structure name )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is_layout = w_lay " ----&amp;gt; (Pass layout structure )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;it_fieldcatalog = t_cat&amp;nbsp; "-----&amp;gt;( Pass field catalogue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_sort = t_sort " -----&amp;gt; ( Pass Sort internal table)&lt;/P&gt;&lt;P&gt;&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;/P&gt;&lt;P&gt;for details&amp;nbsp; check below link&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://wiki.scn.sap.com/wiki/display/ABAP/Alv+with+sort+and+filter" title="http://wiki.scn.sap.com/wiki/display/ABAP/Alv+with+sort+and+filter"&gt;http://wiki.scn.sap.com/wiki/display/ABAP/Alv+with+sort+and+filter&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope you use oo alv report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will Help you &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1826/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Oct 2013 13:06:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-a-default-layout-filter-settings-in-to-program/m-p/9738316#M1772938</guid>
      <dc:creator>SwadhinGhatuary</dc:creator>
      <dc:date>2013-10-05T13:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a default layout filter settings in to program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-a-default-layout-filter-settings-in-to-program/m-p/9738317#M1772939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uday,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if you have set any ALV filters in your code while calling the ALV. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or go to filters and see if any filter is active. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALV call will not do any filtering unless its been explicity coded or set. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debug your program to see if any other filtering in done on&amp;nbsp; your internal table. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Oct 2013 07:57:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-a-default-layout-filter-settings-in-to-program/m-p/9738317#M1772939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-06T07:57:38Z</dc:date>
    </item>
  </channel>
</rss>

