cancel
Showing results for 
Search instead for 
Did you mean: 

How to map Schema's in HANA CDS Views ?

I have created CDS views in our development environment under schema "ABC". The annotation would look like @Schema: 'ABC' which works as expected.

When we transport the CDS view to Quality system we get an error "cannot find artifact - table name" due to Schema mapping. (ABC is mapped to 'DEF' schema in Quality)

Is there a possibility to circumvent this error ?

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate

Schema mapping is not supported by CDS. Only modeled views support this. You should instead use a separate, customer owned schema as the target schema in the header of hdbdd.

That's exactly what we did. Thank you, Thomas.

We created a separate schema with the same name across the landscape and used it in our HDBDD file, as the tables belong to a different schema we created their Synonyms and used them instead.

Would have preferred to use design time synonyms (.hdbsynonyms file) but the HDBDD file was throwing an error so create synonyms manually through SQL statement in each system, worked just fine.

Answers (0)