Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Calling SQL stored procedure dynamically

$
0
0

Hallo,

 

could anybody tell me how to call HANA SQL stored procedure dynamically?

 

The coding looks like this:

v_ProcedureName := '"' || KpiNamespace || '::' || KpiName || '"';

v_SQL := 'CALL ' || :v_ProcedureName || '( lt_outKPI )';

EXEC :v_SQL;

 

For this call I get the error message:

"Transaction rolled back by an internal error: wrong number or types of parameters in call: Physical table is not allowed in OUT table variable position: LT_OUTKPI: line 1 col 55 (at pos 54)"

 

The procedure to be called dynamically has a table output parameter.

 

Thanks in advance,

Best Regards,

Alexey Romanov.


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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