on 05-15-2012 9:57 AM
HI....Narsimha Rao
Please go through the following link.it may help full to you.
http://scn.sap.com/thread/2047872
Thanks & Regards,
Pavan Maganti.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank You all....I got the result
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Narasimha Rao,
First u need to get selected elements into to a nternal table..
-->before that u have declare the table which allows for multi record selectable, for that declare table selection property as 0..n.
-->then by using get_selected_elements of if_wd_context_node for getting selected records.
-->then by using bind_table( ) append the selected records to particular table in which u hav to display.
Thanks And Regards .
Lokesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Narasimha,
1. Provide the node Selection Cardinality as 1..n (it will enable control + select option).
2. By clicking on row selector of Table with the help of CTRL key of keyboard.
3. After selection, let you have CONTINUE action.
5. in CONTINUE action you just write the below code.
data: lt_elements type WDR_CONTEXT_ELEMENT_SET,
ls_elements like line of lt_elements.
data: lo_node_1 type ref to if_wd_context_node,
lo_node_2 type ref to if_wd_context_node.
data: <ls_node_2> type <work area of Node_2>,
<lt_node_2> type <Line type of Node_2>,
<ls_node_1> type <work area of Node_1>.
lo_node_1 = <get node reference>.
lt_elements = lo_node_1->get_selected_elements( ).
loop at lt_elements into ls_elements.
ls_elements->get_static_attributes( static_attributes = ls_node_1 ).
ls_node_2-<field_1> = ls_node_1-<field_1>.
ls_node_2-<field_2> = ls_node_1-<field_2>.
ls_node_2-<field_3> = ls_node_1-<field_3>.
append ls_node_2 to lt_node_2.
clear: ls_node_2, ls_elements.
endloop.
lo_node_2->bind_table( lt_node_2 ).
******************************
Hope you understood.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
First get the selected rows from table using method GET_SELECTED_ELEMENTS from 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 Narsimha,
Use below logic...
context_node = wd_context->get_child_node( name = 'CARRIERS').
it_selrows = context_node->GET_SELECTED_ELEMENTS( ).
LOOP AT it_selrows INTO wa_selrows.
CALL METHOD wa_rows->get_static_attributes
IMPORTING
static_attributes = wa_scarr.
APPEND wa_scarr TO it_scarr.
CLEAR wa_scarr.
ENDLOOP.
regards,
Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.