cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Problen Iterator Filter (get_filter_by_property) gives back 0 (error)

ChrisKuehne
Explorer
0 Kudos

Hi,

I am facing the following Problem.

When I am using the standard iterator method:

lr_result ?= me->typed_context->result->get_collection_wrapper( ).

lr_iterator = lr_result->get_iterator( ).

...

CALL METHOD lr_iterator->filter_by_property

EXPORTING

iv_attr_name = <lv_attr>

iv_value = <lv_value>

...

lv_size = lr_iterator->size( ).

I get Zero results instead of the correct results after applying the webui filter to the result context node iterator.

Why is the method working vor some columns correct fr others not?

There is also no namespace error which could take here effect.

Anybody a clue?

***

Why I am using this coding?

In WebUI I get a result list. the enduser would like to filter in the WebUI for some columns and get the number of all entries found back which met this search cirteria.

The filters are stored out of the do_handle_event method

but the context node is unfiltered

for that reason I would like to apply the WebUI frontend filters over the iterator functionality.

Accepted Solutions (0)

Answers (1)

Answers (1)

ChrisKuehne
Explorer
0 Kudos

Hi,

I found out that if you are using runtime data in the table and fill columns right away you can use the WebUI Filter to filter the data here. but the iterator can takes the original result list entities without these runtime evaluated information.

for that reason filter_by_property method will not work!

does anybody know how i can get the actual WebUI shown result list? with all filters and so on?