SAP Knowledge Base Article - Public

2746954 - Error "Invalid CompanyCode" when Importing Employees


The error "Employee: XXXX - Invalid CompanyCode XXXX" error is appearing when loading employees via Import Employee App.



Reproducing the Issue

  1. Go to the tile Import Employees App.
  2. Upload the filled templates.
  3. After doing the import, the application will redirect you to the "Monitor Employee Imports" App
  4. See the error message "Employee: XXXX - Invalid CompanyCode XXXX"


The Company Code is not correctly configured in the system.


Add a correct Personnel area and subarea to the company code to which the employees should be imported using the flexorg app (SSCUI 100066).

To do this, please follow the steps:

  1. Go to the tile Manage Your Solution
  2. Go to Configure Your Solution.
  3. Go to the Application Area Organization
  4. Go to the Step Name Organizational Structure
  5. Create/Modify the organization to keep the ID of the Company Code, Personal Area and Personal Subarea to be the same.

In the past the missing personnel area and subareas were created via BAdI automatically during the employee import (even though if that was not reflected in the flexorg app).
Now the behavior has changed and the entries are no longer created via the BAdI. This was a interims solution for existing customers. With the new content structure we expect that the company code ID and the ID of the personnel area/subarea is the same, the BAdI is no longer working. For creating employees ensure that the ID of company code, personnel area and personnel subarea are maintained the same.

See Also

2555311 - FAQ - Import Employees app

2646803 - How to maintain employees data in an S/4HANA Cloud

JB1 - Core HR with SAP SuccessFactors Employee Central (‏JB1‏)


CompanyCode, Company Code, /SHCM/EMP_PASEIN_CL004, SHCM/EMP_PASEIN_CL 004, , KBA , SV-CLD-FRM-APP , Flexorg, CCF, Foreign Key Check , CA-HR-S4 , Cross-Application HCM Objects in S/4HANA , Problem


SAP S/4HANA Cloud 1811