cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SERIES_GENERATE_INTEGER Not working in SAP Datapshere SQL View

0 Likes
2,755

I am trying to unpivot some data in SAP Datasphere. SAP SQL won't accept the UNPIVOT function, but native HANA does allow the SERIES_GENERATE_INTEGER. Even when I use a 3rd party DB Manager (DBeaver) and use SQL statement on Datasphere content, it works. However then applying that SQL in a SQL View to generate a new unpivotted view faiils with error

Mismatched ‹Number›, expecting ‹Identifier›

It's unclear if it's a different syntax Datasphere needs or simply SERIES_GENERATE_INTEGER is not in their library.

If the latter, how can I unpivot data in Datapshere without resorting to Python or going under the hood into a stored proceedure?

Many thanks

View Entire Topic
michael_eaton3
Active Contributor
0 Likes

You can use SERIES_GENERATE_INTEGER, you have to configure the SQL View to use SQLScript and define the output columns as shown below.