cancel
Showing results for 
Search instead for 
Did you mean: 

How to access the structure of a dynamically created context node/element

Former Member
0 Kudos

Hi All,

in method wddoinit I have added a context node and some attributes

lo_node = wd_context->get_child_node( name = wd_this->wdctx_instructors ).
  lo_node_info = lo_node->get_node_info( ).
  lo_node_info = lo_node_info->add_new_child_node( name                  = 'OCCUPANCY'
                                                   is_mandatory          = abap_true
                                                   is_multiple           = abap_false
                                                   is_multiple_selection = abap_false ).
...

      lo_node_info->add_attribute( ls_attr ).


So far, I have node INSTRUCTORS (0...n) with a subnode OCCUPANCY (1...1)

In the supply_method of INSTRUCTORS I would like to fill the instructors node and the OCCUPANCY subnode.

The thing is I do not know the structure of the dynamicaly created subnode OCCUPANCY there. How can I get a description of this node (that, what in non-dynamic programming would be wd_this->element_occupancy...)??

THANKS,

Johannes

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

...I got this one solved by myself...

I simply added this coding:

lo_node_info = lo_node->get_node_info( ).
  lt_attributes = lo_node_info->get_attribute_names( ).

This appers to be enough information to be good to gogo

Thanks anyway.