ALV: cannot filter multiple columns at a time

Hi,
I'm trying to fix a problem in a report that uses ALV grid: when I try to filter the grid content by choosing a multi-column criteria, I get prompted only to enter the first column selection criteria. That is, I multi-select 2 or more columns, right click, then Set Filter...; I get the selection only for the first selected column. I know this is a built-in feature of ALV grid, is there a parameter I'm missing when I build the grid?
Thanks a lot,
Dinu
Here are some code snippets:
FORM output_report.
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
            i_callback_program = 'ZRRRMPROJSTAT'
            is_layout          = gs_layout
            it_fieldcat        = gt_fieldcat
            it_sort            = gt_sort
            i_save             = 'A'
            it_events          = gt_events
       TABLES
            t_outtab           = i_project
       EXCEPTIONS
            program_error      = 1
            OTHERS             = 2.
ENDFORM.                    " output_report
FORM build_fieldcat.
  DATA: s_fieldcat TYPE slis_fieldcat_alv.
  DATA: l_col_count like s_fieldcat-col_pos.
  l_col_count = 1.
  CLEAR s_fieldcat.
  s_fieldcat-col_pos       = l_col_count.
  l_col_count = l_col_count + 1.
  s_fieldcat-tabname       = i_project.
  s_fieldcat-fieldname     = 'PSPID'.
  s_fieldcat-datatype      = 'CHAR'.
  s_fieldcat-outputlen     = '10'.
  s_fieldcat-seltext_l     = 'Project Number'.
  s_fieldcat-seltext_m     = 'Project Number'.
  s_fieldcat-seltext_s     = 'Project Number'.
  s_fieldcat-key           = 'X'.
  s_fieldcat-fix_column    = 'X'.
  s_fieldcat-just          = 'C'.
  s_fieldcat-no_zero       = 'X'.
  APPEND s_fieldcat TO gt_fieldcat.
and so on....
ENDFORM
FORM sort_layout.
  DATA: ls_sort TYPE slis_sortinfo_alv.
  REFRESH gt_sort.
  CLEAR ls_sort.
  ls_sort-spos       = '1'.
  ls_sort-tabname    = 'i_project'.
  ls_sort-fieldname  = 'PSPID'.
  APPEND ls_sort TO gt_sort.
  CLEAR ls_sort.
  ls_sort-spos       = '2'.
  ls_sort-tabname    = 'i_project'.
  ls_sort-fieldname  = 'POSID'.
  APPEND ls_sort TO gt_sort.
ENDFORM.                    " sort_layout
FORM build_layout.
  CLEAR gs_layout.
gs_layout-totals_before_items = 'X'.
  gs_layout-zebra = 'X'.
  gs_layout-numc_sum = 'X'.
  gs_layout-get_selinfos = 'X'.
  gs_layout-box_tabname = 'X'.
  gs_layout-info_fieldname = 'COLOR'.
ENDFORM.                    "

Hi,
I think there is no prob with ALV, U follow steps as:
click on alv Set filter button.
then transfer column names to filter field list,
on same screen filter button is there click it,
now it will ask for both filter criteria.
I am sure it will do, Award if it helps
Jogdand M B

Similar Messages

  • SAPGUI JAVA 7.10 (OSX 10.5.1): cannot select multiple columns in ALV

    Hi,
    in sapgui java 7.10 (on mac osx 10.5.1) I cannot select multiple columns in ALV reports.
    I can do it only in some transactions (like SE16). But on all our custom reports (REUSE_ALV_GRID_DISPLAY) in does not work.
    Any hint?
    Many thanks,
    Lorenzo

    Hi Lorenzo,
    did you double check if selecting multiple columns works with SAP GUI for Windows in the same report?
    If yes, I suggest to file a bug report so we can do a remote logon to run your custom report.
    If not it might be because of REUSE_ALV_GRID_DISPLAY itself or your parameters calling REUSE_ALV_GRID_DISPLAY.
    Best regards
    Rolf-Martin

  • I've noticed that in the new version of Firefox that you cannot save multiple tabs at one time like the previous Firefox 3.6.or so and I wanted to know if I can find that feature again?

    I've noticed that in the new version of Firefox that you cannot save multiple tabs at one time like the previous Firefox 3.6.or so and I wanted to know if I can find that feature again?
    In the previous versions of Firefox when you went to you Bookmarks menu it gave you the options to either Bookmark This Page 'command' + 'D', Subscribe to this Page, Bookmark All Tabs 'up-arrow-key' + 'command' + 'D', and Organize Bookmarks 'up-arrow-key' + 'command' + 'B' however in the newest version of Firefox there is no Bookmark All Tabs so you can bookmark all the tabs that you have up in one window at a time. So I need to know if it is possible that the feature is now in a different place, is gone altogether, or if you can get that feature another way?
    For me personally and my work I go through hundreds of web pages a day and save around half of those so it is imperative that I be able to bookmark more then one tab at a time because I can't be bothered to bookmark every single page separately and then go through hundreds of tabs in my Unsorted bookmarks in order to sort those bookmarks. It is simple inconvenient to sort every bookmark individually that is why the previous version of Firefox with the Bookmark All Tabs button was superior in its convenience.

    Right click any tab and choose "Bookmark All Tabs".

  • Drill-down to multiple columns at same time

    Hello,
    Is it possible to simultaneously drill down to multiple columns on the same level with one click? I have several attributes that the user will want to see together at all times, so I want to be able to drill from level1 to level2a,2b, and 2c with one click.
    Thanks,
    Elliot

    This drilling down to all the levels may not be available with the OBIEE drill level based hierarchy feature OOTB but as an alternative you can try this at you DB level to create a hierarchy within you data using START WITH and CONNECT BY PRIOR to generate the parent->child levels hierarchy within the view instead of creating multiple hierarchical columns.
    Or may be you can try to create separate columns in a table for each hierarchy level. That table could either be in the database or be a logical one in the repository. For example:
    Level 1 Level 2 Level 3 Description
    1 2A 3A
    1 2A 3B
    1 2B 3A
    1 2B 3B
    etc
    You then create separate reports for each level, so one report has only level1 in it for this dimension, another report has levels 1 an 2 and a third report has levels 1, 2 and 3 etc.
    In each report you put an action link on the levels' cells so that if you click on them you drill up or down by displaying a new report with either less or more level columns.
    Hope this helps. Pls mark if it does.
    Thanks,
    SVS

  • Sorting multiple columns at a time

    Hi All,
    I have requirement which is web dynpro table loading with the data i need to sort the three columns
    at a time. initially this sorted data is coming from Function module, but now the data is coming from BW to Web dynpro java
    I have one method in sort class which will sort the table on one column at time. i need help in enhancing this method to work for three columns.
      public void sort(String columnId, IWDNode dataSource) {
           IWDTableColumn column =
                (IWDTableColumn) table.getView().getElement(columnId);
           ReversableComparator reversable =
                (ReversableComparator) comparatorForColumn.get(column);
           if (reversable == null)
                return; // not a sortable column
           // remove icon of previously sorted column
           if (currentlySortedColumn != null
                && currentlySortedColumn.getHeader() != null)
                currentlySortedColumn.getHeader().setImageSource(null);
           // bookkeeping
           if (column == currentlySortedColumn) {
                //               reversable.toggleReversed();
           currentlySortedColumn = column;
           // set icon in currently sorted column
           /*if (currentlySortedColumn.getHeader() != null)
                currentlySortedColumn.getHeader().setImageSource(
                     reversable.isReversed()
                          ? "~sapicons/s_b_srtd.GIF"
                          : "~sapicons/s_b_srtu.GIF");
           // sorting
           dataSource.sortElements(reversable);
    Regards,
    Lakshmi Kodavati

    Hi all,
    The solution for EP6.40 Multiple column sorter
    Class file:
    http://wiki.sdn.sap.com/wiki/display/Snippets/Tablesorterbymultiplecolumns%28WebDynproJava%29
    f you does not have WDTableColumnSortDirection try to modify the MultiAttributesNodeComparator and replace WDTableColumnSortDirection with the boolean flag-indicator of the sorting direction. Like this:
    boolean sortAsc = true;  // WDTableColumnSortDirection.UP
    Call this class from web dynpro view
    final MultiAttributesNodeComparator nodeComparator = new MultiAttributesNodeComparator();
                        nodeComparator.sortElements(new String[] {"InvoiceDate","Invoice","Contract"}, true, wdContext.nodeInvoiceListTable());
    Thanks for Siarhei_Pisarenka
    Edited by: narayana on Mar 25, 2010 10:02 AM
    Edited by: narayana on Mar 25, 2010 10:05 AM

  • BPS: How to filter Lead Columns at run time

    I need to know if there is a way to filter values for lead columns, after planning level and planning package where defined
    Example:
    Family | Material | Brand | Format | sales | cost | Margin
    F1      M1         B1      F1       100     80     20
    F1      M2         B1      F1        95     85     10
    F1      M2         B1      F2       105     90     15
    In this case the user wants to add 10% to sales and review how does it impact into margin, but he wants to apply it only to rows where Material is M1.
    So, he needs to use some kind of filter data (like Excel functionality) to select only the rows corresponding to material M1.
    After that, he wants to perform other filters over the other lead columns, and apply again some changes in the data columns.
    Somebody can help me with this requirement?
    Thanks in advance
    Message was edited by: Pamela Valdivia

    Hi Pamela,
    First of all you would need a variable for Material with Replacement type user defined values to be able to restrict the data for Material M1 when the layout is executed.
    For incrementing the sales by 10% you can create a Planning function which increases the sales amount by 10% and provide a button for the same in the User Planning Folder. You could also restrict the Planning function for Material M1 if you so desire.
    The benefit of the Planning function is that you can always "Undo" the operation if you have not saved/performed a subsequent operation. So as long as the user is applying some changes and undoing the same before the second change step the data is as it is, and for what changes the user would like to simulate you can create a Planning function and provide the option in the Planning folder.
    Hope it helps.
    Cheers
    Anurag

  • ALV with few multiple columns header

    Hi,
    I have to do an ALV report with some of the columns grouping like this:
    I----
    I
    I--IIIABCI--
    I     
    I-AB-I-CD-I-EF-I-GH-I-JK-I-LM-I-NO-I
    I----
    I
    I--IIIIII--
    I
    I--IIIIII--
    I
    Can you please help me?
    Tarick.

    Hi,
    Please check the following link will help you to get your answer
    header group in wd alv
    Cheers

  • How do I unhide multiple columns at a time in a response table?

    I feel like I have done this before, but now I cannot seem to figure out how.  Any help would be appreciated.

    but is there any other way? Like changing something in the properties that will make the Divs bump up to the Div aoove that when you remove one out of there
    I'm afraid not.
    I  imported the whole site as divs by splitting the images in photoshop and saving it for web and devices.
    This is approach is OK for quick comps to show a client but definitely NOT suitable for a production site.  As soon as you attempt to edit your layout, the page will explode and fall apart.  This is caused by the rigid/fragile code that graphics apps attempt to generate based on the images sizes.
    Start over.  Use graphics apps to slice and optimize images only.
    Use DW to build your HTML and CSS code.
    Creating  your first web site in DW CS5 -
    http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt1.html
    Adobe Developer's Center - Getting Started tutorials
    http://www.adobe.com/devnet/dreamweaver/?view=gettingstarted
    Using  DW Page Properties to create a basic CSS style sheet
    http://kb2.adobe.com/community/publishing/505/cpsid_50576.html
    APDivs as a primary layout method seldom works well. Here is why:
    http://apptools.com/examples/pagelayout101.php
      Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • How to get Select All or select Multiple columns  in OOALV

    HI Experts
    i'm assignig internal table to dynamic internal table(FS_IST_TABLE) for to display the output.
    but i'm not geting the Select ALL Option. and i can't select multiple columns at a time.
    where i can select only one column.
    how can i select multiple columns.
    please any one help me.
    regrads,
    rathan.

    Hi,
      If we want to select the multiple columns in the alv by using ooabap
    so in the class CL_GUI_ALV_GRID  it is having one method SET_TABLE_FOR_FIRST_DISPLAY
    it is having one importing parameter IS_LAYOUT of type lvc_s_layo type
    and this structure contains one field SEL_MODE and set that field value as 'A'.
    then we can select the multiple rows in alv grid

  • Multiple column sorting.

    How does one sort multiple columns( date, String, time etc...). I want to sort by date where two dates can be alike as well. I could use HashMap for that reason.
    Please help.
    Thanks in advance.

    Hi,
    A demo of the comparator class is given below. I've tried to put it into the table class.
    import java.util.*;
    import javax.swing.*;
    import java.awt.BorderLayout;
    import java.awt.event.*;
    import javax.swing.table.*;
    import javax.swing.event.*;
    class MultipleColumnSortTest
         MultipleColumnSortTest()
              JFrame frame = new JFrame("MultipleColumnSortTest");
              frame.setBounds(10,10,750,550);
              Vector fieldNames = new Vector();
              fieldNames.add("Dates");
              fieldNames.add("Strings");
              Vector dataVector = new Vector();
              for(int i = 0; i < 5; ++ i)
                   Vector row = new Vector();
                   row.add(new Date());
                   row.add("abc" + i%2);
                   dataVector.add(row);
              final SortableDataVector tableModel = new SortableDataVector(dataVector,fieldNames);
              int [] sortIndices = new int[2];
              sortIndices [0] = 0 ;
              sortIndices [1] = 1 ;
              tableModel.setSortPriority(sortIndices);
              JTable table = new JTable(tableModel);
              JScrollPane scrollpane = new JScrollPane(table);
              frame.getContentPane().add(scrollpane);
              JButton button = new JButton("Sort Data");
              frame.getContentPane().add(button,BorderLayout.SOUTH);
              button.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent event)
                        tableModel.setAscendingOrder(!tableModel.isAscendingOrder());
                        tableModel.sort();
              frame.setVisible(true);
         public static void main(String [] args)
              MultipleColumnSortTest appln = new MultipleColumnSortTest();
    class SortableDataVector extends DefaultTableModel implements Comparator
         private int [] indices;
         private boolean isAscendingOrder;
         public SortableDataVector(Vector dataVector, Vector fieldNames)
              super(dataVector,fieldNames);
              setAscendingOrder(true);
         public void setAscendingOrder(boolean b)
              isAscendingOrder = b;
         public boolean isAscendingOrder()
              return isAscendingOrder;
         public void setSortPriority(int [] indices)
              this.indices = indices;
         public int compare(Object o1,Object o2)
              int comparisonResult = compareAscending(o1,o2);
              if(!isAscendingOrder)
                   if(comparisonResult < 0)
                        comparisonResult = 1;
                   else if (comparisonResult > 0)
                        comparisonResult = -1;               
              return comparisonResult;
         private int compareAscending(Object o1, Object o2)
              int comparisonResult = 0;
              if((o1 == null)&&(o2 != null))
                   comparisonResult = -1;
              else if((o1 != null)&&(o2 == null))
                   comparisonResult = 1;
              else if((o1 != null)&&(o2 != null))
                   List firstRow = (List)o1;
                   List secondRow = (List)o2;
                   for(int i = 0; ((i < indices.length)&&(comparisonResult == 0)); ++i)
                        if(indices[i] < firstRow.size())
                             comparisonResult =
                                  DatatypeSensitiveComparator.compare(
                                       firstRow.get(indices),
                                       secondRow.get(indices[i]));
              return comparisonResult;
         public boolean equals(Object obj)
              if(obj == null)
                   return false;
              return this.equals(obj);
         public void sort()
              if((indices != null)&&(indices.length > 0))
                   Collections.sort(dataVector,this);
                   fireTableChanged(new TableModelEvent(this));
    class DatatypeSensitiveComparator
         public static int compare(Object firstValue, Object secondValue)
              int comparisonResult = 0;
              if((firstValue != null)&&(secondValue == null))
                   comparisonResult = 1;
              else if((firstValue == null)&&(secondValue != null))
                   comparisonResult = -1;
              else if((firstValue != null)&&(secondValue != null))
                   Class clazz = firstValue.getClass();
                   if(!clazz.equals(secondValue.getClass()))
                        throw new IllegalArgumentException("Class are not the same ->"
                             + clazz.getName() + ":" +
                             secondValue.getClass().getName());
                   if(clazz.equals(String.class))
                        comparisonResult = ((String)firstValue)
                             .compareTo(((String)secondValue));
                   else if(clazz.equals(Date.class))
                        comparisonResult = ((Date)firstValue)
                             .compareTo(((Date)secondValue));
              return comparisonResult;

  • Multiple column list

    Dear All,
    Anybody can help me in the scenario....
    I want to display multiple columns (each column may contain multiple values) in java frame. What java control should i use? java.awt.List cannot show multiple columns. Remember the column and rows values which i want to display are not coming from database. It can be like i have an array for columns and array of row values for each column.
    I would be grateful if someone email me the solution at [email protected]
    Waiting for prompt reply.
    Thanks
    Kamran

    What about AWT.table or Swing.JTable ?

  • WDS 2012 R2 - Cannot PXE multiple clients at the same time

    Hello All,
    This is my first post on here so I apologize if this is the wrong place.  I work for a school district and we are implementing WDS 2012 R2.  We've been extremely satisfied with the speeds and ease of use through unattend files.  However, for
    the past month I've been looking for a possible answer to a problem that has plagued us from day one of implementation.
    So here's the problem:
    I have a stand alone WDS server which is not a domain controller and is not our DHCP server.  I have IP helpers and broadcast forwarders setup on the network.  As well as option 66 and 67 in DHCP.  So far so good right!
    Well that's partially right.  When we boot one client at a time to the WDS server.  Everything works as intended.  We can TFTP the necessary files from the WDS server.  Everything boots up and we're off and running.
    However, if we boot up two or more clients at the same time.  The WDS server never responds to the traffic.  The clients get their DHCP information.  They start the referral and download from the WDS server, but get no response.  I'm
    really hoping that someone on here would have some insight of something I can try.  I've about exhausted my list of peers and contacts.  They're all stumped as well and were smart enough to stay with 2008 WDS.
    I would prefer to stick with 2012 R2 since it's setup and working for the most part.  With only this one hiccup.
    Thanks in advance for any guidance!

    Hello Daniel,
    I appreciate the reply and apologize for taking so long to get back to this.   Things have been a little hectic over here.
    I have tried everything on this forum and I am still unsuccessful in PXE booting multiple clients at the same time.
    Multicast is enabled on the server, and it works for the clients.  However, as stated in the original post.  I cannot boot multiple machines at the same time.  I can start them from the image selection screen around the same time though.  So,
    that appears to be working fine.

  • How do I set up a two or three column schedule in iCal? Looking to have multiple person listing appointment times.

    How do I set up a two or three column schedule in iCal? Looking to have multiple person listing appointment times.

    How do I set up a two or three column schedule in iCal? Looking to have multiple person listing appointment times.

  • How to filter rows where multiple columns meet criteria, ignoring rows where only some columns meet criteria

    Hi All,
    Question: How do I filter rows out of a query where multiple columns are equal to a single question mark character?
    Background: I'm using SQL 2008 R2.  Furthermore, the part of my brain that helps me create less-than-simple queries hasn't been working for the last 4 days, apparently, and now I need help.
    We have about 4,000 rows in a table.  This data set was generated from an exported report, and many of the rows in the detail table were not actual data rows but were simply "header" rows.  For those table rows, most of the columns have
    a single question mark as the value.
    Some of the detail rows have one or more question mark values, too, so it's important that these rows don't get filtered out.
    When I include criteria like "WHERE col1 <> '?' AND col2 <> '?' AND col3 <> '?' AND col4 <> '?'", all rows with a question mark value for even a single one of those columns get filtered out.  How do I filter out rows
    where all columns 1-4 contain a question mark value?
    Thanks for your help,
    Eric

    I just tried to create to create a scenario for you. Please see ig you're looking for something like this.
    Create table test_Question_mark
    RecordID INT identity(1,1),
    Col1 varchar(10),
    Col2 varchar(10),
    Col3 varchar(10),
    Col4 varchar(10),
    insert into test_Question_mark (Col1, Col2, Col3, col4) values ('?','?','?','?')
    insert into test_Question_mark (Col1, Col2, Col3, col4) values ('?','??','?','?')
    insert into test_Question_mark (Col1, Col2, Col3, col4) values ('?','??','??','?')
    insert into test_Question_mark (Col1, Col2, Col3, col4) values ('??','??','??','??')
    insert into test_Question_mark (Col1, Col2, Col3, col4) values ('?','?','?','?')
    insert into test_Question_mark (Col1, Col2, Col3, col4) values ('??','test ??','??','??')
    insert into test_Question_mark (Col1, Col2, Col3, col4) values ('??','test ?','??','??')
    --drop table test_Questio_mark
    select * from test_Question_mark
    select * from test_Question_mark 
    WHERE 
    (CHARINDEX('?', Col1,1) > 0 AND CHARINDEX('?', Col1, CHARINDEX('?', Col1,1)+1) = 0) AND 
    (CHARINDEX('?', Col2) > 0 AND CHARINDEX('?', Col2, CHARINDEX('?', Col2,1)+1) = 0) AND 
    (CHARINDEX('?', Col3,1) > 0 AND CHARINDEX('?', Col3, CHARINDEX('?', Col3,1)+1) = 0) AND 
    (CHARINDEX('?', Col4,1) > 0 AND CHARINDEX('?', Col4, CHARINDEX('?', Col4,1)+1) = 0) 
    --drop table test_Questio_mark
    I hope above solution will help.
    Thanks!
    Ashish.

  • STATIC TIME STAMP IN MULTIPLE COLUMNS

    I have a single spreadsheet for Monday - Friday.  There are multiple columns for each day.  It has been asked of me the following:
    When the customer name is typed for the first time in columns: E, T, AH, AV, BJ  rows 5-28 then the static date & time would appear in another column on the same row.  I would be adding columns (M, AB, AQ, BF, BU)  for date/time.  
    Example: Customer name typed in E5 the date time would show in M5 for Monday.  For Tuesday, it would be T5 with date in AB5, etc.
    I have very little experience with VBA and have searched the internet for a solution, there are many conditions and have tried for using solutions for just one column, but none have worked.  
    Thank you
    Linda
    woodlinda

    You can have only one Worksheet_Change event procedures per worksheet. You have to combine the two Worksheet_Change event procedure into one:
    Private Sub Worksheet_Change(ByVal Target As Range)
        If Not Intersect(Target, Columns("C:BB")) Is Nothing Then
           Rows(Target.Row + 1).Hidden = False
        End If
        If Not Intersect(Range("E5:E28,T5:T28,AH5:AH28,AV5:AV28,BJ5:BJ28"), _
                Target) Is Nothing Then
            Application.EnableEvents = False
            Intersect(Range("E5:E28,T5:T28,AH5:AH28,AV5:AV28,BJ5:BJ28"), _
                Target).Offset(0, 8) = Now
            Application.EnableEvents = True
        End If
    End Sub
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

Maybe you are looking for

  • New Imac - now my ipod won't work

    I've recently upgraded from an 800mhz imac to a 1.6Mhz imac G5 I didn't have chance to transfer all the date from the old one to the new one, and I've now got the unenviable task of updating everything. Thing is, when I connect my ipod to my new imac

  • Mail not delivered for 4 hours warning message

    I've recently started getting .mac mail bounced back to me from MAIL DELIVERY SUBSYSTEM saying that the message couldn't be delivered for the past 4 hours and would continue trying for 4 days. They never seem to go through. This only happens with mai

  • Cisco ISE in Apple Mac Environment

    Hi, One of our clients need to implement BYOD in their network. They are using Mac servers and clients. The requirement is to authenticate (wireless) users against the Mac directory server, in order to provide access to resources. I am trying to figu

  • The App Store uses the old user name ...

    Hi, I recently bought a used iMac (late 2013).  Even when I am logged in the App Store app with my own personal account, it sometimes requires a new identification.  Before downloading an update, a pull down window displays the previous owner's name

  • Installing latest FCP update

    Hi I'm sure I'm overcomplicating an easy question but here goes....I have had to buy another G5 whilst my existing machine is being repaired by Apple. I have a project last saved in FCP version 6.0.3. I've re-installed FCP 6 on the new G5, but Apple