SAP Knowledge Base Article - Public

2891221 - Execution of POST Method for OData Service Does not Upload Data to the KUT Field

Symptom

Your requirement is to create data using the OData Service and the related KUT field. Upon executing the OData Service, data is created in system, but the issue is with KUT field which is ZField_1_KUT , where the data is not uploaded. Although the required value is passed in the Request payload for the KUT field, the field appears blank.

where ZField_1_KUT and ZField_1 are the KUT field
myxxxxxx represents the tenant
PQR is the UI label name of the KUT field
Yyyyyyyyyy is the object in OData Collection
/BYD/xxxxxxxxxxxxxxxxxxxx and /BYD/zzzzzzzzzzzzzzzzzzzz is the technical name of the KUT field

Environment

SAP Cloud for Customer

Reproducing the Issue

Execute the POST method for the below Service in OData Service Explorer:

  1. Go to Administrator work center
  2. Go to OData Service Explorer view
  3. Show SAP OData Services
  4. Highlight the Service name c4codataapi and select Test
  5. On the OData Console, in the left pane, select the required Entity Set
  6. Select the Test tab
  7. Select the POST method for https://myxxxxxx.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/YyyyyyyyyyCollection
  8. Input data for the required fields
  9. Select Execute

You receive a Response that the data is successfully created.

Verify the data in the respective work center view and observe that only KUT field ZField_1_KUT is still blank.

Cause

You created two KUT extension fields in the respective Business Object with same UI Text.

Example:

/BYD/xxxxxxxxxxxxxxxxxxxx ZField_1_KUT with UI text - PQR

/BYD/zzzzzzzzzzzzzzzzzzzz ZField_1 with UI text - PQR

Resolution

In OData, there is naming convention (_KUT) for all the KUT extension fields. As there is already KUT for the mentioned property (/BYD/xxxxxxxxxxxxxxxxxxxx ZField_1_KUT ) , during addition to the service, duplicate (_KUT) is not added due to which, system considers that there are two properties with same name.

As both fields are present in the Business Object, at SAP we cannot remove the one field with same name. In Adaptation mode, you have to delete one property whichever is not required for your business and test the scenario. The data will be successfully uploaded for the KUT field ZField_1_KUT

Keywords

OData, _KUT, KUT, Extension field, UI Text , KBA , ui text , odata , kut , _kut , extension field , LOD-CRM-INT-API , OData API (C4C Only) , Problem

Product

SAP Cloud for Customer core applications all versions