<?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: Filter Option in Table Control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-option-in-table-control/m-p/7008812#M1496330</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;we have done coding like below : But POP up is not coming from 2nd FM. Please help on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : cp_vbak LIKE it_vbak OCCURS 0.&lt;/P&gt;&lt;P&gt;  DATA : it_fieldcat1 TYPE lvc_t_fcat,&lt;/P&gt;&lt;P&gt;         wa_fieldcat LIKE line of it_fieldcat1,&lt;/P&gt;&lt;P&gt;         it_group1 like  lvc_s_sgrp occurs 0,&lt;/P&gt;&lt;P&gt;         ls_group LIKE lvc_s_sgrp,&lt;/P&gt;&lt;P&gt;         filter_ranges TYPE lvc_t_filt.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: counter TYPE i.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  counter = counter + 1.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-col_pos    = counter.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-fieldname  = 'VBELN'.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-tabname    = 'IT_VBAK'.&lt;/P&gt;&lt;P&gt;   APPEND wa_fieldcat TO it_fieldcat1.&lt;/P&gt;&lt;P&gt;  CLEAR wa_fieldcat.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  counter = counter + 1.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-col_pos    = counter.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-fieldname  = 'VKORG'.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-tabname    = 'IT_VBAK'.&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcat TO it_fieldcat1.&lt;/P&gt;&lt;P&gt;  CLEAR wa_fieldcat.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  counter = counter + 1.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-col_pos    = counter.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-fieldname  = 'VTWEG'.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-tabname    = 'IT_VBAK'.&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcat TO it_fieldcat1.&lt;/P&gt;&lt;P&gt;  CLEAR wa_fieldcat.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  counter = counter + 1.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-col_pos    = counter.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-fieldname  = 'SPART'.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-tabname    = 'IT_VBAK'.&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcat TO it_fieldcat1.&lt;/P&gt;&lt;P&gt;  CLEAR wa_fieldcat.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ls_group-SP_GROUP = '0001'.&lt;/P&gt;&lt;P&gt;ls_group-TEXT = 'VBELN'.&lt;/P&gt;&lt;P&gt;append ls_group to it_group1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;clear ls_group.&lt;/P&gt;&lt;P&gt;ls_group-SP_GROUP = '0002'.&lt;/P&gt;&lt;P&gt;ls_group-TEXT = 'VKORG'.&lt;/P&gt;&lt;P&gt;append ls_group to it_group1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  cp_vbak[] = it_vbak[].&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'LVC_FILTER_DIALOG'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      it_fieldcat           = it_fieldcat1&lt;/P&gt;&lt;P&gt;      it_groups             = it_group1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IS_FILT_LAYOUT        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_NO_DIALOG           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_EXCEPT_QINFO       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      it_data               = it_vbak&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      ct_filter_lvc         = filter_ranges&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;  NO_CHANGE             = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc  0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;*Need to code more for Filter the internal table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkatesh P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jun 2010 10:38:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-25T10:38:38Z</dc:date>
    <item>
      <title>Filter Option in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-option-in-table-control/m-p/7008810#M1496328</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 a new requirement to implement the filter option in table control .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any body having sample code or having any idea. Please give suggestions how to implement this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkatesh P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 13:20:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-option-in-table-control/m-p/7008810#M1496328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-22T13:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Option in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-option-in-table-control/m-p/7008811#M1496329</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;Check the below thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="8830060"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Also Check this for more info&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="9115202"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the above thread you can find a value in Table Control.&lt;/P&gt;&lt;P&gt;1)now you need to take a Temp ITAB and hold all the Values temporarily&lt;/P&gt;&lt;P&gt;2)Based on the Filter Value you need to delete other records from the Table Control and need to display only these Filterd recoreds. Make sure your original data should not get deleted at any cost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is Very simple if you use ALV Grid, i think so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 12:07:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-option-in-table-control/m-p/7008811#M1496329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-23T12:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Option in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-option-in-table-control/m-p/7008812#M1496330</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;we have done coding like below : But POP up is not coming from 2nd FM. Please help on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : cp_vbak LIKE it_vbak OCCURS 0.&lt;/P&gt;&lt;P&gt;  DATA : it_fieldcat1 TYPE lvc_t_fcat,&lt;/P&gt;&lt;P&gt;         wa_fieldcat LIKE line of it_fieldcat1,&lt;/P&gt;&lt;P&gt;         it_group1 like  lvc_s_sgrp occurs 0,&lt;/P&gt;&lt;P&gt;         ls_group LIKE lvc_s_sgrp,&lt;/P&gt;&lt;P&gt;         filter_ranges TYPE lvc_t_filt.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: counter TYPE i.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  counter = counter + 1.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-col_pos    = counter.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-fieldname  = 'VBELN'.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-tabname    = 'IT_VBAK'.&lt;/P&gt;&lt;P&gt;   APPEND wa_fieldcat TO it_fieldcat1.&lt;/P&gt;&lt;P&gt;  CLEAR wa_fieldcat.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  counter = counter + 1.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-col_pos    = counter.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-fieldname  = 'VKORG'.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-tabname    = 'IT_VBAK'.&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcat TO it_fieldcat1.&lt;/P&gt;&lt;P&gt;  CLEAR wa_fieldcat.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  counter = counter + 1.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-col_pos    = counter.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-fieldname  = 'VTWEG'.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-tabname    = 'IT_VBAK'.&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcat TO it_fieldcat1.&lt;/P&gt;&lt;P&gt;  CLEAR wa_fieldcat.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  counter = counter + 1.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-col_pos    = counter.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-fieldname  = 'SPART'.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-tabname    = 'IT_VBAK'.&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcat TO it_fieldcat1.&lt;/P&gt;&lt;P&gt;  CLEAR wa_fieldcat.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ls_group-SP_GROUP = '0001'.&lt;/P&gt;&lt;P&gt;ls_group-TEXT = 'VBELN'.&lt;/P&gt;&lt;P&gt;append ls_group to it_group1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;clear ls_group.&lt;/P&gt;&lt;P&gt;ls_group-SP_GROUP = '0002'.&lt;/P&gt;&lt;P&gt;ls_group-TEXT = 'VKORG'.&lt;/P&gt;&lt;P&gt;append ls_group to it_group1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  cp_vbak[] = it_vbak[].&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'LVC_FILTER_DIALOG'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      it_fieldcat           = it_fieldcat1&lt;/P&gt;&lt;P&gt;      it_groups             = it_group1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IS_FILT_LAYOUT        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_NO_DIALOG           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IT_EXCEPT_QINFO       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      it_data               = it_vbak&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      ct_filter_lvc         = filter_ranges&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;  NO_CHANGE             = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc  0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;*Need to code more for Filter the internal table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkatesh P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jun 2010 10:38:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-option-in-table-control/m-p/7008812#M1496330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-25T10:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Option in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filter-option-in-table-control/m-p/7008813#M1496331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 07:17:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-option-in-table-control/m-p/7008813#M1496331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-05T07:17:06Z</dc:date>
    </item>
  </channel>
</rss>

