1

多数の行を表示するテーブルを含むwebdynproがあります。ユーザーが削除ボタンをクリックした後、テーブルの選択した行を削除したいと思います。

今の私の問題は、イベントコールでこれを実装する方法がわからないことです。

テーブルの選択した行を特定するにはどうすればよいですか?

4

2 に答える 2

1

「テーブル」が編集可能なALVを意味する場合、これにはプリセット機能があります。http://help.sap.com/saphelp_nw04s/helpdata/EN/5f/ec57c72a1349c8bfdda56d976e9399/frameset.htmおよびhttp://help.sap.com/saphelp_nw04s/helpdata/EN/5f/ec57c72a1349c8bfdda56d976e93をご覧ください。 htm選択を手動で処理する方法の詳細については、http://help.sap.com/saphelp_nw04s/helpdata/EN/5f/ec57c72a1349c8bfdda56d976e9399/frameset.htmを参照してください。

于 2010-05-16T08:04:24.137 に答える
-1

私はついに解決策を得ました:

ボタンイベントで、ノードにアクセスし、最後にid-valueにアクセスするには、次を実装します。

method ONACTIONZSS10_15_ONDELETE .  
  DATA ls_cust type wd_this->element_IT_Cust.
  DATA lo_nd_cust TYPE REF TO if_wd_context_node.
  DATA lo_el_cust TYPE REF TO if_wd_context_element.

  " Get the selected element
  lo_nd_cust = wd_context->get_child_node( name = 'IT_CUST' ).
  lo_el_cust = lo_nd_cust->get_element( ).

  " Get the attributes of the node-element
  lo_el_cust->get_static_attributes(
    IMPORTING
      static_attributes = ls_cust ).

  " Call the delete-function
  CALL FUNCTION 'ZSS10_15_CUST_FM_DELETE'
    EXPORTING
      custid        = ls_cust-ID
            .
endmethod.
于 2010-05-17T11:40:50.793 に答える