on 08-12-2009 8:01 PM
Hi.
I have a Interactive form with a Native submit button with single MAIN view .
I am poupulating the form intially in WDOINIT method & I am trying to do some calculations on the form using submit click.
Here is what i am doing onclick.After I click submit button item form dissappears completely .
When I debug i see all the entries in the table lt_material but it doesn't shows up in the form.
I don't have anycode in other Methods.What could be the reason? I can use scripts too but I need to use this functionality for other requirement.
METHOD onactionclick .
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 ).
ENDMETHOD.
Edited by: Vara K on Aug 12, 2009 9:16 PM
Resolved! it was binding issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.