Skip to Content

XS odata output error Syntax error at position 17

Hi All,

I am beginner in XS odata in HANA Cloud. I am able to successfully create workspace, project, all three xs files etc. But when trying to expose a Model with input parameter am getting an error "Syntax error at position 17.

for eg: am using below link when executing:

But am able to see output successfully for Model without input parameter. Below is my code in xsodata file

service

{

"SAI::AN_FAD" as "AN_FAD"

keys generate local "ID"

parameters via entity "param";

}


Did i miss something. Where should i see the syntax error


Thanks,

Rithika

xsodata.PNG (14.7 kB)
Capture234.PNG (11.5 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2016 at 06:51 AM

    Hi Rithika,

    please try

    key generate local "ID"


    instead of

    keys generate local "ID"


    best regards,

    Martika

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 25, 2016 at 07:46 AM

    Try as below: I can see you are missing with aggregates always

    service

    {

    "SAI::AN_FAD" as "AN_FAD"

    keys generate local "ID"

    aggregates always

    parameters via entity "param";

    }

    //Optional parameter

    annotations {

    enable OData4SAP;

    }

    settings {

    support null;

    content cache-control "no-store";

    metadata cache-control "max-age=3600,must-revalidate";

    }

    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.