SAP Knowledge Base Article - Public

3721450 - OData Field Update is Empty

Symptom

  • A field value updated by OData is getting removed.
  • A field value becomes empty after the final save, despite being correctly populated by the background process before the login user saves the object.

Environment

SAP Cloud for Customer

Reproducing the Issue

Prerequisite: A custom solution has been configured for OData to update a field on an object.

For this example, the Ticket object will be used and "ABC" will be the name of the field updated via OData.

  1. Go to Service Workcenter > Ticket.
  2. Create a new ticket ensuring "ABC" field is empty.
  3. On the Ticket, select Edit.
  4. Make an update to any field ensuring the OData update is triggered.
  5. Click Save.
  6. Wait for 10 - 30 seconds to allow the OData to update the "ABC" field.
  7. Click Edit on the Ticket.
  8. See that the "ABC" field is now filled.
  9. Change any other field (e.g., status or Priority).
  10. Click Save.
  11. The "ABC" field is now changed to empty.

Cause

When an OData update occurs outside the current UI (for example from an integration or background process), the UI’s local model/cache won’t pick up the change automatically. 

Resolution

The recommendation is to do a refresh on the relevant model or binding after the OData update and before opening the ticket editor to avoid overwriting the updated value. Please see the below example changes to replication steps below:

  1. Go to Service Workcenter > Ticket.
  2. Create a new ticket ensuring "ABC" field is empty.
  3. On the Ticket, select Edit.
  4. Make an update to any field ensuring the OData update is triggered.
  5. Click Save.
  6. Wait for 10 - 30 seconds to allow the OData to update the "ABC" field.
  7. Click the Refresh action on the Ticket.
  8. Click Edit on the Ticket.
  9. See that the "ABC" field is now filled.
  10. Change any other field (e.g., status or Priority).
  11. Click Save.
  12. The "ABC" field remains filled.

Keywords

field value removed, field change, OData update, field cleared, refresh, field empty, party determination logic, Ticket, Sales Quote, Account, Assigned to, Sales Order, Opportunity, Lead, Customer,  , KBA , LOD-CRM-SRP , Service Request Processing , LOD-CRM-OPP , Opportunity Management , LOD-CRM-INT-ERP , Integration of C4C with ERP , How To

Product

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