Skip to Content
author's profile photo Former Member
Former Member

How can we re-bind internal table to Form

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2009 at 06:26 PM

    Resolved ! it was binding issue.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.