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.

Similar Messages

  • How to Pre-Select a View for ALV dashboard at runtime

    Hello Experts,
    The requirement is to pre-select 1 view initially (out of several configured) for 'All' users and disable the 'View-selection' dropdown function in a standard ALV dashboard. So whenever the dashboard loads, a particular view has to be set automatically for all users.
    I need your help for the first part, which is to always pre-set a 'View' in a standard dashboard.
    I tried to implement the suggestion provided in the following thread:
    How to apply ALV view at runtime
    However I couldn't make this work in my case. I created a Post-Exit of a method in Comp Ctlr of dashboard (Initialize method) - where I receive the refrence 'IWCI_SALV_WD_TABLE'. Then calling the method 'GET_CONFIG_DATA' with action 'if_salv_wd_table=>set', I try to set the view, but it has no effect.
    Thanks a lot for your help,
    Abir

    Hi abir,
    Use this and alv1 is my alv component name
        DATA LO_CMP_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE.
        LO_CMP_USAGE =   WD_THIS->WD_CPUSE_ALV1( ).
        IF LO_CMP_USAGE->HAS_ACTIVE_COMPONENT( ) IS INITIAL.
          LO_CMP_USAGE->CREATE_COMPONENT( ).
        ENDIF.
        DATA LO_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
        LO_INTERFACECONTROLLER =   WD_THIS->WD_CPIFC_ALV1( ).
    LS_PARAM_IN TYPE IF_SALV_WD_TABLE=>S_TYPE_PARAM_CONFIG_IN.
    ls_param_in-default = "your view name " ( view is of type wdr_pers_variant)
        DATA LO_VALUE TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
        LO_VALUE = LO_INTERFACECONTROLLER->GET_CONFIG_DATA( ls_param_in )
    Regards
    Srinivas
    Edited by: sanasrinivas on Dec 30, 2011 7:15 AM

  • Possible to have dynamic default selections for a dashboard prompt?

    I'm running OBIEE 11.1.1.6.5, and I have customer who would like to know if it is possible to dynamically select default values on a dashboard prompt based upon other user prompted columns on the same prompt. For example, I built a dashboard prompt with three fields: Month, Customer, and Product; and I want to add a default selection to my Products prompt to pick the "top 4 products" based on the selected Month and Customer.. assuming every Customer+Month has a different "top 4 products".
    Does anyone please have a suggestion on how I could approach this solution?

    Thank you for your response. I've tested this approach and it seems promising. My concern I have there is how to treat "(All Choices)" values. Say the user selects All Choices on customer or period, and the presentation value in my SQL Results query reverts to whatever default value specified, which is not the intended behavior. My question then becomes how do I treat the null or All Choices and somehow omit the filter criteria or specify fy All Choices as a default to the presentation variable? Your advice is much appreciated.

  • Lead Selection does not work after setting filter for ALV.

    Hi, Can you please suggest on below scenario :
    I have a Node with a sub node in it .
    I am using the supply function on Sub Node to retrieve the date based on Parent Node.
    There are two ALV's to display parent and item data. The issue is when a filter(user defined filter) is done on Parent table, the supply function does not work. The value is that of the selected row before setting the filter. Even after removing the filter, the item data is stuck and does not change on Lead Selection.
    One thing I noticed is if the child table is a table UI, there is no issue. The only problem is when the second table is ALV
    Thanks In Advance

    Hi Prashanthi,
    Your issue can be resolved as below
    Create an event handler method 'set_alv_data'  for the event 'ON_LEAD_SELECT' of parent alv
    Write the below code inside the event handler method
    METHOD set_alv_data.
      DATA lo_node TYPE REF TO if_wd_context_node.
      DATA lv_path TYPE string.
      DATA lv_index TYPE string.
      lv_index = r_param->index.
      CONDENSE lv_index.
      CONCATENATE wd_this->wdctx_my_parent_node
      lv_index
      wd_this->wdctx_my_child_node
      INTO lv_path SEPARATED BY '.'.
      lo_node = wd_context->path_get_node(
          path                          = lv_path
      DATA lo_interface TYPE REF TO iwci_salv_wd_table.
      lo_interface = wd_this->wd_cpifc_alv_child( ). "get the ref of alv comp of child
      lo_interface->set_data(
        EXPORTING
    *    only_if_new_descr =
          r_node_data       = lo_node
    ENDMETHOD.
    The above code sets the data node of child alv based on lead selection of parent alv data.
    Note: Replace 'parent_node', 'child_node'  with your nodes & 'alv_child' with your alv component name of child alv.
    If you want to control the data of child alv on filter function, you can use the event ON_STD_FUNCTION_AFTE and once you define the filter you get the r_param->id = 'SALV_WD_FILTER_DEFINE'  & now you can clear data of child alv.
    Hope this helps you.
    Regards,
    Rama

  • Removing filter for ALV grid

    Hi friends
    I am using an ALV grid to display my data. Once i used the filter in grid to filter some datas and go back to selection screen & executed the report again, the filter is still active and not showing all datas. How to avoid this.
    Regards
    Sathar

    Hi Abdul Sathar
    I find the solution if you are using ALV OO.
    For delete the ALV's filter call the method SET_FILTER_CRITERIA and send the parameter IT_FILTER with a itab empty.
    I hope this help you.

  • How to use filter for alv display in webdynpro

    hi,
         i have use select-options and what ever data is coming from the data base i display it using alv.
    i also want to include functionality like filter and all that , that comes in normal alv.please guide me how can i do it.
    thanks

    hi please remind  that this is not the proper forum for this ...go to this
    Expert Forums » ABAP Development » UI Programming

  • Can we have a Default Value for the dashboard prompt ?

    Hi
    I have a requirement as when we run the dashboard, dashboard prompt should be defaulted with a value for the first time.
    Defaulting the values is done by SQL Results,but when i try to change the values for that prompt it is not showing any other values other than the defaulted prompt.
    Ex: I have a dashboard prompt as Employee Name and i have defaulted the value for that with 'Scott' and ran the dashboard.
    When i try to run it for different employee i am not able to get other values to be selected.
    Do we have any mechanism as such we can have default value when we run the dashboard for the first time and then all the values when we run it for the second time?
    Thanks

    user12846884 wrote:
    Defaulting the values is done by SQL Results,but when i try to change the values for that prompt it is not showing any other values other than the defaulted prompt.
    ThanksYou do something wrong. What is the version of OBIEE? How do you create prompt?

  • How to set default layout for ALV grid ?

    Dear all,
    When execute ALV reports, the user customize the layout for their own purpose. But each time they run that report, they must choose again their layout. Is there any way to set the layout as default ?
    Thank you very much,
    Sylvecat.

    Hi,'
    After you have created a layout just follow the steps listed below for making it as default layout:
    1. Click (Save Layout).
    2. Enter a name in the Save Layout field. The name must begin with a letter.
    3. Type in a description for the layout in the Name field.
    4. Select the Default Setting check box if you want this layout to be the default layout every time you run
    the report.
    5. Click (Continue).
    Note: A warning message will appear if you are trying to save over an existing layout. Close the box by
    selecting the X in the upper right hand corner or choose Yes to overwrite the layout.
    Reward Points if found helpfull..
    Cheers,
    Chandra Sekhar.

  • Resolved:how to set default LAYOUT for ALV list display

    hey guys,
      In my alv report there are 20 cloumns.
    after display i usualy choose 12 of them from CHOOSE LAYOUT option and then give it to print...
    how to set this LAYOUT as default
    sorry guys i figured it out..
    but can we give it programiticlay?
    Edited by: kumar gaurav on May 27, 2008 8:15 AM

    hi,
    you can do it.
    after declaring the catlog table you will give as
    wa_catlog-seltext_l = 'material'.
    wa_catlog-datatype = 'char'.
    wa_catlog-outputlen = 18.
    wa_catlog-fieldname = 'matnr'.
    append wa_catlog to i_catlog.
    clear wa_catlog.
    wa_catlog-seltext_l = 'plantl'.
    wa_catlog-datatype = 'char'.
    wa_catlog-outputlen = 4.
    wa_catlog-fieldname = 'werks'.
    append wa_catlog to i_catlog.
    clear wa_catlog.
    similarly what sequence you give here i.e. material  ,  plant  etc. you get the output in the same oder you can even give only the fields you want in the output.
    rewards points if useful.
    siri

  • How to set default filepath for alv export?

    when i use the standard function of alv export, list-export-local file-spreadsheet
    the default filepath is "C:\Users\Administrator\Documents\SAP\SAP GUI\"
    may i change the default filepath to another direction?

    Anyone Help? Thanks~

  • UCCX/CUIC 10.5 - Default filter error when trying to run reports through dashboard

    I'm new to CUIC.  We just upgraded UCCX to 10.5.1 this past weekend, and I'm working on building a dashboard to replace the old wallboard that was custom written by our integrator previously.  When I add the live report for CSQ Detail (example...name may be a little off), it displays the options you would expect in the dashboard designer.  When I create a permalink and attempt to run it, it throws an error about not having a default filter specified...what should I be looking for to setup the default filter?
    I've been looking through the user guide, but can't find anything specific around default filters.
    Thanks all
    SJ

    Click on the header for the "Reports" drawer to open the "Available Reports" tab. Find the report you are trying to permalink and right click -> Edit. Click the "Edit Default Filter" button in the top left or bottom left and you can create and save a default filter for the report.

  • Interactive report and default-filter

    ahoj!
    i have a question regarding interactive reports and default-filter for a date: is it possible to use the current date for the default-filter? apex need 'dd.MM.yyyy' for the filter... already tried to_date(sysdate, 'dd.MM.yyyy')
    thx in advance,
    christian

    Hi,
    I've just been trying the "in the last" option and had no problems for any number that I entered. Are you just entering 1 into the box? What error do you get?
    I've loaded the page with Debug switched on, and get:
    select
           null as apxws_row_pk,
           "DATE_ID",
           "ATD_DATE",
           "CHECK",
           count(*) over () as apxws_row_cnt
    from (
    select  *  from (
    select
    apex_item.checkbox(1, DATE_ID) "CHECK",
    "DATE_ID",
    "ATD_DATE"
    from "#OWNER#"."ATD_DATES"
    )  r
    where ("ATD_DATE" between systimestamp - (1 * :APXWS_EXPR_1) and systimestamp)
    ) r where rownum <= to_number(:APXWS_MAX_ROW_CNT):APXWS_EXPR_1 would contain the value 1 as that is what I've entered for the filter. My report's sql statement is just the innermost nested select statement, the rest has been added by the IR functionality and the filter.
    Andy

  • ALV Grid default values for new rows added with Add/Insert buttons

    Hi!
    Help, please,  to find a way how to set default values for new rows added with Add/Insert buttons in
    ALV Grid.

    I have found salution:
    ALV Grid u2013 Insert row function
    Sometimes we need to assign some default values when we create a new row in a grid using standard ALV Append row button. In our scenario we will see how to assign default values to Airline Code (CARRID), Flight Connection Number (CONNID) and Flight date (FLDATE) when a new row is created. To do that we need to handle DATA_CHANGED event in the program like mentioned below.
    Definition of a class:
    Code:
          CLASS lcl_event_receiver DEFINITION
    CLASS LCL_EVENT_RECEIVER DEFINITION.
      PUBLIC SECTION.
    METHODS:
         handle_data_changed
         FOR EVENT data_changed OF cl_gui_alv_grid
         IMPORTING er_data_changed
                           e_ucomm.
    ENDCLASS.                    "lcl_event_receiver DEFINITION
    Implementation of a class:
    Code:
    CLASS LCL_EVENT_RECEIVER IMPLEMENTATION.
      METHOD HANDLE_DATA_CHANGED.
        DATA: dl_ins_row TYPE lvc_s_moce.   " Insert Row
          FIELD-SYMBOLS: <fs> TYPE table.    " Output table
    Loop at the inserted rows table and assign default values
        LOOP AT er_data_changed->mt_inserted_rows INTO dl_ins_row.
          ASSIGN er_data_changed->mp_mod_rows->* TO <fs>.
          loop at <fs> into ls_outtab.
            ls_outtab-carrid  = 'LH'.
            ls_outtab-connid  = '400'.
            ls_outtab-fldate  = sy-datum.
            MODIFY <fs> FROM ls_outtab INDEX sy-tabix.
          endloop.
        endloop.
      ENDMETHOD.                    "handle_data_changed
    ENDCLASS.                    "lcl_event_receiver IMPLEMENTATION
    Register the events to trigger DATA_CHANGED event when a new row is created.
    Code:
        CALL METHOD OBJ_GRID->REGISTER_EDIT_EVENT
          EXPORTING
            I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_ENTER.
        CALL METHOD OBJ_GRID->REGISTER_EDIT_EVENT
          EXPORTING
            I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_MODIFIED.

  • OBIEE Answer : SQL Filter for one column of the Dashboard sample : 201301

    I need to filter the report on the basis of one of the filter on the column which is created by custom calculation :
    YEAR ("Order Header Attributes"."Status Date" ) * 100 + WEEK("Order Header Attributes"."Status Date" )
    and this in the Number format.
    I need the filter as : 2013 + Week(CurentWeek) -1 = 201302
    Please help me create a custom SQL filter for the same.

    Anitha ,
    I am getting the error while doing it with Prompt :
    I went to the Dashboard on top Left next to results there is a Prompt there i clicked a new prompt i gave a name , description selsected my column in Filter on Column
    Operator : = is equal to / is in
    How should the user choose a value or values?
    * Select it from a drop-down list
    Browse through choices and/or type in directly
    * Single Value Only
    What values should be shown to the user?
    None
    All Values
    Limited Values
    * SQL Results (year("Status Date")*100) + WEEK_OF_YEAR("Status Date")-1)
    (The values returned by this SQL statement)
    Other options
    Choices per page
    (leave blank for automatic setting)
    Allow user to constrain choices
    Allow user to skip prompt
    I am doing correctly please help me in case i am not doing it correctly
    Regards ,
    Nidhi

  • Default Layout for Multiple ALV displays

    Hello All,
    I have a requirement where I am displaying multiple ALV grid displays on different tabs of a screen.
    Now I have to set a default layout for each of the grids separately as they have different fields.
    Please let me know how to do it, I am using OO ALV display.
    Thanks a lot
    Ruchi

    Hi,
    According to your grid called pass the variant name
        gs_variant-report       = sy-repid.
        gs_variant-username     = sy-uname.
        gs_variant-variant      = v_vari.   " Your variant Name
        call method grid1->set_table_for_first_display 
          exporting
            is_layout                     = gs_layout
            is_variant                    = gs_variant  "<<<<<<<<<
            i_save                        = 'A'
            it_toolbar_excluding          = i_exclude[]
          changing
            it_outtab                     = i_output[]
            it_fieldcatalog               = i_fieldcat[]
          exceptions
            invalid_parameter_combination = 1
            program_error                 = 2
            too_many_lines                = 3
            others                        = 4.

Maybe you are looking for

  • What is the best way to call a report from within a report

    What is the best way to call a report from within a report(master / Detail concept) A type of drill down report Oracle Database 10g Forms 10.1.2.0.2 Report Builder 10.1.2.0.2

  • PDF files display without margins?

    Here's what I'm trying to do ... not sure if it's possible or not. I would like to make a brochure in Pages that I can email to people. I want it to look nice and have a professional feel to it. So, when they open it in Adobe, I want there to not be

  • 5th Gen. Video & Photo feautres are gone

    I just discovered that my 5th gen iPod has been demoted. The photo and video features have somehow been disabled - they don't know up in iTunes preferences, nor can I drag a movie onto the iPod. When I run the iPod software updater, the icon has chan

  • Can I automatically generate a contact list from my emails?

    I've been using Mail for years. But not Address Book. I've got about 10,000 emails, and I'm wondering if there's a way to pull all the email addresses from Mail and automatically generate an Address Book out of it? Or is there a utility somewhere? Th

  • Stand-alone (slow) boot

    Hi, I've got Arch installed on a R50p thinkpad. Yesterday I booted stand-alone (no network cable attached) and I notices the boot pausing long on the "starting network". Can this be tweaked? Can the "boot process" sence that there is no cable attache