Skip to Content
avatar image
Former Member

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 03, 2017 at 11:47 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.