cancel
Showing results for 
Search instead for 
Did you mean: 

Access a subnode directly?

Former Member
0 Kudos

Hi all,

I am new to WDA and abap. Could anybody tell me how to access a subnode directly? For eg: say that this is my context structure:

MainNode

-


SubNode

-


SubSubNode

-


Attr1

-


Attr2

Now, Can I access the SubSubNode directly instead of going from mainnode to subnode to subsubnode?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello, Laxmi,

You can use something like this:

data: lr_node type ref to if_wd_context_node.

lr_node = wd_context->path_get_node( path = 'SUBNODE.SUBSUBNODE' ).

Regards,

Andre

Answers (1)

Answers (1)

Former Member
0 Kudos

Thank u so much....