Skip to Content
avatar image
Former Member

result type of get_elements of if_wd_context_node


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!



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jun 23, 2010 at 09:32 AM

    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


    Chinnaiya P

    Add comment
    10|10000 characters needed characters exceeded