Symptom
- Service location Country or any other property inside the "ServiceRequestServicePointLocationAddressCollection" is not updated when attempting to modify it via OData using the PATCH method.
- The OData call returns a "204 No Content" response, indicating success, but the field remains unchanged in the system.
Environment
SAP Cloud for Customer
Reproducing the Issue
- Open "Administrator" and navigate to "OData Service Explorer".
- Select "c4codataapi".
- Click on "Test".
- On the left side, locate "ServiceRequestServicePointLocationAddressCollection".
- Click on it, then proceed to the "Test" section.
- Add the endpoint ('ObjectID') in the URL.
- Change the HTTP method to "PATCH" and add the payload
- Execute the request.
- Observe that the response indicates "Successfully updated".
- Open the corresponding ticket
- Check the "Service Location" section under the "Overview" facet.
- Note that none of the Service Location fields are updated.
Cause
- The "ServiceRequestServicePointLocationCollection" association with the "ServiceRequestCollection" is not updatable as per the metadata:
- Although the properties might be marked as updatable in the metadata, the whole association is not, preventing any changes related to Service Location.
Resolution
This is the standard behavior of the system.
If the feature/functionality is required urgently, please refer to KBA 3475641 - Functionality Currently not Available.
An alternative option may be to check the corresponding SAP Customer Influence Site to submit an idea:
Keywords
odata, service location, country field, patch method, sap cloud for customer, service request processing, metadata, service location address, sap c4c, update failure, 204 no content response, service request collection, service request association, sap influence forum, country , KBA , LOD-CRM-SRP-API , Ticket API & Odata , Problem
SAP Knowledge Base Article - Public