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

How to Rap a Stored Procedure in Calculation View

$
0
0

Please suggest/guide with step by step how to rap a stored procedure in calculation view, which latter I can use to call from odata service.

 

I have one input parameter PRDID

Table: Product

PRDIDPRDTYPEPRDCATQTYPRICE
MMT1OPBOOKS

1

12
MMT2OPBAG232
MMT3OPPEN312
MMT4OPNOTEPAD612
MMT5OPMOUSE636
MMT6OPHANDBAG122

 

 CREATE PROCEDURE <yourschema>."Product" (INOUT prd VARCHAR(10)) LANGUAGE SQLSCRIPT AS 
BEGIN
 select "PRDID", "PRDTYPE","PRDCAT","PRICE"    from <yourschema>."Product"    where "PRDID" = :prd;
END;

Thanks


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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