ALV Filter criteria

Hello,
    I have define a list using ALV functions.
    When I am using it I select 4 columns and push the filter button but in the filter window only appears the first column selected as a criteria.
    What do I have to do in order to appear the four?
Thank you

Hi,
Pass  i_save parameter in the ALV
g_layout-cwidth_opt = 'X'.                 " Optimize columns to data
  g_layout-sel_mode   = 'A'.                  " Column & ROW selections  -- Pass this and try
  g_layout-zebra      = 'X'.
*  Calling method to display data.
    CALL METHOD g_alv_grid->set_table_for_first_display
      EXPORTING
        is_layout       = g_layout
        i_save          = 'A'
      CHANGING
        it_fieldcatalog = i_fieldcat
        it_outtab       = i_psummary.

Similar Messages

  • Restrict ALV filter criteria like with MF SELECT_OPTIONS_RESTRICT

    Hi all,
    I would like to be able to manage my ALV OO filters.
    The aim is to force the user to use the pattern option (CP) when they want to filter on a specific field of the ALV.
    It would be great if there was a mean to get the same result as the MF SELECT_OPTIONS_RESTRICT for Select-option. ( = Only Pattern is available when the user tries to filter on this specific field)
    I'm able to user get_criteria/set_criteria to do so, but the result is not as OK as I want, because the filter are modified after the user action => the user wont understand what happened...
    Does anyone know about how to get the result I want?
    Thanks and regards,
    Christophe Drancourt

    Hi Christophe,
    for manage Filter after User Input you can use Event AFTER_USER_COMMAND:
    methods EVENT_AFTER_USER_COMMAND
         for event AFTER_USER_COMMAND of CL_GUI_ALV_GRID
         importing
           !E_UCOMM
           !SENDER .
    In method:
    METHOD EVENT_AFTER_USER_COMMAND.
    DATA ltb_filter TYPE LVC_T_FILT
       CASE e_ucomm.
         WHEN cl_gui_alv_grid=>mc_mb_filter.
               CALL METHOD sender->get_filter_criteria IMPORTING et_filter = ltb_filter.
    *Here Manage the Filter
               CALL METHOD sender->set_filter_criteria EXPORTING it_filter = ltb_filter.
               CALL METHOD sender->refresh_table_display.
           ENDCASE.
       ENDCASE.
    ENDMETHOD.
    Regards,
    Angelo.

  • Filter criteria in ALV report not working

    Hi,
    In ALV report , when i click on filter button , it does not filter the report according to the filtered criteria. this happens in the cases where the selection criteria is a lengthy field. when i debug after the filter criteria it goes into standard function.
    i am using REUSE_ALV_GRID_DISPLAY
    is there any way in which i can correct this?
    thanks,
    Amit
    null

    chk this useful thread
    Re: ALV problem (with filter use)

  • Set Filter Criteria Fields for ALV

    Hi everyone!
    Is there a way in ALV that you can set the filtering criteria fields for your ALV report, but not the field values itself?
    To be more clear (I hope), When you run the ALV report, it initially shows you the entire report, but when you click on the FILTER button, there are already pre-selected fields for the filter criteria.
    Thanks a lot.. points for any useful answer.

    Hi,
    Yes you can do with Layout button in the application tool bar.
    First filter out the columns and save it with name.
    Everytime you execute the program,click the layout button and select the layout variant .
    regards,
    Maha

  • ALV Filter : Not working for a text field - Strange problem

    Dear All,
    I have a Z-program where the ALV filter is not working on a particular text field.
    The output on that text field is as below :
    ABCD
    JKLM
    YYZZ
    ABCD
    JKLM
    ABCD
    JKLM
    YYZZ
    YYZZ
    When we try to filter on YYZZ, it gives blank list. But for other options given abobe it works fine.
    I know it is because of the negative sign , but how can we over come this problem ?
    Thanks in advance,
    Sandip.

    Hi Sandip,
    Use 'LOWERCASE' in the fieldcatalog.
    For the particular text field when you are appending the Fieldcatalog structure to the Fieldcatalog Table
    ( Suppose LS_FIELDCAT)
    Then check the LOWERCASE field.
    (LS_FIELDCAT-LOWERCASE = 'X' )
    This will serve the purpose.
    Regards,
    Sourav

  • Adding "Filter Criteria" to the XSLT List View Web Part impact on "Export to Excel" functionality within Document Library

    Hi there,
    XSLT List View displaying all the list items within the Document Library. In order to implement the Search functionality within Document library out of box "Text Filter" web part is configured as explained below. The solution is similar to
    the one suggested at
    http://www.wonderlaura.com/Lists/Posts/Post.aspx?ID=77
    "Text Filter" Web Part added to the page.
    Filter Criteria (i.e., XSLT List View columns) added to the XSLT List View where the filter parameters take the input from the "Text Filter" Web Part .
      3. Both Web Parts (XSLT List View and the Text Filter) are connected.
    When the search criteria is entered into the "Text Filter" Web Part, it is passed to the relevant Columns of the XSLT List View and the documents (List Items) that match the search criteria are shown within XSLT List View.
    Search functionality working as expected.
    Query: Selecting the "Export to Excel" icon from the ribbon generates the excel spread sheet with no data except Column Titles from the Document library. In the investigation it is
    found that adding the 'Filter Criteria' on XSLT List View is causing this bug. When the Filter Criteria is removed, then "Export to Excel" functionality is working as expected.
    But it is mandatory to add "Filter Criteria" to implement the search functionality with in the document library.
    Help: Help/input appreciated on the work around to get the "Export to Excel" functionality work when the "Filter Criteria"
    exist on the XSLT List View.
    Regards,

    Once again thanks very much for your help Scott. very much appreciated.
    In the investigation it is found that removing the 'Filter Criteria' on XSLT List View makes the "Export to Excel" functionality work. But the 'Filter Criteria' is mandatory to get the 'Document Search' functionality.
    I think that due to technical limitations it should be concluded that 'only custom development can make all work, no code solutions using the SharePoint Designer can meet all the requirements.
    If you can think of any alternative solution that could help in resolving the current issue or fix the issue without any custom implementation please inform. Otherwise this issue would be marked as resolved with your suggested response.
    Regards,

  • CRM 7.0 = ECC 6.0 Upload: Filter criteria for BUPA_MAIN

    Dear Experts,
    concerning filtering of BUPA_MAIN in CRM 7.0 => ECC 6.0 Upload we have already learned from SAP (to our surprise) that the only way is to redefine publication BUPA_MAIN as "simple intelligent" (Standard is simple bulk). BUPA_MAIN as "simple intelligent" offers a couple of fields (e.g. partner_no, is_customer) which can be defined as filter criteria.
    We have the requirement to filter by a bp status field which is not part of this set. By the way, we expected the filtering in object management (TX R3AC1, filters are only valid for ECC=>CRM Dowload) or at least in the TX CRMC_BUT_CALL_FU by registrating a ZFunction module in CRM outbound for BUPA_MAIN. Under certain circumstances the later leads to errors  in the subsequent middleware processing.
    Has anybody a similiar requirement or does face the same problems?
    Thanks for your help.
    Regards, Mark

    Hi Mark
    Please put this request in the correct forum of CRM Middleware.
    I am sure your will get the right help from the middleware experts.
    Regards

  • Issues with Search Filter Criteria Button in Search Help

    Hi ,
    I have applied an elementary search help to a select option and this help is having four fields. The search help works fne and all the four fields are visible when i do a F4. Now , if i want to restrict the number of entries shown (the number of entries are huge) by clicking the "Search Filter Criteria" button , i dont see any of the four fields using which i can restrict the data . Do we need to do any configuration for this ??
    Regards
    Mayank

    Hi,
    in that search help itself you have a option called maximum number of hits, there is a impact if you restricted also.
    Thanks & Regards,
    Srinivasan.R

  • LED in field and traffic lights in ALV filter

    Hi experts,
    Am showing LED in field of ALV(OOPs oriented)and when i click on  ALV filter for led field..it shows me Traffic lights in poup for filter.Please help me to get LED in filter popup also.
    Thanks,
    Sajay.

    Solved

  • LED in field of ALV(OOPs oriented)- Traffic lights in ALV filter popup

    Hi experts,
    Am showing LED in field of ALV(OOPs oriented)and when i click on  ALV filter for led field..it shows me Traffic lights in poup for filter.Please help me to get LED in filter popup also.
    Thanks,
    Sajay.

    Hi,
    Use the fuction module 'ICON_CREATE' as follows.
    CALL FUNCTION 'ICON_CREATE'
        "To create Red/Yellow/Green traffic icons
          EXPORTING
            name   = wrk_light
          IMPORTING
            RESULT = ip_status.
    wrk_light can be;
    'ICON_RED_LIGHT'
    'ICON_YELLOW_LIGHT'
    or 'ICON_GREEN_LIGHT' according to your scenario, that you can use the logic for your scondition.
    Use it in PBO.
    Regards,
    Renjith Michael.

  • QBE filter criteria in adf richtable disappears

    Hi,
    i use jdeveloper 11g (11.1.1.0.2) with ADF BC and have the following Problem:
    I have a table with enabled builtin filtering. The table is contained in a page fragment of a taskflow.
    At runtime I am doing the following:
    1) I submit a filter criteria and get the right result. (OK)
    2) goto different page and back to the page with the filtered table (OK)
    3) the table displays the filtered data, but the filter input field is EMPTY (ARGGHHH, very confusing)
    If you create the exact table on a simple page (not in page fragment of taskflow) the filter criteria is still shown in the filter input field as expected (and designed I think)
    So is it a bug? How to work around?
    Thanks,
    Andreas.
    Edited by: koppy on May 28, 2009 9:15 AM

    Hi,
    I have not tried this , but it should work
    you need to get the value of filterModel attribute of af:table
    so, in your backing bean if you can get hold of your table component
    store your filterCriteria somewhere while navigating between pages
    RichTable myFilterableTable = this.getMyFilterableTable(); //assuming your table component is associated with backing bean
    FilterableQueryDescriptor queryDesc = myFilterableTable.getFilterModel();
    //get teh filtercriteria from fiterModel
    Map<String,Object> filterCriteriaMap = queryDesc.getFilterCriteria();filterCriteriaMap will contain your QBE criteria values , re-set your table filterModel , you can use EL to do that in which case now its binded to your backing bean filterCriteriaMap
    hope it helps
    Good Luck
    regards,

  • Filter Criteria will not save in SharePoint Designer

    I have a web page that contains form webpart (for entering search keywords) and a dataview with successful configuration to sql database table.
    In SPD > dataview > Common Tasks:
    I have created parameter with control type and texbox control ID. Then setup the web part connection to link both web parts.
    In the final step I then try to set the filter criteria and choosing columns with available option of parameter name and click ok. The filter values disappear.
    I have followed the steps from the following link:
    http://andyparkes.co.uk/blog/index.php/2008/10/31/creating-a-multi-column-search-form-in-sharepoint-v3-with-sharepoint-designer/
    Why does the Filter criteria not save?
    Thanks in advance.
    -- techChirag

    Hey, I dont suppose anyone's found a solution to this yet? I've succesfully done this on a few different Site Collections, but for some reason it's not working on my latest one. As above, after setting the Filter Criteria and saving the page in SPD2010,
    the filter criteria just dissappears. Random!

  • Filter Criteria in Value Help for InfoObject

    Hi,
    Is it possible to remove the value from Filter Criteria. When I use F4 for a Field (in Screen) , its showing a poup window (Value Help for Info Object) with some personal values. When I click "More Values" option its showing the General Value List, where I can see the Filter Criteria. When I click "Show Filter Criteria", its showing the Criteria with a Value (This value is coming from the field(Screen) from where I am coming). is it possible to avoid of passing value from my screen field to Filter Criteria ?
    Thanks
    Srinivas

    Murugan,
    I really hope that the moderator do not remove my points for this!
    WebDynpro ABAP Select-Options and OVS Help.
    How to Achieve OVS Search Help in Select Option in Web Dynpro ABAP
    How to Use OVS Help For Multiple Input Fields in Select-Options.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/707f0d73-94f0-2d10-97a2-a3776e2118d8?QuickLink=index&…
    Using Select Options in a Web Dynpro(ABAP) Application
    Regards,
    Ashvin

  • Set filter criteria on page 1 for page 2 OData model - "best practice"?

    Hello, I have a problem with an app - where I want to filter data on a second page, based on settings from the first page. I use an OData model.
    The collections on both pages are not related in terms of "navigation" properties, that is my problem and I can not change the data source...
    So I am looking for ideas/best practices to solve this because sometimes my filtering doesn't work... the following problem occurred: Request aborted
    I have a page with a sap.m List with items="{/tabWorkPlace}" and and a local JSON model where I store relevant data during the app lifecycle.
    handleListSelect - first page
    var context = evt.getParameter("listItem").getBindingContext();
    var dataModel = sap.ui.getCore().getModel("dataModel");
    var workplace = context.getProperty("WORKPLACE_ID");
    dataModel.setProperty("/WORKPLACE_ID", workplace);
    this.nav.to("SubMaster", context);
    The general App.controller.js handles the nav.to function:
    var app = this.getView().app;
    var page = app.getPage(pageId);
    if(pageId == "secondPage") {
         page.getController().filterData();
    And the controller of the second page:
    filterData: function() {
    var oModel = sap.ui.getCore().getModel("odata");
    var dataModel = sap.ui.getCore().getModel("dataModel");
    var workplace = dataModel.getProperty("/WORKPLACE_ID");
    var items = this.getView().byId("list");
    var oFilter=new sap.ui.model.Filter("WORKPLACE_ID",sap.ui.model.FilterOperator.EQ,workplace);
    items.getBinding("items").filter(oFilter);
    I don't write this code into the onInit() or beforeRendering() function, because they are called only once and I am navigating back and forth between the two pages, because the pages are created only once and "just" the data is changed.
    The desired page looks like this - with an other collection bound to it:
    <List
      id="list"
      select="handleListSelect"
      items="{/tabWorkstep_Status}"
    >
    But when I call it - then the request gets aborted:
    The following problem occurred: Request aborted
    But despite the fact the Request is aborted, the list on the second page is filtered!
    The filter criteria for the model works when I type it into the browser with URL. Maybe this fails because the data binding for the list didn't took place at this phase?
    I have this pattern (filter criteria on one page and result on the second page) more times - (and I think a better data model would be better with navigation properties would be better, but I cannot change it)
    But at another constellation the filtering doesn't work - same error... the following problem occurred: Request aborted
    I also don't want to change the pattern (page 1 to page 2) into popup lists or this fancy new filtering possibilities because it is not suitable for my use case.
    Is there maybe a more elegant solution - because sometimes filtering works, sometimes don't..., do I have an error in my solution (general approach)?
    Many thanks for any input!
    BR,
    Denise

    Hello, yeah you are right, but it works without the odata> stuff because of this in App.controller.js:
    var uri = "http://localhost:32006/JsonOdataService.svc";
    var oModelMS = new sap.ui.model.odata.ODataModel(uri);
    sap.ui.getCore().setModel(oModelMS, "odata");
    oView.setModel(oModelMS);
    So my question is - how to navigate from one page to another - and on the other page first bind a collection to a select and then when selecting bind certain elements (a textfield) to the selected filtered entity.
    The stuff with context and binding won't work, because the two Collections don't have a navigation/association property between them...
    So for example:
    page1
    select a list item with property color: red and year 1985. Press one of the buttons and pass this criteria to another page.
    page 2:
    show a dropdown box with all car names which fullfill this criteria, and when one car is selected, then display the data for THIS car in several text fields.
    This is not a master->detail navigation example, because on page 1 i select certain criterias, and then with buttons I navigate to several pages with those criterias.
    But since the OData model has no relationships it is really hard to do it manually... With a dummy mock.json like in DJ Adams Fiori like SAPUI5 apps it is no problem... But with OData and no things related to each other it is hard...

  • How to read disqualified rows after filter criteria is applied?

    Hi,
    I Use JDeveloper 11.1.2
    I have a view object, which shows 100 records during initial time. I've applied filter criteria in such a way that it displays only 20 records.
    One of my requirement is to surf the records which are disqualified for the filter criteria (i.e. I should be able to read the rows that are not participated in the filtered View object)
    I didn't find any API for this.
    Can anyone help me on this?
    Thanks in advance.

    There its no api for this. All you can do is to either requery without the filter, or to negate the filter and then query again. Still you have to do this yourself.
    Timo

Maybe you are looking for