1

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 で行うことができるように、そのフィルターをプログラムで設定できる場所が見つかりません。

これは可能ですか?

4

1 に答える 1

1

SCNでの回答- クレジット Ulrich Miller

残念ながら、そのような機能は現在サポートされていません。つまり、フィルタ ルールをプログラムで設定することはできず、ユーザーのみが設定できます。

于 2015-09-09T23:31:47.970 に答える