on 03-15-2016 1:20 PM
Hi All,
i am creating input parameter in hana graphical represent calculation views.
while creating input parameter i selected derived from stored procedure.
after that i select stored procedure it was giving below error
* Procedures with output parameters of type Table not supported
The below code was my procedure
BEGIN
COLUMN_SEC=SELECT MAX(COLUMN_SEC) AS COLUMN_SEC FROM (
SELECT
CASE WHEN ROLE_NAME LIKE '%ALL%' THEN 1 ELSE 0 END AS COLUMN_SEC
FROM SYS.GRANTED_ROLES
WHERE GRANTEE = SESSION_USER);
END;
and i created out parameter as well as
Please help me.
Regards,
Srini
Hello Srini,
for that parameter type you can only use a stored procedure (or scalar UDF) returning a scalar value. Your procedure will have a table typed output parameter which is not supported at the moment.
Regards,
Florian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Florian.
i created procedure as below
CREATE PROCEDURE "SOAR"."KS_COLUMN_TEST"(OUT COLUMN_SEC NVARCHAR(10))
LANGUAGE SQLSCRIPT
SQL SECURITY INVOKER
READS SQL DATA AS
BEGIN
COLUMN_SEC := 'TEST';
END;
after that i am creating parameter in calc view
by that time it was thrown an error
* Procedure must have scalar parameter of type String as the output parameter
please find attachment for error details
Regards,
Srini
The only difference which I can see between my and your example is, that I have created the procedure via the repository and you directly in the catalog.
On which HANA SPS you are working? I did it on SPS10. But I do not think that we have different SPS version, cause the option is (officially) only since SPS10.
Hi,
I am facing weird issue. I have scalar stored procedure which is returning single value and using that procedure in input parameter with an option 'Derived from Procedure'.
I called this procedure and could see single value as an input whereas input parameter created in calculation view is not returning any value. Output data type of my procedure is varchar. Any guess what is missing here?
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 | |
6 | |
6 | |
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.