cancel
Showing results for 
Search instead for 
Did you mean: 

Reading child node *** Urgent

Former Member
0 Kudos

hi experts,

Im having a parent node of cardinality 0..n( which is used as a table in my application). this parent node i have a child node of cardinality 0..n, again its a table which has to be displayed in table popin.

i dont know how to read the child table with respected to particular context to the parent node selected and to read all the child node entries ir-respective of the parent node selected..

please help me, i want to code it today.

Really urgent please.....

Thanks,

James

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi james.....

consider node b is a child of node a.

you can read both the nodes seperately wtih the use of code wizard.....read node.

so you will be having two internal tables having values of nodes a and b. so b is nothing but the values irrespective of the parent.

now you can read node b with respect to the values of a usingyour own logic.

---regards,

alex b justin

Former Member
0 Kudos

Hi,

in this <a href="/people/mohammed.anzys/blog/2007/08/02/webdynpro-abap-quick-tips-11table-popin-in-steps the mechanism is explained,

in the on action, the variable context_element is the parent element,

from there, you can select your values of the subnode, even better would be to use

singleton subnode, so there is only one instance of the subnode, you just need

to write a supply function, so that the node gets filled with values depending on

the selected element of the parent table:

<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/7a/787e40417c6d1de10000000a1550b0/frameset.htm">context nodes</a>

<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/f1/177741adb7167de10000000a155106/frameset.htm">Supply functions</a>

grtz,

Koen