SALV_WD_TABLE + FILTER

Hi There,
I do have a question :
+ How do I get displayed entries - in the case a filter as been filled in ?
+ How do I get selected entries - In case filter has ben filled in ?
Regards

Hi Stephan,
Did you get the solution? I tried it out & its working. I have a button in my layout up on pressing which I want to fetch all the rows in my ALV available after filtering. Below is the code in my buttons action handler.
After execution of this snippet I have the rows remaining after filtering in the internal table lt_data.
Regards,
Uday
method ONACTIONFETCH_FILTERED_DATA .
  DATA: lr_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE,
          l_VALUE type If_Salv_Wd_Table=>S_Type_Param_Get_Ui_Info.
  try.
*** Here my ALV usage name is MY_ALV_USAGE
      lr_INTERFACECONTROLLER =   wd_This->wd_CpIfc_MY_ALV_USAGE( ).
    catch CX_WDR_RT_EXCEPTION.
  endtry.
  if not lr_INTERFACECONTROLLER is initial.
    l_VALUE = lr_INTERFACECONTROLLER->Get_Ui_Info( ).
  endif.
  data: wd_node type ref to if_wd_context_node,
        lt_data type wd_this->elements_mara,
        wa_data type wd_this->element_mara,
        lv_count type i.
  wd_node = wd_context->get_child_node( name = 'MARA' ).
*** Get the total number of rows remaining after filtering
  describe table l_value-t_displayed_elements lines lv_count.
  do.
*** Get the row number of the filtered row in the entire tables data
    read table l_value-t_displayed_elements into lv_count index sy-index.
    if sy-subrc = 0.
*** Fetch the row data using the index obtained in the above step
      wd_node->get_static_attributes( exporting  index             = lv_count
                                      importing  static_attributes = wa_data ).
      append wa_data to lt_data.
    else.
      exit.
    endif.
  enddo.
endmethod.

Similar Messages

  • Enhacement of FILTER LINE SALV_WD_TABLE

    Dear all,
    I'd like to enhance the filter line for the alv grid SALV_WD_TABLE
    I'd like some cell to be dropdown boxes instead of input fields...
    Any idea how to reach this ?
    Stephan

    Hello ,
                   You can try using the method IF_SALV_WD_COLUMN_SERVICE_REF~SET_FILTER_FIELDNAME  of  CL_SALV_WD_COLUMN for
    individual column  .
    For this you have enhance the structure of the context node to have the Filter_field_name .
    You have to put some effort to make this possible but as per my knowledge there is no direct way
    to achieve this functionality .
    Regards
    Vivek

  • Disable toolbar in SALV_WD_TABLE

    hi,
    We are implementing Performance management process based on EHP4.
    We are using standard SAP delivered WD ABAP applications.
    On the manager's view there is table to show all appraisal form of his sub ordinates. This table is created through SALV_WD_TABLE component,
    The problem is that the toolbar of this table allows the manager to create/ delete the appraisal form of the sub ordinates employee and we do not want to have this functionality.
    i would like to know how can we disable the toolbar of the table so that manager cannot access any buttons on the toolbar.
    Thanks,
    Rahul

    Try following code in the WDDOINIT method
    DATA: l_ref_interfacecontroller TYPE REF TO iwci_salv_wd_table .
    l_ref_interfacecontroller = wd_this->wd_cpifc_alv_table( ). " Name of component usage given by you for SALV_WD_TABLE
    DATA: l_value TYPE REF TO cl_salv_wd_config_table.
    l_value = l_ref_interfacecontroller->get_model( ).
    DATA: lr_standard_functions TYPE REF TO if_salv_wd_std_functions.
    lr_standard_functions ?= l_value.
    lr_standard_functions->set_pdf_allowed( abap_false ).
    lr_standard_functions->set_filter_complex_allowed( abap_false ). "* Disable Filter tab from Settings
    lr_standard_functions->set_excel_inplace_allowed( abap_false ).
    lr_standard_functions->set_export_allowed( abap_false ).
    lr_standard_functions->set_dialog_settings_allowed( abap_false ).
    lr_standard_functions->set_view_list_allowed( abap_false ).
    lr_standard_functions->set_filter_filterline_allowed( abap_false ).
    lr_standard_functions->set_edit_append_row_allowed( abap_false ).
    lr_standard_functions->set_edit_insert_row_allowed( abap_false ).
    lr_standard_functions->set_edit_delete_row_allowed( abap_false ).
    You will find all methods to remove standard toolbar in methods of interface if_salv_wd_std_functions. Double click on it to find the methods
    Regards,
    Saket.

  • Default Filter for ALV dashboard

    Hi All,
    I am working on Webdynpro ABAP and have created an ALV table using the standard component SALV_WD_TABLE.
    In the ALV table output, we have settings and filter on the top right hand side of the table. On clicking the filter, a filter appears on the top of the table.
    On clicking settings i can have customizations done to the table for my user. I can also describe filters in the settings.
    I am wondering if we can have the filter displayed by default without clicking on the filter link.
    Please let me know in case anyone has done this before or have any suggestions.
    Thanks in advance,
    Best Regards,
    Mz

    Hi,
    Please check the my reply in the below link  -
    Display Filter Line Default in ALV Table
    Regards,
    Lekha.

  • ABAP WebDynpro ALV Filter Dropdown

    Hi guys,
    Is it possbile to do the dropdown list of alv filter?
    If so , how to do that?
    Thanks in advance.
    Best regards,
    Vincent

    Hello Lakshmi,
    I did as follows.
    1. Go to WDComponent.
    2. Add SALV_WD_TABLE as Component use at Used Components tab.
    3. Go to ViewController.
    4. Add SALV_WD_TABLE as used Component and used Interface at Properties tab.
    5. Map FILTER_VALUES node from used Component of ALV to Context of ViewController at Context tab.
    6. Code as follows.
      DATA lo_nd_filter_values TYPE REF TO if_wd_context_node.
      DATA ls_filter_values TYPE REF TO if_wd_context_element.
      DATA l_wdy_key_value_table TYPE TABLE OF wdy_key_value.
      DATA l_wdy_key_value TYPE wdy_key_value.
      lo_nd_filter_values = wd_context->get_child_node( name = wd_this->wdctx_filter_values ).
      ls_filter_values = lo_nd_filter_values->create_element( ).
      ls_filter_values->set_attribute(
        name = `FIELDNAME`
        value = `ATTR1`          "Attribute name that you want to set filter.
    *Followings are filter values.
      l_wdy_key_value-key = `0`.
      l_wdy_key_value-value = ``.
      APPEND l_wdy_key_value TO l_wdy_key_value_table.
      l_wdy_key_value-key = `1`.
      l_wdy_key_value-value = `AAAA`.
      APPEND l_wdy_key_value TO l_wdy_key_value_table.
      l_wdy_key_value-key = `2`.
      l_wdy_key_value-value = `BBBB`.
      APPEND l_wdy_key_value TO l_wdy_key_value_table.
      l_wdy_key_value-key = `3`.
      l_wdy_key_value-value = `CCCC`.
      APPEND l_wdy_key_value TO l_wdy_key_value_table.
      ls_filter_values->set_attribute(
        name = `T_DROPDOWN_VALUES`
        value = l_wdy_key_value_table
      lo_nd_filter_values->bind_element( new_item = ls_filter_values set_initial_elements = abap_false ).
    Regards,
    Masaaki YANOKUCHI
    Edited by: Masaaki Yanokuchi on Jan 26, 2010 10:35 AM

  • In the filter scheme driver, how to i get the filename in open() or handleOpen ()

    I want to implement filter scheme driver to monitor and prevent file open or read calls based on certain rules. For this I would need file name, user name and application process name. I did not find a way to extract this information. Any hint would be of great help.

    If the reset doe not work, connect tot he comouter and try to restore via iTunes.
    If the logo is still showing, let the battery fully drain. After charging for an hour, try the reset and restore again.

  • AND/OR + some nulls in filter

    I'm running into another problem with the AND/OR filter.
    The filter for selecting from object "a" and joining to objects b, c & d
    is:
    (b.theid==2 || c.theid==2 || d.theid==3) && active=="Y"
    The SQL that gets generated is:
    SELECT <...>
    FROM b t1, d t3, a t0, c t2
    WHERE ((((t1.theid = 2 AND t0.bid = t1.id) OR (t2.theid = 2 AND t0.cid
    = t2.id)) OR (t3.theid = 3 AND t0.did = t3.id)) AND t0.active = 'Y')
    This returns a number of instances of the same a object when some of the
    OR clauses do not match. For example, if there's no record
    with d.theid=3, then it will do a full join on table d.
    Do I need to specify something else to flag these as potentially null
    fields so that the filter parser adds that check in? The following SQL
    query works
    ok if I add some checks for NULL on those join fields:
    SELECT <...>
    FROM b t1, d t3, a t0, c t2
    WHERE ((((t1.theid = 2 AND t0.bid = t1.id OR t0.bid IS NULL) OR
    (t2.theid = 2 AND t0.cid = t2.id OR t0.cid IS NULL)) OR (t3.theid = 3
    AND t0.did = t3.id OR t0.did IS NULL)) AND t0.active = 'Y')
    Thanks,
    -Mike
    Mike Bridge

    Hi D,
    Thank you for your answer.
    I have seriously thought about that solution; but I don't think it's a smart way to do it.
    If i do it like that, i need to copy the whole table and paste it inside the if statements.
    I have two xml elements that I need to make the decisions on. POH_PO_TYPE & CP_RELEASE_NUM.
    POH_PO_TYPE can be: STANDARD, RELEASE or BLANKET.
    CP_RELEASE_NUM can be: '' or N
    If POH_PO_TYPE is RELEASE AND CP_RELEASE_NUM is not ''
    OR POH_PO_TYPE is STANDARD
    OR POH_PO_TYPE is BLANKET AND CP_RELEASE_NUM is ''
    THEN show table (which contains the whole PO).
    It shall show the content of the PO in any of these cases.
    BR Kenneth

  • Jabber Windows - no phone control with LDAP Custom filter

    I am unable to control the desktop phone from the Jabber 9.1 Windows client when the CallManager LDAP Directory uses a Custom Filter.
    Has anyone else experienced this?
    If I set the LDAP Custom Filter to <none> and save, then Desktop Phone control works great.
    If I set it to use my custom filter, then trying to enable Desktop control just gives me the spinning circle, then times out to the Red X symbol.
    I do not need to resync the LDAP Directory to get the error, just enable/disable the custom filter and save.
    In both cases calling from the Computer works great.
    This is an On-Prem deployment with full MS-AD LDAP integration.
    Versions are:
    Jabber - 9.1.0 build 12296
    CUPC - 8.6.4.11900-1
    CUCM - 8.6.2.22900-9
    I upgraded to CUCM 8.6.2 SU2 last night hoping that would fix the problem, but no luck.
    The LDAP filter is one I have used in numerous other clusters with no CTI issues.
    It allows me to sync to the root directory, but only import active user accounts with an entry in the ipPhone AD attribute:
    (&((objectclass=user)(ipPhone=*))(!(objectclass=Computer))(!(UserAccountControl:1.2.840.113556.1.4.803:=2)))
    Thanks, Randy

    Hi Randy,
    Have you specified this base filter in jabber-config.xml file? As per Admin Guide:
    "In some cases, base filters do not return query results if you specify a closing bracket in your Cisco Jabber for Windows  configuration file. For example, this issue might occur if you specify  the following base filter: (&(memberOf=CN=UCFilterGroup,OU=DN))
    To resolve this issue, remove the closing bracket; for example, (&(memberOf=CN=UCFilterGroup,OU=DN)"
    Thanks,
    Maqsood

  • In ALV Report Filter selection should be case sensitive

    Dear All,
    since one field is case sensitive in database table , i have to fetch that in alv report , but when i am applying  filter on that field its is simply fetching data with case description.  if its in caps it should fetch caps data but in   smaal case report showing no data
    Regards,
    Pankaj Vashista

    Hi,
    All text datas are case sensitive.
    To make it work perfectly You have to Use the Keyword translate to Upper Case than display
    Now filter can work.
    Without Transalation to Upper Case filter will not work.
    Regards
    Arbind

  • My Mac is bypassing a website filter... How can I stop it?

    I am a computer technician at our local high school. Right now, the school has about 800 Dell computers, but we are planning on introducing a few Macintosh labs within the next school year.
    Since they lack educational value, the school district's director of technology (my boss) has a web filter (Deep Nine) that blocks myspace, facebook, youtube, proxy sites, and other similar sites.
    Myspace is blocked via a keyword filter, any page containing the word "myspace" in the url, or in the document a set number of times, is automatically blocked. The other sites are simply blocked by URL. This filter works perfectly on our Dells, no one can access Myspace, Facebook, Proxies, etc.
    I brought my Macbook to work today, plugged it into the network, and logged onto the internet. I noticed instantly that my homepage (Facebook) loaded without being blocked at all. Curious, I tested myspace and youtube, and I could get on youtube fine, but myspace remained blocked.
    I checked on the Dell next to me, and all those sites will still being filtered and blocked. Yet my Macbook was able to access them without issue. So it would appear that my Macbook has some mystic ability to bypass the web address filter, but it can not bypass the keyword filter.
    I do not have any proxies configured. My Macbook connects to the network (and thus, the internet) the same exact way the other computers within the school do, with the exception of the other computers being within Active Directory.
    I need to find out if it is an issue with the Mac or with our Filter. I don't have any other Macs available to test with (Our only other Mac in the school is our DHCP server, and we do not use servers as "lab rat" computers).
    Has anyone had any similar issues with this? Or does anyone know of any way I can diagnose this with only one Mac and only one Filter?
    Specs: OS 10.5.5, Safari 3.1.2, wired networking.
    Message was edited by: Joey Hogan
    Message was edited by: Joey Hogan

    The DeepNines product works well and does much more than a simple URL filter. The problem lies entirely in your district setup and not in their product. If you're not using a proxy filter, then you have all access and routes designed to head out on typical port 80 traffic to your isp and ultimately the internet hence no proxy configs. The filter is integrated with LDAP accounts at each of your locations to tell it which users and groups are to get filtered at what level. That tie in is what breaks down who goes where. If you introduce new macs onto the network and they have not been configured to work with the DN appliance and are going out unfiltered... then there are 2 problems here. #1 is that you have computers attaching to the network, receiving leases and doing what they want. Use DHCP reservations or a whitelist to control who gets on your network. #2 is that your DeepNines filter has not been set to failover to BLOCK. Instead, it's allowing unknown users to bypass freely simply because it doesn't recognize their group/account. And Orange, stop slamming the company. They are a smaller business that has taken a much better approach to filtering than any other large corporation. Standard database driven URL filters DO NOT WORK....PERIOD! I challenge you to call any district that is running their appliance to get their opinion of it in comparison to any of the other basic url filters out there. I did just that last week and they had absolutely nothing but high praises for the DN product. One even laughed at Websense which they had before switching simply for the lack of ability to block anonymouse proxies.

  • How to use one Filter Pane to multiple Dataproviders

    Hi Experts.
    i have checked the threads on this but i did not get correct solution.
    we have issue in using single Filter pane web item in WAD for three different dataproviders ( three dataproviders have same free charecteristics and variable) charecteristics in row and keyfigures are different.
    thanks in advance.
    Regards
    Raj.

    Hi Gill,
    Thanks for your Quick responce.
    when we use the single filter pane, filter conditions are working for only first dataprovider (since data binding is to dataprovider 1. in affterted dataproviders i selected dataprovider 2 and 3, but filter pane is not active for other two dataproviders in tabs.
    thanks in advance.
    Any inputs please....
    Regards,
    Raj.
    Edited by: Rajsapbi on Apr 6, 2009 9:22 AM

  • How to use property of dimension to filter the 2nd dimension in Allocation?

    Hi experts,
    How do we use a property of one dimension to filter out the members of another dimension in allocation script engine?
    eg of two dimensions
    1.)Entity dimension - (entity dimension)
      memberset:                                        Channeltype (property)
                       Stores
                        Store1                           Boutique
                        Store2                           Kiosk
                        Store3                           Branch
                        Store4                           Concession
                        Store5                           Franchise
                      Nonstore
    2.)business Channel dimension - (user define)
       memberset:
                   Channeltype   
                       Boutique
                       Kiosk
                       Branch
                       Concession
                       Franchise
                       Nochannel
    in allocation code
    *runallocation
    *factor
    *dim entity                          what=Nonstore;                where=bas(Stores)
    *dim businesschannel        what=nochannel;             where= ? ;
    *endallocation
    The thing is that when the engine selected store 2 for entity it should select kiosk as its businesschannel.
    Please advise.
    Thanks as always,
    yajepe

    Hi,
    In this case, I believe, you should have the allocation within a for loop. But you should note that the performance might reduce.
    *FOR %VAR% = BAS(STORES)
       *RUNALLOCATION
       *FACTOR
       *DIM ENTITY WHAT = NONSTORE; WHERE = %VAR%
       *DIM BUSINESSCHANNEL WHAT = NOCHANNEL; WHERE = %VAR%.CHANNELTYPE
       *ENDALLOCATION
    *NEXT
    Hope this helps.

  • How can I create a filter for an exact set of characters?

    Hello! I am setting up a filter to catch messages with GG in the subject. Sometimes this will be at the beginning of the subject (no space at the front) and other times it will be somewhere in the middle. The problem I'm having is that this filter catches any word with "gg" in it, like "logged" or "baggage" (one of my customers has baggage in their name, but their messages should not be caught by this filter). How can I make this work? Thank you for your time!

    I think FiltaQuilla might be useful. It adds so-called Regular Expressions to the filter system, where you could use a construction like:
    "subject regex" "matches" "/\bgg\b/i"
    \b means a word boundary
    gg is your two letters
    \b is the trailing word boundary
    / and /i mean ignore the case, so it'll find gg, GG, Gg and gG.
    There lots of ways of doing this. You could have
    [ ]GG[ ]
    where it would require a space (explicitly; nothing else!) before and after, and capital letters. \b is usually superior as it matches at the beginning and end of the line, and recognizes regular punctuation in addition to spaces.

  • Lightroom 5 Beta – Radial Filter | What's New in Lightroom 5 Beta | Adobe TV

    Learn how easy it is to apply local adjustments including modifications to exposure, contrast, sharpening and more, using the new non–destructive Radial filter in Lightroom.
    http://adobe.ly/ZpT4bB

    Just keeps getting better

  • How can I filter a Sharepoint 2007 libarry list based on current user login?

    Hi all.
    I would like to know how I can filter a SharePoint library list based on current user login.
    Suppose I have created the followings:
    1) A SharePoint form library containing bunch of uploaded InfoPath form data.
    2) The InfoPath form template contains a promoted text field called "TargetUser" to store user domain login (ex: DOMAIN\JOE) and every InfoPath form file in the library has a valid domain name stored in the "TargetUser" field.
    I have created a custom view for the form library and would like to filter this view so only items whose "TargetUser" field matches current user's login ID are displayed.
    I went to Edit View page to customize the view and tried to use the [Me] function but I got a "Filter value is not a valid text string" message instead when clicking OK. Apparently [Me] returns a Person/Group data type and the filter cannot compare its value
    to that of "TargetUser".
    I tried using text functions (ex: TEXT([Me],"") hoping to extract default string value from [Me]. The filter accepts the parameter without any error but the resulting fitlered list does not display any items at all.
    I have googled this subject for hours but I have not found any solution.
    It would be greatly appreciated if anyone can help me to create a functional filtered list.
    FYI, my SharePoint 2007 installation is just WSS 3.0 + Form Server. I do not have MOSS 2007 (so no MOSS 2007 web parts or web services).
    Thank you.
    Jason

    Here's what I usually do in order to accomplish this.  Ultimately you'll need to have 2 different fields.  There's the one you already have, with DOMAIN\username stored in it.  Then you'll need an additional field as a "person" column type. 
    Call it "TargetPerson" or something.
    Create a sharepoint designer workflow that runs each time an item is created or changed.  One action:
    Set FIELD to VALUE.
    The first FIELD is "TargetPerson", the VALUE is your "TargetUser" field. 
    Once this is done, then the person value is stored in the person field.  This is the field that you can filter by "TargetPerson" is equal to [Me]
    Laura Rogers, MCSE, MCTS
    SharePoint911: SharePoint Consulting
    Blog: http://www.sharepoint911.com/blogs/laura
    Twitter: WonderLaura

Maybe you are looking for

  • How to get more than 300 results for a search

    Hi all, When we search for something in a peoplesoft, we get 300 default results right. Is there a way we can change that to 500 or 600 or any. Please help me. Thank you, Bye.

  • Converting from 2D to 3D not working for me

    I am trying to follow the tutorial "Converting from 2D to 3D" and it is 'not working for me.'  When I open the image 'archer...' I do not get layers, but only the background image, and consequently no 3DAxis widget appears. This is my first try at th

  • Change GL acocunt number in PO

    Hello Friends, I have tried to change GL account number in PO throug executing a program(BAPI). I am getting error message "Releases already effected are liable to be reset". What could be the reason for this? Please help me in resolving this issue.

  • User exit or Function Module for determining route in PO

    Hi all, We want to determine a new route in the stock transport order based on certain conditions. Can somebody help us with the appropriate user exit or a function modue. Kind Regards Chakradhar

  • Looking to hire live support/consultant to get me started

    I'm just switching from PC to Mac and Frontpage to Dreamweaver. I watched a bunch of Lynda movies, which were useful, but I have problems opening and working with my existing sites... content does not display in design view, CSS does not pick up etc.