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

How to pass table Input parameter to a SQL Procedure in SAP HANA SQL Script?

$
0
0

Hi,

 

I need to pass a Table Input Parameter to a SQL Procedure but i'm not able to pass it.

 

Table TYpe Definition

 

CREATETYPE"SCHEMA"."TT_TECHOBJECT"ASTABLE (

         TECH_OBJECT                NVARCHAR(10) );


Below is my procedure definition.

 

PROCEDURE "P00105715"."ZEAM.procedures::get_breakdown_list_by_techobject" (

  IN  IP_VALID_DATE  NVARCHAR(8),

  IN  IP_TECH_OBJECT "P00105715"."TT_TECHOBJECT",

  OUT OT_BREAKDOWNLIST "P00105715"."TT_BREAKDOWNDUR_TECHOBJECT" )

  LANGUAGE SQLSCRIPT

  SQL SECURITY INVOKER

  DEFAULT SCHEMA "SAPR3"

  READS SQL DATA AS

BEGIN

 

     /* Logic written here */

 

END;

 

Now i'm trying to call this procedure in SQL Console but it's giving error.

 

CALL "SCHEMA"."ZEAM.procedures::get_breakdown_list_by_techobject" (

  IP_VALID_DATE => '20120309', ('PLACEHOLDER' = ('$$IP_TECH_OBJECT$$ = '4401','1503'')),

  OT_BREAKDOWNLIST => ?

);

 

 

Can anyone suggest me how to pass Input Table Parameter to a procedure.

 

Thanks in advance.

 

Regards,

Ramana.


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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