SAP Knowledge Base Article - Public

3716675 - Business partner master data lock issue in sap s/4hana cloud public edition

Symptom

  • The issue pertains to modifications in the Business Partner (BP) master data.
  • The development functionality involves sequential invocation of APIs for modifying customer company data, customer sales view, and customer sales tax items within a single program.
  • During the process, a successful message was received for modifying the customer sales view. However, an error ""xxxx is currently being processed by CC0000000002"" occurred while executing the customer sales tax modification, which resulted in an unspecified response to the user.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Execute sequential API calls to modify Business Partner master data, including customer company data, customer sales view, and customer sales tax items within a single program.
  2. Observe that earlier API calls return success (HTTP 200 / business success message).
  3. Trigger subsequent API calls for the same Business Partner in quick succession.
  4. Note that the subsequent API call fails with the error message "xxxx is currently being processed by CC0000000002".

Cause

  • Each OData call to API_BUSINESS_PARTNER is handled as an independent Logical Unit of Work (LUW) in the backend.
  • For Business Partner master data, SAP applies an enqueue lock on the Business Partner number to ensure data consistency.
  • The HTTP response confirms that the request was accepted and processing started, but does not indicate that the database commit and lock release have completed.
  • When multiple update calls for the same Business Partner are triggered in quick succession, the next call may arrive before the previous LUW has fully committed, resulting in a Business Partner lock conflict.

Resolution

  1. Combine the updates into a single OData $batch request to submit all modifications in one transaction.
  2. Introduce retry and/or delay logic between successive updates for the same Business Partner to avoid lock conflicts.

See Also

Refer to: Batch Request for detailed information.

Keywords

business partner, master data, sap s/4hana cloud, api_business_partner, lock issue, enqueue lock, logical unit of work, luw, odata, batch request, retry logic, delay logic, error message, data consistency, sequential api calls, lock conflict , KBA , LO-MD-BP-ODT , OData Service for Business Partner , Problem

Product

SAP S/4HANA Cloud Public Edition all versions