on 04-29-2013 8:57 AM
Hi Experts,
In ALV there is a standard option to filter values.
Assuming I use a filter, how can I iterate on the result? (filtered values)
Regards,
Omri
Hi Omri,
You need to create a action, lets say 'APPLY'. You can read the filter values of ALV onActionApply. Try with the following code:
DATA: lr_alv TYPE REF TO iwci_salv_wd_table,
l_value TYPE if_salv_wd_table=>s_type_param_get_ui_info,
lt_rows_selected type if_salv_wd_table=>s_type_param_get_ui_info-t_displayed_elements,
row_idx type i.
lr_alv = wd_this->wd_cpifc_alv( ).
IF NOT lr_alv IS INITIAL.
l_value = lr_alv->get_ui_info( ).
lt_rows_selected = l_value-t_displayed_elements.
ENDIF.
loop at lt_rows_selected into row_idx.
* Read the elements from the mapped ALV data node based on the row_idx
* Your business logic
endloop.
Regards
Abhinav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.