Symptom
- An error message "Worker: ...... - Company Code cannot be changed" is displayed when attempting to perform a mass import of workers and their work agreements via Import function in Manage Workforce application.
- The import process fails when trying to add a new work agreement for a worker with a different company code.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Open the "Manage Workforce" application.
- Download the template files for Worker and Work Agreement.
- Upload the CSV files containing worker data with multiple work agreements for a different company code.
- Observe the error message in application log: "Worker: ...... - Company Code cannot be changed."
Cause
The "Manage Workforce" application's import function is designed to handle only one work agreement per worker. Attempting to import multiple work agreements results in errors or overwrites existing data.
Resolution
To manage multiple work agreements effectively, there are two options:
- Use the SOAP API: Replicate Basic Master Data for Workforce from External HR Systems for mass imports. For further guidance, refer to KBA 2905918 - FAQs: Replicate Basic Master Data for Workforce from External HR Systems.
- Alternatively, create new work agreements directly within the "Manage Workforce" application. Detailed steps for this process can be found in the SAP Help Portal - How to Create and Correct Work Agreements
See Also
- KBA 2905918 - FAQs: Replicate Basic Master Data for Workforce from External HR Systems
- SAP Help Portal - How to Create and Correct Work Agreements
- SOAP API: Replicate Basic Master Data for Workforce from External HR Systems
Keywords
worker import error, company code cannot be changed, manage workforce application, mass import work agreements, SAP S/4HANA Cloud Public Edition, SOAP API, replicate basic master data, create work agreements, import functionality error, work agreement overwrite. , KBA , CA-WFD-INT , S/4HANA Cloud Workforce Domain Integration , CA-GTF-BUM , Business User Management , Problem
SAP Knowledge Base Article - Public