Hi Experts,
We are using standard OData API API_SLSPRICINGCONDITIONRECORD_SRV to update the pricing record and for updating validity we use A_SlsPrcgCndnRecdValidity as resource path.
As part of the xsd generated both conditionValidity and ConditionValidityEndDate are part of key fields for this entity.
So does that mean we cannot change ConditionValidityEndDate ? since its part of key field and would be used to identify the record?
So when I give different date then what is existing in the record, it says record not found and if give the same then we cant change that date.
In the sample which SAP has given in help.sap they have used different in the sample URL which is called and in the body. But that can we done if we are using rest may be but how can this be done using Odata adapter and the xsd generated from that ?
Sample from SAP
PATCH /sap/opu/odata/SAP/API_SLSPRICINGCONDITIONRECORD_SRV/A_SlsPrcgCndnRecdValidity(ConditionRecord='0000027865',ConditionValidityEndDate=datetime'2022-11-30T00:00:00')X-CSRF-Token: abcContent-Type: application/jsonAccept: application/jsonIf-Match: W/"'79BAD8181704F1D6E2223A60CE6FC0CBBE578E66'"{ "ConditionValidityStartDate" : "2047-02-01T00:00:00", "ConditionValidityEndDate" : "2047-9-30T00:00:00"}help.sap URL https://help.sap.com/docs/SAP_S4HANA_CLOUD/03c04db2a7434731b7fe21dca77440da/c8fef622eed042fba2d0ddb749bac7ac.html.