2010-05-15 82 views

回答

-1

我終於得到了解決:

在按鈕事件執行以下,訪問節點和最後的ID值:

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. 
1
+0

你完全貼3次相同的鏈接。我敢打賭,你前幾天像我一樣走進框架陷阱。 – 2010-05-16 17:24:23

相關問題