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

Return a table type from one Procedure to another

$
0
0

Hi Experts,

 

Scenario :

 

Procedure 2 is calling Procedure 1. Procedure 1 is returning a table type which i want to use in Procedure 2 and then Finally need the records in XSJS.

 

Procedure 1 :

 

 

PROCEDURE "Hello"."Features" (IN ID int,OUT TR1 "Hello"."TRACE_RECORD")

  LANGUAGE SQLSCRIPT

  SQL SECURITY INVOKER

  DEFAULT SCHEMA SAP_HPH

  AS

BEGIN

 

--Insert statements

 

END;

 

"Hello"."TRACE_RECORD" is a table type.



Procedure 2 :


PROCEDURE "Hello"."Features" (IN LogID int,OUT TR1 "Hello"."TRACE_RECORD")

  LANGUAGE SQLSCRIPT

  SQL SECURITY INVOKER

  DEFAULT SCHEMA SAP_HPH

  AS

BEGIN

 

Call "Hello"."Features" (:ID);


END;


How do i get the table type records from Procedure 2 to procedure 1.?


Thanks.




Viewing all articles
Browse latest Browse all 4343

Trending Articles



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