cancel
Showing results for 
Search instead for 
Did you mean: 

embed one node into another

Former Member
0 Kudos

Hi,

I embed one context node into another to define a nested structure, like the following definition. But it is found that Web Dynpro still takes them as two individual context nodes. Most of the fields from one structure and I don't want to add each field manually to the context node. Also, I don't want to create a structure at SE11 only for this. What are possible alternatives?

TYPES: BEGIN OF typ.

               INCLUDE TYPE MARA.

TYPES: f1 TYPE xxx

           , f2 TYPE xxx

             END OF typ

           .

Best regards,

ts

Accepted Solutions (1)

Accepted Solutions (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi ts,

Are you trying to create nested context nodes i.e. creating a NODE2 inside NODE1 ?

Now, if you get static attributes of NODE1, you will not get the data of NODE2 corresponding to the node1 entry.

i.e. let us say, NODE1 has 2 records, NODE2 is having 5 records for each record of NODE1.

in this case, if you need to get 5 records of NODE2 corresponding to the 1st row of NODE1,

U need to use the method LO_NODE2 = WD_CONTEXT->PATH_GET_NODE( PATH = 'NODE1.1.NODE2' ).

Here, .1. refers to the index of records of NODE1.

Regards,

Rama

Answers (0)