Skip to Content
Former Member
Mar 30, 2006 at 06:53 AM

(ABAP)Error while creating Node dynamically


Hi All,

I have this requriement where in I need to select a tree node and then expand it till the leaf node.

I have attached my structure to a node, say ABC, which has got a recursive node, say SUB_ABC, now when I call my method and create SUB_ABC right under the root node, which will have the path 1.ABC.1, then things work out absolutely fine. But when I use the same practise for a node which is present at some other level,say level 2 and has got a path 1.ABC.1.SUB_ABC.2 this means that the node is second at this level, then I get this error message, when i use if_wd_context->path_get_element( path ).

<b>The reason for the exception is:

Lower-Level Node with Name COMPONENTCONTROLLER.1.ABC.1.SUB_ABC.2 Does

Not Exist</b>

Note: the node is in componentcontroller.

Appreciate all your help guys.

Have a nice day 😊