Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

WD ALV(ViewContainerUIElement) get filter value

Hi all,

can someone give me an example how i can get the filter value of my ALV?



Former Member

You are going to have to use the ALV Model:

data l_salv_wd_table type ref to iwci_salv_wd_table.
  l_salv_wd_table = wd_this->wd_cpifc_alv( ).
  data l_table type ref to cl_salv_wd_config_table.
  l_table = l_salv_wd_table->get_model( ).

There is a method of the model object called GET_FIELDS. This will return a table references to the CL_SALV_WD_FIELD object - one record for each column in the table.

The CL_SALV_WD_FIELD object has a method GET_FILTER_RULES. This method will return a table of object references to object CL_SALV_WD_FILTER_RULE. From this object you can get the OPERATOR, LOW and HIGH value of the filter object.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question