Symptom
When updating a Sales Contract item, the Profit Center becomes blank after changing the Production Plant, even though a Profit Center value is provided.
This behavior is observed in the following scenarios:
- Updating the Sales Contract via API (API_SALES_CONTRACT_SRV)
- Updating the Sales Contract via UI (Change Contract app)
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Create a Sales Contract with:
- Production Plant maintained
- Profit Center maintained at item level
- Ensure that for the given Material + Plant combination, the Profit Center is not maintained in Material Master (App: Manage Product Master Data).
- Trigger an update via API or UI:
- Change the Production Plant
- Provide a Profit Center in the same update request (for API scenario)
- Save or execute the request.
Observed Result
- Production Plant is updated successfully
- Profit Center is cleared (blank) or re-determined
Cause
This behavior is standard system design in SAP S/4HANA Cloud.
The Profit Center is a derived field, determined based on:
- Material Master (plant-specific data)
- Organizational and account assignment logic
When the Production Plant is changed, the system triggers account assignment re-determination, which includes recalculating the Profit Center.
If no Profit Center is maintained in the Material Master for the selected Plant, the system determines the value as blank.
Even if a Profit Center is explicitly provided in the same API request, it may be overwritten by standard determination logic during the Plant update.
Resolution
To ensure the desired behavior, one of the following approaches can be used:
- Maintain Profit Center in Material Master
- Use the app Manage Product Master Data
- Maintain the Profit Center for the relevant Material + Plant combination
- Update fields in separate steps (API scenario)
- First update the Production Plant
- Then perform a second update to set the Profit Center
- Review account assignment and derivation logic to ensure consistency with business requirements
See Also
refer to: Profit Center determination in SAP S/4HANA Cloud
refer to: Community discussion on Profit Center derivation and change behavior
Keywords
Profit Center, Production Plant, Sales Contract, API_SALES_CONTRACT_SRV, A_SalesContractItem, plant change, profit center blank, account assignment, derivation, material master, S/4HANA Cloud Public Edition , KBA , SD-SLS-OA-CCO-2CL , Customer Contracts (Public Cloud) , Problem
SAP Knowledge Base Article - Public