cancel
Showing results for 
Search instead for 
Did you mean: 

Settings action in ALV table disabled

Former Member
0 Kudos

Hi all,

I have done some changes in my ALV table settings (Setting Action in the right corner of the table) which made the settings action and Filter action disappeared. Now i cannot see those actions in my table. How to make those actions to appear again in my ALV table.

Can any one guide me.

Regards,

Susil.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Those settins are stored as your user specfic personalization settings.

Check the below thread:

It mentions a WD component to delete personalization settings.

Run this and then run your alv comp again.

Hope this helps

Regards

Manas Dua

Former Member
0 Kudos

To set the Filter in your ALV follow these steps:

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 ).