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

How to call a Stored procedure from xsodata service?

$
0
0

Hi Everyone,

I have created an stored procedure and I'm trying to consume this store procedure from xsodata service.

But unable to activate the service because of an error.

 

Invalid procedure or parameter list in procedure "package.WebContent.src.hana.procedures::PROCEDURE

 

I have activated both store procedure as well as attribute view.

 

Here is my stored procedure.

 

PROCEDURE "SCHEMA"."package.WebContent.src.hana.procedures::PROCEDURE" (

IN row "SCHEMA"."package.tables::object" )

  LANGUAGE SQLSCRIPT

  SQL SECURITY INVOKER AS

  --DEFAULT SCHEMA <default_schema_name>

  --READS SQL DATA AS

BEGIN

/*****************************

  Write your procedure logic

*****************************/

declare shortdesc string;

 

 

SELECT SHORT_DESCRIPTION INTO shortdesc FROM :row;

 

 

END;

 

 

Service:

 

service namespace "package.WebContent.src.hana.service"{

"package/OBJECT.attributeview" as "OBJECTS"

key ("OBJECT_ID")

    create using "package.WebContent.src.hana.procedures::PROCEDURE";

}

 

 

Is there anything wrong in the way i'm calling the procedure??


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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