SAP Knowledge Base Article - Public

2875896 - Unable to Activate the Button Enable Search for an Extension Field in a Custom OData Service

Symptom

 You created an Extension field and when trying to select the field as Enable Search in your Custom OData, you noticed that the option is grayed out.

Environment

SAP Cloud for Customer

Reproducing the Issue

  1. Go to the Administrator Work Center
  2. Then go to the OData Service Explorer view.
  3. Change to show Custom OData Services.
  4. Select the Custom OData Service name and click on Edit.
  5. Expand the OData Service (left side of the screen) and find the Extension field.
  6. Then Select required Extension field.
  7. If you scroll down, you will see that is not possible to change to On in the Enable Search button.

Cause

The required Extension field is of type DateTime. Hence search is not enabled for this field as SADL does not support.

Resolution

This is the expected system behavior.

Since SADL does not support search for a field that is of type DateTime, you will not be able to use this Extension Field for $search.

Keywords

KUT Field, Custom Field, Custom OData, Enable Search, On. , KBA , LOD-CRM-INT-API , OData API (C4C Only) , How To

Product

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