Skip to Content
0
Former Member
Apr 11, 2014 at 05:31 AM

Type reference across CDS documents

32 Views

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