Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Deep structure

Former Member
0 Likes
362

Hi

I am trying to create a tree and save this in a structure

I have a structure called st_node and a table called tt_node

I want the following fields in st_node:

ID of type int4.

children_nodes of type tt_node.

adding children_nodes as a type of children_nodes does not allow the structure to activate.

any help pleasE?

1 ACCEPTED SOLUTION
Read only

Sandra_Rossi
Active Contributor
0 Likes
332

recursive typing with data types is not allowed (recursive is only allowed with object types, i.e. type ref to a class or an interface, i.e. abap oo)

instead of converting your program to abap oo, you may also just change a little bit your structure to simulate recursion (for example, add "parent node" field, etc.)

1 REPLY 1
Read only

Sandra_Rossi
Active Contributor
0 Likes
333

recursive typing with data types is not allowed (recursive is only allowed with object types, i.e. type ref to a class or an interface, i.e. abap oo)

instead of converting your program to abap oo, you may also just change a little bit your structure to simulate recursion (for example, add "parent node" field, etc.)