cancel
Showing results for 
Search instead for 
Did you mean: 

Are Nodes like Types?

Former Member
0 Kudos

I am trying to understand Context in Web Dynpro. I know that Context is data storage in WDP. But how is Nodes and Attributes related to a standard ABAP program. Are nodes like Types and Attributes the actual fields?

So if I create a type

TYPES: begin of itab,

matnr type mara-matnr,

maktx type mara-maktx,

end of itab.

Is this the same as create a Node called itab with 2 attributes matnr and maktx? And then if I set the cardinality of the node to 0 .. n then it would become an internal table instead of just a structure. Am I understanding this correctly?

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Yes your description is quite correct. In fact when you declare a node, there is a matching type that gets generated. And depending upon the cardinality, internally either an ABAP structure or Internal Table is also generated. The Node is just a platform independent way of modeling ABAP data. This way Web Dynpro ABAP and Java can have the same way of describing data, yet different internal implementations.

Former Member
0 Kudos

Thomas,

Thank you so much. Things are becoming more clearer in Web Dynpro to me now.

So this means that we can have attributes that dont have a parent node.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>So this means that we can have attributes that dont have a parent node.

No. Even attributes that are created in the root of the context still have the system provided root node as their parent.

Answers (0)