SAP Knowledge Base Article - Public

3342729 - Filtering does not work on Custom Odata Service.


While creating a custom Odata service, the customer cannot make filtering work. When running the Odata test, it does not respect the filter.


SAP Cloud for Customer.

Reproducing the Issue

  1. Go to the Administrator WOC.
  2. Open the Odata Services view.
  3. Select the custom Odata Service.
  4. In the Customer collection, select the desired fields. Let's say the “Changed in” field. Checking the “filter” option.
  5. Inform in the field “default value” any filter that you want and save the Odata. 


Default value are only relevant for Create (POST) calls. i.e. if data is not provided then pick the default value.

Default value with hidden_in_edm makes a value constant which is applicable for Read too, but that is only available for code or boolean fields.

In the Odata service modeler (editor) where there is an option to provide the default values, if the property is of boolean or code type, then another option to mark it hidden_in_edm is also available.

Hide in metadata means - since the value has a default value expected to behave as a constant value, there is no need to show in metadata.

Such property will be considered for READ or POST always. But if the property has only default value - then it will be considered only during POST if explicitly no data is sent in payload.


This feature is not supported in the current release of SAP Cloud for Customer.

1.  If you are a partner: please use or the Partnerfinder
2.  If you are a customer:

  1. Contact your Account Executive.
  2. Check the link for SAP Advisory Services.

An alternative option may be to check the SAP Cloud for Customer - Customer Influence to submit an idea:


Custom; odata; service; filter; filtering; , KBA , LOD-CRM-INT-API , OData API (C4C Only) , Product Enhancement


SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications 2302