cancel
Showing results for 
Search instead for 
Did you mean: 

XS odata output error Syntax error at position 17

former_member224444
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

chandan_praharaj
Contributor
0 Kudos

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"; 

}

former_member224444
Participant
0 Kudos

Hi chandan,

Thanks for your reply. I have tried your idea. It does'nt work.

Thanks,

Rithika

Former Member
0 Kudos

Hi Rithika,

please try

key generate local "ID"


instead of

keys generate local "ID"


best regards,

Martika

former_member224444
Participant
0 Kudos

Hi Martika,

Thanks for your reply. I have tried your solution. It is not working.

Thanks,

Rithika