Symptom
You are unable to update the Employee Responsible Party in Purchase Order using Odata Service.
Environment
SAP Business ByDesign
Reproducing the Issue
- Go to Application and User Management workcenter.
- Select Odata Service Explorer.
- Select your Custom Odata Service and open Odata Console.
- Fetch the required Purchase Order:
(where XXXXXX is the Tenant ID)
5. To update the Party ID, use PATCH Method with below code:
{
"PurchaseOrderEmployeeResponsibleParty":
{
"PartyID":"YYYY"
}
}
(where YYYY is the new PartyID)
The required PartyID does not change.
Cause
The Navigation URL used in this case is incorrect and hence, it was unable to update the PartyID.
Resolution
Follow the below instructions to fetch the Purchase Order Employee Responsible Party:
- Use below URL to fetch the ObjectID of the Node PurchaseOrderEmployeeResponsibleParty:
Take the ObjectID for PurchaseOrderEmployeeResponsiblePartyCollection
2. To update the PartyID, use below URL with above ObjectID :
Use the PATCH Method with given code
{
"PartyID":"YYYY"
}
Keywords
PurchaseOrderEmployeeResponsibleParty, Odata Service, PurchaseOrderEmployeeResponsiblePartyCollection, Purachse Order , KBA , employee responsible party in purchase , employee responsible party , LOD-CRM-INT-API , OData API (C4C Only) , Problem