cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Recursive CDS data type

former_member748892
Discoverer
0 Likes
2,540

Dear colleagues,

I'm trying to create a recursive data type using SAP CDS version 5.0.6. So far I experimented with the following:

type Node { value: String; children: many Node; }

This yields an error: 'Illegal circular reference'. Do you know how can this use case modelled in CDS?

Thanks,

Daniel

View Entire Topic
gregorw
SAP Mentor
SAP Mentor

Have you tried to follow the example in:

schema.cds#L27

former_member748892
Discoverer
0 Likes

It did the trick, thanks!