SAP Knowledge Base Article - Public

2826453 - Unable to add PDI Extension Fields to OData Service for ServiceRequest

Symptom

You have tried to add an extension field through the SDK to the ServiceRequest Business Object, however the field is not available in the c4codataapi metadata.

Environment

  • SAP Cloud for Customer
  • SAP Cloud Application Studio

Reproducing the Issue

  1. Open OData Service Explorer under the Administrator Work Center.
  2. Select the SAP OData Service c4codataapi and click View.
  3. In the OData Editor, click the Service URL link.
  4. The extension fields cannot be found in the metadata.

Cause

The OData Services servicerequest and yserviceticket are defunct services and are not part of c4codataapi.

Resolution

You must add the extensions fields to the new OData Service 'ticket' which is part of c4codataapi:

  1. In the SDK, select Add New Item and choose OData Extension.
  2. Select the OData Service ticket:

OData Extension.png

  1. Click OK and log in with your PDI User when the system UI opens.
  2. Select your Extension Field to extend to c4codataapi.
  3. Click Save and then click Activate.

Keywords

c4codataapi, metadata, KUT fields, PDI, Extension fields, SDK, extend, o data, yserviceticket, BO, OData Editor, Service Explorer, ticket , KBA , custom field odata , extend custom field to odata , LOD-CRM-INT-API , OData API (C4C Only) , AP-RC-ODF , OData framework (C4C Only) , Problem

Product

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