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.
- Go to Service Workcenter > Ticket.
- Create a new ticket ensuring "ABC" field is empty.
- On the Ticket, select Edit.
- Make an update to any field ensuring the OData update is triggered.
- Click Save.
- Wait for 10 - 30 seconds to allow the OData to update the "ABC" field.
- Click Edit on the Ticket.
- See that the "ABC" field is now filled.
- Change any other field (e.g., status or Priority).
- Click Save.
- 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:
- Go to Service Workcenter > Ticket.
- Create a new ticket ensuring "ABC" field is empty.
- On the Ticket, select Edit.
- Make an update to any field ensuring the OData update is triggered.
- Click Save.
- Wait for 10 - 30 seconds to allow the OData to update the "ABC" field.
- Click the Refresh action on the Ticket.
- Click Edit on the Ticket.
- See that the "ABC" field is now filled.
- Change any other field (e.g., status or Priority).
- Click Save.
- 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
SAP Knowledge Base Article - Public