cancel
Showing results for 
Search instead for 
Did you mean: 

Can I create graphical calculation views via script?

0 Kudos

In the process of migrating a system based on another backend to HANA, I would need to create a huge number of calculation views, and I would assume I can save a lot of effort by converting the existing definitions to calculation views automatically, maybe with only 90% correctness, and then manually correcting the final 10%.

Is there any way to generate calculation views via some kind of SQL or other script? How would these scripts look like?

In case the script is officially unsupported, as log as it works, I would not mind too much, as - taking into account the purpose - I would not need the same script to be supported in a future version of HANA maybe five years from now, if the whole migration project just runs a few months.

Background why calculation views would be used:

The system to be migrated is a large data analysis system. In addition to purely relational tables/views, it consists of many OLAP cubes which would need to be converted to calculation views. For the existing ETL processes, I was also suggested to convert them to calculation views, but I am not sure if this would be the best approach, or if maybe converting these to a few thousand stored procedures would be a better approach. But that would be a separate question.

lbreddemann
Active Contributor
0 Kudos

Graphical Information views are unique to SAP HANA. Why do you need to created those when migrating an existing database that cannot contain those views?

What's stopping you from simply creating SQL views?

0 Kudos

I updated the reason for using calculation views in my question.

Accepted Solutions (0)

Answers (2)

Answers (2)

amauryvanespen
Active Participant
0 Kudos

As far as I understand your need, may be you can try to script an XML builder to build your calculation views. Definitely not sure this will reduce time instead of making it graphically.

write2ib
Participant
0 Kudos

hi Frank

You may use custom SQL in Table function(TF) and use this TF in calculation views.

0 Kudos

Hi Ibrahim, I am not sure if that would be the optimum way to replace OLAP cubes of the existing system. (Sorry I did not describe that requirement in the first version of my query).