SAP Knowledge Base Article - Public

3619264 - Field Description Is Missing When Retrieving Data From an OData GET call

Symptom

When reading data via an external call, some code descriptions are unexpectedly missing from the results.

Environment

SAP Cloud for Customer

Cause

The header odata-no-codedescs prevents the server from sending descriptions for code properties. When set to 'true,' this header ensures that code descriptions, including text properties, are not included in the response.

Resolution

To optimize the process of sending descriptions in HTTP GET requests, adjust the header odata-no-codedescs according to your requirements. Set this header to false if you need to include descriptions in your requests.

Conversely, setting it to true can improve the efficiency of the operations by excluding descriptions, potentially speeding up response times and reducing data transfer.

As a workaround, if this fits the business requirement, would be to set the odata-no-codedescs to false, allowing the descriptions to return, but then, filter it only for the desired field using ?$select=.

See Also

SAP Community - Optimizing your C4C OData interface for throughput

Keywords

GET, HTTP, odata-no-codedescs, OData, Descriptions, Code Descriptions , KBA , LOD-CRM-SRP , Service Request Processing , Problem

Product

SAP Cloud for Customer core applications 2505