SAP Knowledge Base Article - Public

2791232 - Account/Sales Data is Not Blocked for Changes From External Sources When Record is in Edit Mode

Symptom

According to your experience, when you are editing an account in the UI, this account is locked by your user. In such a case, you cannot update its header data using CorporateAccountCollection in OData Explorer at the same time. Instead, you receive the following error: The specified HTTP method is not allowed for the resource identified by the Data Service Request URI occurs in OData Service Explorer.

But when you update the sales data using CorporateAccountSalesDataCollection, no error occurs. Instead, the account sales data will be updated successfully. You wonder why this happens.

Environment

SAP Cloud for Customer

Reproducing the Issue

  1. Go to Customer work center
  2. Select any account
  3. Click on Edit
  4. Now go to Administrator work center
  5. Click on ODATA Service Explorer
  6. Select Standard OData Service c4codataapi
  7. Click on Test
  8. Select Entity Set CorporateAccountSalesDataCollection to update sales data
  9. Select Method Patch
  10. Insert the Object ID
  11. Click Execute
  12. You expect the account being locked by your user, but instead account sales data has been updated successfully

Resolution

The Edit button in the UI locks only the header object, but not the tab Sales Data. The account belongs to the underlying BO Customer. When you search for this account and click on Edit, then the main object will get locked.

However, sales data is not stored in BO Customer. The sales data is stored in a separate BO called Sales Arrangement. OData entity CorporateAccountSalesDataCollection is bound against BO SalesArrangement. The Sales Arrangement instances shown in the tab Sales Data will only get a lock if you do a real change. As long as you only edit an account without performing a real change, the OData call of CorporateAccountSalesDataCollection still works.

Keywords

Update customer data, standard OData service, record updated without any blocking , KBA , AP-RC-ODF , OData framework (C4C Only) , AP-RC-ODC , OData Console , LOD-CRM-ACC , Account , Problem

Product

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