cancel
Showing results for 
Search instead for 
Did you mean: 

How to do Child node binding to ALV

Former Member
0 Kudos

HI ,

My contex look like this ::

RootUIElement

MainNode

ChildNode <child node of main node>

I have done binding of ChildNode to data part of ALV but while running the application it is giving me error

"The node specified in mapping ( ChildNode) could not be found " .

Please tell me do I need to do any configuration for this ?

Regards,

Ravi

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Ya I am doing it that way only . But it is throwing the error at run time only

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Is the lead selection set on the main node? What is the cardinality on the main node? Is there at least one element in the main node? Is the child node singleton?

It sounds like your child node is not a singleton. Therefore the ALV needs to access the instances the of the node cluster for the child via the lead selection of the main node and that is not set yet.

Former Member
0 Kudos

Thanks for the reply here are the properties I have set for my Parent Node and Child Node .

ParentNode Attribute ::

Cardinality -> 0..n

Selection -> 0.. 1

Initialized Lead Selection -> True .

Singleton -> False

ChildNode Properties ::

Cardinality -> 0..1

Selection -> 0.. 1

Initialized Lead Selection -> True .

Singleton -> True

I am very much new to Webdynpro so can you please let me know if any of the above properties needs to be changed or not ?

Former Member
0 Kudos

Change the parent node cardinality as 1.1 and singleton as true and try

Former Member
0 Kudos

Thanks for the reply . It resolves my issue .

But I am facing one more issue I need to display Tree structure of this ChildNode in ALV table and

for that I have created the recursive node for ChildNode and mapped the childnode to ALV. But I am not getting the tree structure for this childnode.

Do I need to do some more configuration for getting the tree structure in ALV ?

Former Member
0 Kudos

Thanks a lot for reply ,

But I think this coding will fill the values to the child node. But my issue is that after mapping the

childnode (in my example) to the DATA part of ALV component it gives me runtime error mentioned above.

ALV component not recognising the node itself .

Former Member
0 Kudos

How you do mapping?

try like selecting the data part of alv and define external mapping with the node you want to map

Former Member
0 Kudos

Hi

I guess you might be accessing the child node directly thats the problem, instead You navigate from parent node to child node and

Do the coding like this

*  navigate from <CONTEXT> to <FIRST> via lead selection
  Node_First = wd_Context->get_Child_Node( Name = IF_FIRST=>wdctx_First ).

"  navigate from <FIRST> to <SECOND> via lead selection
 Node_second = Node_First->get_Child_Node( Name = IF_FIRST=>wdctx_second ).

"fill the internal table and bind like this 

Node_second->bind_table( it ).

Hope this helps u

Thanks and regards

Tamilselvan.K

Edited by: Tamilselvan K on Jun 5, 2008 1:41 PM