<?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: ALV FILTER in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-filter/m-p/1694056#M304590</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Filter Concept not working on Output LIst.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    i was not populated any thing for filters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   if any need , how to do that ..?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Nov 2006 09:05:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-17T09:05:59Z</dc:date>
    <item>
      <title>ALV FILTER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-filter/m-p/1694050#M304584</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 am new to ALV .  using  reuse_alv_list_display i was generated output list. but this list was not  Filtering . How to Handle the Filtering for ALV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 08:08:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-filter/m-p/1694050#M304584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T08:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: ALV FILTER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-filter/m-p/1694051#M304585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out this sample program ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT z_anu_alv_sub_totals .

TYPE-POOLS: slis.

DATA: BEGIN OF it_output OCCURS 0,
          var1(8) TYPE n,
          var2(10),
          var3 TYPE I,
      END OF it_output.

DATA: it_fieldcat TYPE slis_t_fieldcat_alv,
       t_fieldcat TYPE slis_fieldcat_alv,
      it_sort TYPE slis_t_sortinfo_alv,
      t_sort TYPE slis_sortinfo_alv,
      v_repid LIKE sy-repid.

INITIALIZATION.
  v_repid = sy-repid.

START-OF-SELECTION.

  PERFORM get_data.
  PERFORM sort_fields.
  PERFORM fill_fieldcat.
  PERFORM list_display.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  GET_DATA
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM get_data.

  it_output-var1 = 1000.
  it_output-var2 = 'anupama'.
  it_output-var3 = '10000'.
  APPEND it_output.
  CLEAR it_output.

  it_output-var1 = 1000.
  it_output-var2 = 'siddhu'.
  it_output-var3 = '20000'.
  APPEND it_output.
  CLEAR it_output.

  it_output-var1 = 1000.
  it_output-var2 = 'chinni'.
  it_output-var3 = '100000'.
  APPEND it_output.
  CLEAR it_output.

  it_output-var1 = 2000.
  it_output-var2 = 'chicchu'.
  it_output-var3 = '10000'.
  APPEND it_output.
  CLEAR it_output.

  it_output-var1 = 2000.
  it_output-var2 = 'candy'.
  it_output-var3 = '10000'.
  APPEND it_output.
  CLEAR it_output.

  it_output-var1 = 1000.
  it_output-var2 = 'anupama'.
  it_output-var3 = '10000'.
  APPEND it_output.
  CLEAR it_output.

  it_output-var1 = 4000.
  it_output-var2 = 'anupama'.
  it_output-var3 = '10000'.
  APPEND it_output.
  CLEAR it_output.


ENDFORM.                    " GET_DATA

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  fill_fieldcat
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM fill_fieldcat.
  PERFORM fill_fields USING: 'IT_OUTPUT' 'VAR1' 'Variable 1' ' ',
                             'IT_OUTPUT' 'VAR2' 'Variable 2' ' ',
                             'IT_OUTPUT' 'VAR3' 'Variable 3' 'X'.

ENDFORM.                    " fill_fieldcat

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  fill_fields
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_0146   text
*      --&amp;gt;P_0147   text
*      --&amp;gt;P_0148   text
*      --&amp;gt;P_0149   text
*----------------------------------------------------------------------*
FORM fill_fields USING    value(tabname) TYPE slis_tabname
                          value(fieldname) TYPE slis_fieldname
                          value(seltext_m) LIKE dd03p-scrtext_m
                          value(do_sum) TYPE c.
  t_fieldcat-tabname = tabname.
  t_fieldcat-fieldname = fieldname.
  t_fieldcat-seltext_m  = seltext_m.
  IF do_sum = 'X'.
    t_fieldcat-datatype = 'CURR'.
  ENDIF.
  t_fieldcat-do_sum = do_sum.
  APPEND t_fieldcat TO it_fieldcat.
  CLEAR t_fieldcat.
ENDFORM.                    " fill_fields

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  list_display
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM list_display.
  CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
   EXPORTING
     i_callback_program             = v_repid
     it_fieldcat                    = it_fieldcat
     it_sort                        = it_sort[]
   TABLES
      t_outtab                       = it_output
   EXCEPTIONS
     program_error                  = 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.

ENDFORM.                    " list_display

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  sort_fields
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM sort_fields.
  t_sort-fieldname = 'VAR1'.
  t_sort-tabname = 'IT_OUTPUT'.
  t_sort-spos = 1.
  t_sort-up = 'X'.
  t_sort-subtot = 'X'.
  APPEND t_sort TO it_sort.
  CLEAR t_sort.

  t_sort-fieldname = 'VAR3'.
  t_sort-tabname = 'IT_OUTPUT'.
  t_sort-spos = 2.
  t_sort-up = 'X'.
  APPEND t_sort TO it_sort.
  CLEAR t_sort.

ENDFORM.                    " sort_fields&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 08:14:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-filter/m-p/1694051#M304585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T08:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: ALV FILTER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-filter/m-p/1694052#M304586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;please have a look at example programs in package SLIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_TEST_FULLSCREEN_FILTER&lt;/P&gt;&lt;P&gt;BCALV_TEST_FULLSCREEN_FILTCURR&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bernd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 08:18:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-filter/m-p/1694052#M304586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T08:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: ALV FILTER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-filter/m-p/1694053#M304587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I WANT HOW TO HANDLE THE FILTERS. NOT ABOUT SORTING.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 08:42:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-filter/m-p/1694053#M304587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T08:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: ALV FILTER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-filter/m-p/1694054#M304588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What Problems you are facing with filters. try to mention that . then we can figure out what can be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 09:00:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-filter/m-p/1694054#M304588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T09:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: ALV FILTER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-filter/m-p/1694055#M304589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;always notice how data is get stored in table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kna1-kunnr-0000100000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but in your alv list you can see customer code like 100000. &lt;/P&gt;&lt;P&gt;if you want to filter data with this code then in your filter condition &lt;/P&gt;&lt;P&gt;you have to type  0000100000. then only alv list will filter it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 09:02:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-filter/m-p/1694055#M304589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T09:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: ALV FILTER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-filter/m-p/1694056#M304590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Filter Concept not working on Output LIst.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    i was not populated any thing for filters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   if any need , how to do that ..?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 09:05:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-filter/m-p/1694056#M304590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T09:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: ALV FILTER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-filter/m-p/1694057#M304591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filter is default in TYPE-POOLS: slis.&lt;/P&gt;&lt;P&gt;contect your basis consultant. he will apply note for alv-filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 09:14:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-filter/m-p/1694057#M304591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T09:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: ALV FILTER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-filter/m-p/1694058#M304592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vallab,&lt;/P&gt;&lt;P&gt;give this for the field which you are facing problem with filter in your fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Fieldcat-edit_mask = '==ALPHA'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also check the OSS notes &lt;/P&gt;&lt;P&gt;Note 650888 - ALV filter: List does not show any data after filtering&lt;/P&gt;&lt;P&gt;This what it is mentioned in the notes.. and also check the related notes also.&lt;/P&gt;&lt;P&gt;Summary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Symptom &lt;/P&gt;&lt;P&gt;1. If you are filtering to a text in an ALV, for example 'Approved', no data is displayed in the list of results, even though there is data with 'Approved'.&lt;/P&gt;&lt;P&gt;              The list does not show any data after applying the filter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              After entering the filter value, lower case letters are converted into upper case, for example 'Approved' is changed to 'APPROVED'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Although individual data records are transferred at the interface, you cannot find them in the output.&lt;/P&gt;&lt;P&gt;Other terms &lt;/P&gt;&lt;P&gt;ABAP List Viewer, SAP List Viewer,&lt;/P&gt;&lt;P&gt;Filter icon, filter, funnel, condition, value set, value range, filter criteria, attribute instance, resulting set, restriction, filter symbol&lt;/P&gt;&lt;P&gt;empty list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reason and Prerequisites &lt;/P&gt;&lt;P&gt;1. The problem occurs if texts in lower case need to be filtered in the table, and the underlying field definition does not allow lower case to be used.&lt;/P&gt;&lt;P&gt;              Internal table texts are issued in lower case in the ALV. However, during the filtering, the system searches in the internal tables by using the internal format, in which only upper case is permitted. This means that no corresponding values are found. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. A layout was defined containing a filter that prevents the output of certain data records.&lt;/P&gt;&lt;P&gt;Solution &lt;/P&gt;&lt;P&gt;1. After entering the filter value, check whether the text entered is converted from lower to upper case. To do this, use the check button on the filter dialog box.&lt;/P&gt;&lt;P&gt;              Then if necessary, allow lower case to be used in the adjacent data element. This should be converted in the corresponding domain or field catalog by using LOWERCASE = X. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Delete the filter and check whether the missing data records are displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 09:28:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-filter/m-p/1694058#M304592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T09:28:53Z</dc:date>
    </item>
  </channel>
</rss>

