Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 4343

How to create and Call Procedure

$
0
0

I experts,

 

I am facing the issue in creating the Procedure.

I have created a procedure as follows:

 

CREATE TYPE tt_mblnr AS TABLE( v_mblnr INTGER);

 

 

CREATE PROCEDURE demo_proc () LANGUAGE SQLSCRIPT READS SQL DATA AS

 

 

BEGIN

 

tt_mblnr = SELECT "MSEG"."SALK3" FROM "HANADBER5"."MSEG" ;

 

 

END;

 

When I execute above code in SQL Editor it works fine, but its giving me an error when I try to create same in PROCEDURE

 

and also could you please suggest me how see the output of the Procedure. I tried calling the Procedure in SQL editor as mentioned below but i am not getting any output.

 

CALL demo_proc() WITH OVERVIEW;

 

Thanks in advance

 

Regards,

Nagaraj


Viewing all articles
Browse latest Browse all 4343

Trending Articles



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