Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: Can't Use UDF in Procedures?

$
0
0

Hi Italo,

 

Can you please post your complete code.

 

The following code works fine for me on revision 60.

 

CREATE FUNCTION FN_R(IN v integer) RETURNS r integer

LANGUAGE SQLSCRIPT READS SQL DATA AS

BEGIN

   r := v * 10;

END;

 

 

create type TT_PRR as table (a int, b int);

 

 

CREATE PROCEDURE PR_R (out t_out TT_PRR)

AS

BEGIN

t_out = select FN_R(10) as A, 10 as B from dummy;

END;

 

 

call PR_R(?);

 

Regards,

Ravi


Viewing all articles
Browse latest Browse all 9165

Trending Articles