Skip to Content
0
Former Member
Aug 13, 2009 at 03:49 PM

How can we re-bind internal table to Form

24 Views

Hi,

I need to re-bind internal table after some modifications.

I am trying to do it by using Native library submit button on form and in onsubmit event method

I used following code but my form dissappear after I click button

DATA lo_nd_adobe_data TYPE REF TO if_wd_context_node.
  DATA lo_nd_material_node TYPE REF TO if_wd_context_node.
  DATA lo_el_material_node TYPE REF TO if_wd_context_element.
  DATA ls_material_node TYPE wd_this->element_material_node.
 
  DATA lt_material TYPE STANDARD TABLE OF wd_this->element_material_node.
  DATA wa_material TYPE wd_this->element_material_node.
 
 
* navigate from <CONTEXT> to <ADOBE_DATA> via lead selection
  lo_nd_adobe_data = wd_context->get_child_node( name = wd_this->wdctx_adobe_data ).
 
* navigate from <ADOBE_DATA> to <MATERIAL_NODE> via lead selection
  lo_nd_material_node = lo_nd_adobe_data->get_child_node( name = wd_this->wdctx_material_node ).
 
  IF lo_nd_material_node IS NOT INITIAL.
    CALL METHOD lo_nd_material_node->get_static_attributes_table
      IMPORTING
        table = lt_material.
 
  ENDIF.
 
  LOOP AT lt_material INTO wa_material.
 
 
    wa_material-diffq = wa_material-sysqn -  ( wa_material-usrmo + wa_material-relw1 + wa_material-relw2 + wa_material-relw3 ).
 
    MODIFY lt_material FROM wa_material.
 
  ENDLOOP.
 
 
  lo_nd_material_node->bind_table( lt_material ).

What am i doingw rong?

rgds

Vara