on 09-12-2013 2:16 PM
Hello All,
I am getting a below error while I tried to use Analytic View using Select statement.
Could not execute 'select * from "_SYS_BIC"."zretailcoe/ZAN_SALES_ACTUAL"' in 887 ms 919 µs .
SAP DBTech JDBC: [7] (at 25): feature not supported: cannot execute select * on olap cube: zretailcoe/ZAN_SALES_ACTUAL: line 1 col 26 (at pos 25)
How do I use Analytic View as a table in my store procedure?
Thanks
Vinoth
Hi Vinoth,
You can't use select * on analytic scenario. You must inform the fields and do the aggregations (sum/max/min/avg...) and the group by at end.
Personally I use the data preview to "generate" the first select with all keys and sums....
Data Preview -> Raw data -> double click on Show Log and look for the line with generated SQL.
Regards, Fernando Da Rós
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
You could use CE_OLAP_VIEW
This operator returns results for an existing Analytical View. It takes the name of the Analytical view and optional list of KFs and dimensions as parameters.
Please refer to http://help.sap.com/hana/SAP_HANA_SQL_Script_Reference_en.pdf for syntax.
Regards,
Hema
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.