Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

Table Type as OutPut Parameter

$
0
0

Hi Experts

 

I've search some answers or hints to solve this little problem but I haven't succeeded so far. I'm aware I'm missing some little thing but I haven't found what could be.

 

My SAP HANA Studio version is 1.80.3 and our HANA Database version is 1.00.74.04

 

I'm creating a Procedure via CONTENT - PACKAGE - RIGHT CLICK - NEW PROCEDURE and the final result, when I generate the TSQL Code is:

 

create procedure "_SYS_BIC"."POS/TEST_SP_I" ( in Enter INTEGER , 

   out tt_table "_SYS_BIC"."POS/TEST_SP_I/tabletype/tt_table")

language SQLSCRIPT

sql security definer

default schema "MYSCHEMA"

reads sql data as

 

BEGIN

  tt_table  = SELECT ID_SUCURSAL FROM HPOS.HPOS_SUCURSALES;

END;

 

I tried to call the procedure from a SQL Console while I'm in the _SYS_BIC Schema using the following code and it runs smoothly

 

call "_SYS_BIC"."POS/TEST_SP_I" (10, ?)

 

However when I tried the same line but sending the table type

 

call "_SYS_BIC"."POS/TEST_SP_I" (10, "_SYS_BIC"."POS/TEST_SP_I/tabletype/tt_table");

 

I'm getting the following error:

 

Could not execute 'call "_SYS_BIC"."POS/TEST_SP_I" (10, "_SYS_BIC"."POS/TEST_SP_I/tabletype/tt_table")' SAP DBTech JDBC: [1281]: wrong number or types of parameters in call: Physical table is not allowed in OUT table variable position: POS/TEST_SP_I/tabletype/tt_table: line 1 col 38 (at pos 37)

 

Do you have an idea of what is going on,

 

Thanks in advanced.


Viewing all articles
Browse latest Browse all 5653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>