on ‎2012 Aug 08 4:39 AM
How to create the views (attribute, analytic, calculation) using scripts rather than following the HANA studio?
This will help in automating this steps involved and increase productivity, especially while migration the application from another database.
Request clarification before answering.
Hi Richard,
Thanks for the reply.
Based on our current understanding of HANA's views, to address our requirement for muti-tenancy and highly dynamic nature of the analytical queries we figured the only option would be to dynamically generate the calculation view based on the user selection of the attributes, measures and measure aggregate functions.
Thought this might not be an optimal or recommended usage, we feel it can address our requirement as long as there is a way to automate these steps without depending on HANA studio. So while evaluating this approach we ran into the below questions:
Regards
Rahul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rahul,
in the SQL Script Guide for HANA (development section on https://help.sap.com/hana_appliance) you find multiple examples of creating SQL Script Procedures or Calculation Views (SQL Script Procedures with result view) programmatically, i.e. via SQL calls and not via the modeler add-on to SAP HANA Studio.
As for Attribute Views and Analytic Views, there is no public API available in order to generate them. In principle, one can generate Analytic Views via SQL and you can find something out by running activation in SAP HANA Studio and carefully analyzing the activation logs - however, I don't want to recommend this, as it will not be supported by SAP. You can also look at the export of data models and easily find out how to generate that XML (again without API support), but also here we may change the layout of these exports and SAP will not support this.
So the answer is: Calculation Views you can easily generate via SQL and thus programmatically. Analytic Views can basically not be generated programmatically.
Best regards,
Richard
--
Dr. Richard Bremer
Customer Solution Adoption (CSA), SAP AG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.