<?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/6222668#M1379387</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:26:31 GMT</pubDate>
    <dc:creator>former_member190178</dc:creator>
    <dc:date>2012-04-05T07:26:31Z</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/6222661#M1379380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on a table control , i need to add Filter functionality same as of ALV filter &lt;/P&gt;&lt;P&gt;i tried with suggestion given on SCN &lt;/P&gt;&lt;P&gt;Following is the code that i tried, but its not working, no popup with FM LVC_FILTER_DIALOG&lt;/P&gt;&lt;P&gt;please help me with sum more suggestion or sample code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : cp_vbak LIKE it_vbak OCCURS 0.
  DATA : it_fieldcat1 TYPE lvc_t_fcat,
         wa_fieldcat LIKE line of it_fieldcat1,
         it_group1 like  lvc_s_sgrp occurs 0,
         ls_group LIKE lvc_s_sgrp,
         filter_ranges TYPE lvc_t_filt.

DATA: counter TYPE i.

  counter = counter + 1.
  wa_fieldcat-col_pos    = counter.
  wa_fieldcat-fieldname  = 'VBELN'.
  wa_fieldcat-tabname    = 'IT_VBAK'.
   APPEND wa_fieldcat TO it_fieldcat1.
  CLEAR wa_fieldcat.

  counter = counter + 1.
  wa_fieldcat-col_pos    = counter.
  wa_fieldcat-fieldname  = 'VKORG'.
  wa_fieldcat-tabname    = 'IT_VBAK'.
  APPEND wa_fieldcat TO it_fieldcat1.
  CLEAR wa_fieldcat.

  counter = counter + 1.
  wa_fieldcat-col_pos    = counter.
  wa_fieldcat-fieldname  = 'VTWEG'.
  wa_fieldcat-tabname    = 'IT_VBAK'.
  APPEND wa_fieldcat TO it_fieldcat1.
  CLEAR wa_fieldcat.

  counter = counter + 1.
  wa_fieldcat-col_pos    = counter.
  wa_fieldcat-fieldname  = 'SPART'.
  wa_fieldcat-tabname    = 'IT_VBAK'.
  APPEND wa_fieldcat TO it_fieldcat1.
  CLEAR wa_fieldcat.

ls_group-SP_GROUP = '0001'.
ls_group-TEXT = 'VBELN'.
append ls_group to it_group1.

clear ls_group.
ls_group-SP_GROUP = '0002'.
ls_group-TEXT = 'VKORG'.
append ls_group to it_group1.

  cp_vbak[] = it_vbak[].

  CALL FUNCTION 'LVC_FILTER_DIALOG'
    EXPORTING
      it_fieldcat           = it_fieldcat1
      it_groups             = it_group1
*   IS_FILT_LAYOUT        =
*   I_NO_DIALOG           =
*   IT_EXCEPT_QINFO       =
    tables
      it_data               = it_vbak
    CHANGING
      ct_filter_lvc         = filter_ranges
* EXCEPTIONS
*   NO_CHANGE             = 1
*   OTHERS                = 2
            .
  IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
*Need to code more for Filter the internal table 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2009 09:19:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-option-in-table-control/m-p/6222661#M1379380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-12T09:19:45Z</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/6222662#M1379381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solved my self&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2009 10:27:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-option-in-table-control/m-p/6222662#M1379381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-12T10:27:15Z</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/6222663#M1379382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pihu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also trying to implement the filter functionality in a Table Conntriol. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used following two function modules to handle the filter option. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. CEP_DOUBLE_ALV: You will get the pop up to select you filtering fields.&lt;/P&gt;&lt;P&gt;2. LVC_FILTER_DIALOG: Second pop up to select the filtering data for the fields selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the second FM is giving an error 'filter internal error : 15'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u have already implemented this functionality, can u give me the sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 17:21:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-option-in-table-control/m-p/6222663#M1379382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-17T17:21:19Z</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/6222664#M1379383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phiu/Sai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have solved the problem..please paste the code. I m also having similar requirement.&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>Wed, 23 Jun 2010 06:55:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-option-in-table-control/m-p/6222664#M1379383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-23T06:55:15Z</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/6222665#M1379384</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;Can you please post the solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 00:47:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-option-in-table-control/m-p/6222665#M1379384</guid>
      <dc:creator>former_member206396</dc:creator>
      <dc:date>2011-11-14T00:47:19Z</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/6222666#M1379385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solved. FM used : K_KKB_OUTTAB_FILTER_CRITERIA_K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are other function modules too, we just need to pass data properly, otherwise it may result in &lt;/P&gt;&lt;P&gt;FILTER INTERNAL ERROR 15. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that, the number 15 meant for one of the exceptions in FM FREE_SELECTIONS_INIT. so fill-out the FIELDCATALOG.&lt;/P&gt;&lt;P&gt;15 - no filed type ( solution: pass DATATYPE and INTYPE  in field catalog structure)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 02:00:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-option-in-table-control/m-p/6222666#M1379385</guid>
      <dc:creator>former_member206396</dc:creator>
      <dc:date>2011-11-14T02:00:40Z</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/6222667#M1379386</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:25:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-option-in-table-control/m-p/6222667#M1379386</guid>
      <dc:creator>former_member190178</dc:creator>
      <dc:date>2012-04-05T07:25:37Z</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/6222668#M1379387</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:26:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filter-option-in-table-control/m-p/6222668#M1379387</guid>
      <dc:creator>former_member190178</dc:creator>
      <dc:date>2012-04-05T07:26:31Z</dc:date>
    </item>
  </channel>
</rss>

