Hi Experts,
I have created a non read only procedure in HANA using SQL Console, But when i try to use that in my calculation view, I still get an error that it is read only procedure. I havent written "READS SQL DATA As" in my procedure, So it should be a read/write procedure. Could you please help me with any alternative?
Code :
create procedure "MYSCHEMA".PROCEDURE_TEST()
language sqlscript as
begin
DECLARE tname varchar(50);
SELECT TABLE_NAME into tname FROM "MYSCHEMA"."TEST_TABLE" WHERE ID ='5';
execute immediate ('select'||'*'||'from'||tname) ;
END;
In calculation View :
EXEC 'call "MYSCHEMA".PROCEDURE_TEST();
call "MYSCHEMA"."PROCEDURE_TEST"(varout);
Tried Both, But getting the error for both syntax as below :
"CALL for non read only procedure/function is not supported in the READ ONLY procedure/function"