Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9236

Re: Access a child node data

$
0
0

Hi Vimal,

 

Try this:

 

* Data declaration

  DATA lo_nd_node1 TYPE REF TO if_wd_context_node.

  DATA lo_nd_node2 TYPE REF TO if_wd_context_node.

  DATA lo_nd_node3 TYPE REF TO if_wd_context_node.


* Declare internal table of type Node3

  DATA lt_node3_table TYPE wd_this->Elements_node3name.


* Navigate from CONTEXT to child node NODE1

  lo_nd_node1 = wd_context->get_child_node( name = wd_this->wdctx_node1name ).


* Navigate from NODE1 to child node NODE2

  lo_nd_node2 = lo_nd_node1->get_child_node( name = wd_this->wdctx_node2name ).


* Navigate from NODE2 to child node NODE3

  lo_nd_node3 = lo_nd_node2->get_child_node( name = wd_this->wdctx_node3name ).


* Get contents of NODE3 into internal table

  lo_nd_node3->get_stattic_attributes_table( IMPORTING Table = lt_node3_table ).


Regards,

Felipe


Viewing all articles
Browse latest Browse all 9236

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>