Code: Alles auswählen.
Types : Begin of ty_context,
name type SDOKPROPTY-NAME,
value type SDOKPROPTY-VALUE,
end of ty_context.
*Creating internal table and Work Area of the same structure as that of the Node created.
Data : lt_globaler_context type standard table of ty_context.
DATA ls_context LIKE LINE OF lt_globaler_context.
*Appending Blank Work Area to Internal table.
ls_context-name = 'test'.
ls_context-value = 'DE'.
INSERT ls_context INTO TABLE lt_globaler_context.
ls_context-name = 'test'.
ls_context-value = '1.0'.
INSERT ls_context INTO TABLE lt_globaler_context.
ls_context-name = 'Test'.
ls_context-value = 'xxx'.
INSERT ls_context INTO TABLE lt_globaler_context.
ls_context-name = ''.
ls_context-value = ''.
INSERT ls_context INTO TABLE lt_globaler_context.
"Binding the table
DATA lo_nd_globaler_context TYPE REF TO if_wd_context_node.
DATA lo_el_globaler_context TYPE REF TO if_wd_context_element.
* navigate from <CONTEXT> to <GLOBALER_CONTEXT> via lead selection
lo_nd_globaler_context = wd_context->get_child_node( name = wd_this->wdctx_globaler_context ).
* get element via lead selection
lo_el_globaler_context = lo_nd_globaler_context->get_element( ).
lo_nd_globaler_context->bind_table( new_items = lt_globaler_context set_initial_elements = abap_true ).