如何以编程方式在 FPM 列表 UIBB 中设置过滤器
How do I programmatically set a filter in a FPM list UIBB
在 Floorplan Manager 中,我想以编程方式设置列表视图中列的过滤器。
我可以通过执行以下操作来打开过滤:
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.
但是目前我找不到可以在 ALV 中以编程方式设置过滤器的位置。
这可能吗?
如在 SCN 上的回答 - 作者 Ulrich Miller
Unfortunately such a functionality is currently not supported, i. e.
filter rules cannot be set programmatically but only by the user
在 Floorplan Manager 中,我想以编程方式设置列表视图中列的过滤器。
我可以通过执行以下操作来打开过滤:
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.
但是目前我找不到可以在 ALV 中以编程方式设置过滤器的位置。
这可能吗?
如在 SCN 上的回答 - 作者 Ulrich Miller
Unfortunately such a functionality is currently not supported, i. e. filter rules cannot be set programmatically but only by the user