Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: Schema mapping for HDBprocedures

$
0
0

Hi Nehal,

 

We were struggling with the same issue. There are two options

 

  • Create Public Synonyms (with identical name) for the Tables you are using in the Procedure in both Dev and QA environment. Use the Public Synonyms in the procedure instead of table.

 

For example if you are using the table "DEVSCHEMA.BOOKS" in your procedure; instead use the public synonym for this table "PUBLIC.PS_BOOKS" after creating the Public synonyms by using the following syntax

 

create PUBLIC SYNONYM "PS_BOOKS" for DEVSCHEMA.BOOKS; -- in Dev HANA Environment

create PUBLIC SYNONYM "PS_BOOKS" for QASCHEMA.BOOKS; -- in QA HANA Environment

 

Then use PUBLIC.PS_BOOKS instead of DEVSCHEMA.BOOKS in your procedure.

 

  • Create an Attribute View for the tables you are using in your procedure and use the Attribute View in the procedure instead. The SCHEMA MAPPING in SAP HANA works for Modeling Objects (like Attribute View / Analytic View etc.)

 


Hope this helps

 

Regards

Sandeep


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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