Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: Exposing read/write stored procedure as Odata service?

$
0
0

The example i've metioned is for reading the data via a procedure.

 

If you want to insert/update the data, then u need to use odata service or xsjs service

 

1. For ODATA service, example is below:

 

service namespace "c*********trial.hanainstance.*********.service.eta" {

 

"NEO_**********************SH8"."c*******trial.hanainstance.**********.models.tables::ETAHeader" as "ETA"  create using "c********trial.hanainstance.************.procedures::ETACreate";

 

}

 

so basically, i've created a odata service with entity type "ETA" which exposes the ETAHeader table.

Then when the post method is called for the odata service from the UI, i've used the create option, which utilizes the procedure that is mentioned above.

 

2. For XSJS service, i dont have much idea on that. May be you can find some document in scn


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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