on 07-24-2016 10:21 PM
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
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";
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rithika,
please try
key generate local "ID"
instead of
keys generate local "ID"
best regards,
Martika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.