on 05-13-2010 8:18 AM
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.