Hi folks,
I have developed a procedure via procedure editor in SAP HANA Developer perspective. Up until now I have no IN or OUT parameters and I have tested the procedure via DEBUG perspective and it works great. The result of the procedure that I want to pass to a calculation view is a simple select at the end of my procedure;
ONTIME = SELECT FIELD1, FIELD2, FIELD3 etc FROM TABLE1
When I debug the procedure I can do a data preview of my ONTIME resultset and it looks great. Now I want to pass this to the OUT parameter but I can not seem to get the syntax correct.
I thought it would be something like this;
CREATE PROCEDURE _SYS_BIC.myproc(OUT ONTIME TABLE)
But upon activation it fails; it converts the 'TABLE' type to 'SYSTEM.TABLE' and says this can not be found.
ie: the line gets automatically changed to;
CREATE PROCEDURE _SYS_BIC.myproc(OUT ONTIME SYSTEM.TABLE)
Looking in SQLscript guide I'm finding tons of examples that look something like this;
CREATE PROCEDURE ceGetRowNum(IN it_books books, OUT ranked_books ot_ranked_books)
where I am assuming ot_ranked_books is somehow previously declared? Anyhow I can not get any of those examples to work either.
How can I properly declare my OUT parameter as a table type? When I was working with OLD procedure editor via CONTENT area in modeler perspective it was as simple as var_out = SELECT * FROM.... and then I would just setup the table in the output parameter fields in the output pane.
Thanks for any guidance you can provide,
-Patrick