on 01-23-2010 2:10 AM
'
Hi,
I am using the method GET_ELEMENTS( ) and returning it to table type WDR_CONTEXT_ELEMENT_SET but even if there is more than 1 element in the node, it only returns 1 element.
Below is part of my code.
I could not figure out what I am doing wrong.
I have also tried using GET_METHOD() without parameters but that doesn't work either. It only returns 1 element.
Need your help.
Thanks.
Giscard
DATA:
lv_node_name TYPE string,
DATA:
lo_nd_dynamic TYPE REF TO if_wd_context_node,
lo_el_dynamic TYPE REF TO if_wd_context_element,
lt_el_dynamic TYPE WDR_CONTEXT_ELEMENT_SET.
DATA:
lv_el_count TYPE i.
lo_nd_dynamic = wd_context->get_child_node( name = lv_node_name ).
lv_el_count = lo_nd_dynamic->get_element_count( ).
lt_el_dynamic = wd_context->get_elements( from = 1 to = lv_el_count ).
LOOP AT lt_el_dynamic INTO lo_el_dynamic.
ENDLOOP.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Found out what was wrong.
Should be:
lt_el_dynamic = lo_nd_dynamic->get_elements( from = 1 to = lv_el_count ).
Sorry about that...
Thanks...
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 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
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.