Skip to Content
0
Former Member
Jun 05, 2009 at 02:47 PM

How to pass value to subnode

49 Views

Hi

i have a node as 'node_1' and subnode as 'snode_2'.

snode_2 has 4 attributes.

i binded this node with a table...

now i want to pass value to the subnode 'snode_2'.

code

DATA lo_nd_node1 TYPE REF TO if_wd_context_node,

lo_nd_snode_2 TYPE REF TO if_wd_context_node,

lo_el_node2 TYPE REF TO if_wd_context_element,

ls_snode_2 TYPE wd_this->elements_node2.

lo_nd_snode_2 = wd_context->get_child_node( name = 'NODE_1.SNODE_2' ).

SELECT carrid connid fldate price from sflight into CORRESPONDING FIELDS OF TABLE ls_snode_2.

LO_ND_NODE2->BIND_TABLE( ls_snode_2 ).

error:

Subnode firstview.node_1.snode_2' does not exist