2415262 - How to extend extension fields using OData Services

SAP Knowledge Base Articles - public

2415262 - How to extend extension fields using OData Services


You are working as administrator in SAP Hybris Cloud for Customer where you are facing issues in extending the extension fields in OData services.


ODATA service can be categorized as below:

  1. Custom ODATA service
  2. Standard ODATA service

Adapting Extension fields to the Standard ODATA service.

You can create extension fields by following the below steps:

  • Select respective work center with HTML client
  • Select the button Adapt to Enter Adaptation Mode
  • Select Edit master layout option.
  • Select a field and right click and select Add Items.
  • A new pop up would show up, here you can either select Existing Extension field or create a new Extension Field

How to collaborate the extension fields in Standard ODATA Service:

  • Select respective workcenter
  • Select the button Adapt to Enter Adaptation Mode
  • Select Edit Master Layout option.
  • Search the required Extension Field
  • Select Settings and then select Field Definition
  • Select ODATA Service
  • The checkbox C4C.svc is adapted should be checked.

In order To check the extension field has been adapted to the standard ODATA service:


  • Go to Aadministrator work center
  • Go to ODATA Service Explorer view
  • Select SAP ODATA Services
  • Select and View the required Service Name
  • Select the Test button
  • Copy the URL and open it in new Browser.
  • Once you query the URL, you can find the extension field in the properties for the specific entity.

 Adapting Extension Fields to the Custom ODATA Service.


  • Go to Custom ODATA services
  • Select NEW to create new Custom ODATA service.
  • Select Data Workbench enabled indicator depending upon the requirement.
  • Edit the Custom ODATA service.
  • Select the required Object under Select Business Object
  • Expand and select the Entities
  • Now all the Extension Fields related to the selected entities will be available in the right hand side window OData Service
  • Select all the required Extension fields and save your Custom ODATA Service.

Once the Custom ODATA Service is created with all the required Extension Fields, by default all the Extension Fields will be available when you open the URL in browser.



KBA , LOD-CRM-ACC , Account , How To


SAP HYBRIS C4C 1705 ; SAP Hybris Cloud for Customer 1611 ; SAP Hybris Cloud for Customer 1702 ; SAP Hybris Cloud for Customer 1708 ; SAP Hybris Cloud for Customer 1711