cancel
Showing results for 
Search instead for 
Did you mean: 

How do I programmatically set a filter in a FPM list UIBB

esti1
Participant
0 Kudos

In Floorplan Manager I want to programmatically set the filter of a column in the list view.

I can turn filtering on by doing the following:


method if_fpm_guibb_list~get_definition.

data: structure type ref to cl_abap_structdescr,

components type cl_abap_structdescr=>included_view.

field-symbols: <component> like line of components.

eo_field_catalog ?= cl_abap_tabledescr=>describe_by_name( gc_itm_table ).

structure ?= eo_field_catalog->get_table_line_type( ).

components = structure->get_included_view( ).

loop at components assigning <component>.

append initial line to et_field_description assigning <description>.

<description>-name = <component>-name.

<description>-allow_filter = abap_true.

endloop.

endmethod.

However at the moment I can't find where I can programmatically set what that filter is as I could do in ALV.

Accepted Solutions (1)

Accepted Solutions (1)

ulrich_miller
Active Participant
0 Kudos

Hi Esti,
unfortunately such a functionality is currently not supported, i. e. filter rules cannot be set programmatically but only by the user.#

Cheers.

Answers (0)