Skip to Content
0
Former Member
Dec 01, 2008 at 07:22 AM

unable to modify

24 Views

Hi Forum,

I couldnt able to modify the database table using the following code. Please help me out.

METHOD onactioncopy_selected_rows .

DATA: wd_node TYPE REF TO if_wd_context_node,

ls_node1 TYPE ig_componentcontroller=>element_node1,

lt_node1 TYPE ig_componentcontroller=>elements_node1,

lt_node2 TYPE ig_componentcontroller=>elements_node2,

wa_temp TYPE REF TO if_wd_context_element,

lt_temp TYPE wdr_context_element_set.

wd_node = wd_context->get_child_node( name = 'NODE1' ).

CALL METHOD wd_node->get_selected_elements

RECEIVING

set = lt_temp.

wd_node = wd_context->get_child_node( name = 'NODE2' ).

LOOP AT lt_temp INTO wa_temp.

CALL METHOD wa_temp->get_static_attributes

IMPORTING

static_attributes = ls_node1.

APPEND ls_node1 TO lt_node1.

CLEAR ls_node1.

ENDLOOP.

wd_node->bind_table( new_items = lt_node1 ).

Modify <dbtable> from table lt_node1.

ENDMETHOD.