on 02-08-2017 12:24 PM
Hello everybody,
I try to create a function in SAP HANA studio returning a table. Inside this function a temporary local table must be created and populated. Using the same method in sql server everything runs smoothly but in HANA I get an error on local table creation: "SAP DBTech JDBC: [7]: feature not supported: DDL is/are not supported in table function: line 16 col 5 (at pos 720)"
I guess HANA does not support temporary table creation inside functions, If I am wrong please correct me, but if that's true is there a similar way to store temporary table results in some kind of variable inside a function?
Kind Regards,
Dimitris
Hi Dimitris,
Table Functions are read-only user-defined functions, hence DDL statements are not supported.
I had a similar requirement and achieved it with a work around solution by creating a stored procedure, I then used the procedure in table function.
Hope this helps.
Best Regards,
Rajaa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.