Skip to Content
author's profile photo Former Member
Former Member

Multiple tables with filter options in ALV Table

Dear Experts,

I am using multiple alv tables under each tab and i am using default filter options in all the tables to filter the entries.

But the filter option is working only for the last alv table.

I have initialized all the alv tables coulmns and filter in the WDDOINT of the main view.

PFB the code used to set teh default filter option in the ALV Table.

lv_column_settings ?= lv_value.

********************************************************************************************
" To Enable Default Filter Option in the ALV Table
********************************************************************************************
lv_settings = lv_value->if_salv_wd_function_settings~get_function_std( if_salv_wd_c_std_functions=>filter ).
lv_settings->set_visible( cl_wd_uielement=>e_visible-none ).


CALL METHOD lv_value->if_salv_wd_std_functions~set_filter_complex_allowed( EXPORTING value = abap_true ).
CALL METHOD lv_value->if_salv_wd_std_functions~set_filter_filterline_allowed( EXPORTING value = abap_true ).

For example I have 5 tabs with each alv table having filter options, the filter option in the table in the last tab is working because that is the last ALV table I initialized the component usage in the WDDOINIT method.

Kindly advice how to make it work for all the tables.

Thanks in advance,

Nalla B.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 15, 2014 at 01:19 PM

    Hi Nalla,

    R u able to display all five ALV properly.

    If yes then probably the Standard function property which you have set for ALV filter is not pass to the all five models.

    Regards,

    Monishankar C

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Monishankar,

      Could you please let me know what do you mean by the standard funtion property in the code which i used above.

      Please suggest how to fix the same.

      Thanks for your valuable suggestions.

      Nalla B.

  • author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2014 at 10:43 AM

    Hi Nalla,

    Take 5 ALV component.

    Now to work with ALV you need to do 3 thing.

    1. Instantiate component reference (using create component).

    2. Set which node to display in ALV. ( using Set_Data method of the component).

    3. Further for any configuration or any setting take reference of the ALV model and do your coding filter settings etc.

    Do this for five component separately & declare all variable with separate name.

    If you use the code generator it will generate code with same name. So there is a high probability that some other reference are getting passed to the required once.

    An alternate suggestion try to do it with smaller no of component like 3 .

    Regards,

    Monishankar C

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.