Skip to Content
author's profile photo Former Member
Former Member

Call a Procedure from SAP XS Odata

Hi,

I crated an XS OData Servcie like This.

service namespace "workshop.services" {

"Test_Schema"."Test" as "Test";

}

But I want to Call Stored Procedure from this.

Please help me.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jan 13, 2015 at 08:10 AM

    Hi,

    You can't call procedure directly in odata service.

    You can call the procedure inside a scripted calculation view and then call this view inside odata service.

    Regards,

    Vivek

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 13, 2015 at 08:54 AM

    As Vivek mentioned, you can not use procedures in xsodata for GET operation. But, for create , you can check the 'CREATE USING' option available. Otherwise, create the procedure with result view, and use the result view to expose as odata.

    Sreehari

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.