cancel
Showing results for 
Search instead for 
Did you mean: 

Ho to get the structure for a subnode

Former Member
0 Kudos

Hi Experts,

I am an beginner in webdynpro abap - sorry for this simple question, but I have not found an answer.

I have a context node generated from a interactive form. Let's call this node 'node1'.

Within this node I have a subnode 'subnode1' containing the elements for an internal table.

My simple question is: Ho can I get the structure of the subnote element?

I mean, this is clear for me:

 DATA: 
            ls_node1        TYPE wd_this->element_node1. 

But how about:

 ls_subnode1 type ????????????????? 

I guess the answer is quite simple... Thanks for your help.

Andreas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try to use the code generation wizard. It will make the code for you. Just choose the "read from context node" (and choose the corresponding subnode), and it will create you the data declarations automatically including the structure declaration.

Regards,

Karri

Answers (1)

Answers (1)

prasenjit_sharma
Active Contributor
0 Kudos

Hi,

This will be of the same type that you declared while creating the context node element node1. You may go to the context node tab to see the dictionary structure. Alternatively you double click on wd_this which would display the inferface for wd_this and search for element_node1 there.

Let me know if this helps.

Regards

Prasenjit

Former Member
0 Kudos

Hi,

Thank you both a lot. I absolutely forgott about the wizzard and it worked fine.

It is really declared the same way as the node element node1.

Thanks and regards,

Andreas