Skip to Content

properties for Entity types and Entity sets

Dear Experts,

For my entityset I've checked Requires filter Indicator and I've checked Filterable flag for entity type.

but when I can call my webservice "Read Entityset" without $filter suffix.

Do I missed any thing because as what I understand that Requires filter Indicator will enforce $Filter suffix.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jul 18, 2016 at 09:55 AM

    can anyone help me?

    Add a comment
    10|10000 characters needed characters exceeded

    • Annotations in metadata such as sap:filterable, sap:required-in-filter are merely an advertisement of the capabilities of the OData service. However it is not a strict guarantee of enforcement of the feature by the provider implementation.

      This means -- you may mark an entity filterable, but the server will not do the filter out of the box. Similarly you may declare a property with annotation sap:required-in-filter, but still you can fire queries without any filter.

      Hence the provider has to explicitly enforce the validation if demanded by the scenario.

      In your case you need to explicitly write code to check if filter condition is being passed, if not you need to raise appropriate exception in Data provider class.

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.