on 12-01-2008 7:22 AM
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.
Hi Mallika,
As how I had said earlier. You had earlier created 2 other threads for the same issue & I had even provided the solution in there. You haven't changed the status of any and have re-opened a fresh thread just to follow up the same issue. Try look at those earlier threads of yours you already have the solution in there. If in case you have any queries you should try continue with the same thread & not start new threads like in here. The moderator would lock up your thread if he becomes aware of this.
Regards,
Uday
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Where you declare your context node,in the view or component controller.
here you declared attributes of type component controller interface attributes.
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.
here you are refering view context.
wd_node = wd_context->get_child_node( name = 'NODE1' ).
where you have data i.e controller context or view context.
to get the entire data of context use this method GET_STATIC_ATTRIBUTES_TABLE of interface if_wd_context_node.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mallika ,
Please check that you have some entries in table lt_node1 , before modify statement.
If you have entries in it , call commit work statement , after modify.
Regards
Amol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.