Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9159

Type reference across CDS documents

$
0
0

Hi,

Is it possible in HANA SP07 to refer to a type define in CDS document 'A' in CDS document 'B'.

 

Example

CDS Document A is as follows

 

namespace x.y;

@Schema: 'FOO';

context A{

type status : String(2);

};

 

 

CDS Document B is as follows

 

namespace x.y;

@Schema: 'FOO';

context B{

     entity bar{

        barStatus : A.status;

     };

};

 

 

If I activate the CDS document B I get error stating artifact A.status not found. So is this error expected or is there a way by which we can refer to a type defined in a different CDS document.

 

Thanks

Kind Regards

Chandan


Viewing all articles
Browse latest Browse all 9159

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>