I have a requirement to create an Input Parameter for my Calculation View that defaults to the most recent Post_Date
.
I am using "Derived from Procedure/Scalar Function" as my Input Type.
My Stored Procedure looks up the Max Post_Date
but I am having trouble mapping the OUT Variable from the SP, to the Model Input Parameter.
CREATE PROCEDURE "SCHEMA"."SP_TEST"
(OUT IP_TO_DATE VARCHAR(8))
LANGUAGE SQLSCRIPT
SQL SECURITY DEFINER
DEFAULT SCHEMA TEST
READS SQL DATA AS
BEGIN
SELECT MAX (POST_DATE1) INTO IP_TO_DATE FROM "SCHEMA"."TABLE";
END;
CALL "SCHEMA"."SP_TEST"(?)
Has anyone worked with Stored Procedures as Input Parameters?!
Per the HANA Modeling Guide, it seems I can do this? Create Input Parameters