cancel
Showing results for 
Search instead for 
Did you mean: 

result type of get_elements of if_wd_context_node

Former Member
0 Kudos

Hello,

I need to get the internal table of a context node. I try to use the methode get_elements(), but the result type is not if_wd_context_element. What should it be? Could you give me any suggestion? Many thanks!

regards

meer

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi , For getting the context element in to an Internal table you have to use

get_static_attributes_table method ,

Look into the Piece of code below

DATA lo_nd_series TYPE REF TO if_wd_context_node.
    DATA lt_series TYPE wd_this->Elements_series.
*   navigate from <CONTEXT> to <SERIES> via lead selection
    lo_nd_series = wd_context->get_child_node( name = wd_this->wdctx_series ).

    lo_nd_series->get_static_attributes_table( importing table = lt_series ).

Search SDN before posting the New thread

Regards

Chinnaiya P

Former Member
0 Kudos

Thanks a lot!

Former Member
0 Kudos

Hello Meeru ..

if got the desier result .. plz close the thread ..

Regards

chinnaiya P