Symptom
You want to update the fields Company Name, Department Name using Odata Services. But, these fields are missing in the Employee Collection
Environment
SAP Cloud for Customer
Reproducing the Issue
- Go to Administrator -> Employee -> Click New
- Under the Org Data, you can see Company Name and Department Name.
- But, these fields are not available for create using Odata Services
Cause
The fields CompanyName and DepartmentName available in the employee UI (QAF in admin workcenter) are not available in the odata service and there is also no plan to add them. These fields in the UI are not used to create an assignment of an employee to an organisational unit. They are just used for the use case that a letter is written to an employee at his workplace address and that the address is formatted accordingly.
Example:
Employee XXX assigned to the org. unit "YYYY" workplace address in "ZZZZ".
If an letter should be send to the employee "XXXX" at this workplace address the address should be:
SAP SE -> CompanyName
Department C4C -> DepartmentName
XXXX
ZZZZ
As this use case is not very prominent, the fields are currently missing in the odata service.
Resolution
You need to use the OData subentity EmployeeOrganisationalUnitAssignment to create the Org unit data for Employees
Keywords
Employee, EmployeeOrganisationalUnitAssignment, Odata, Department name, Company Name , KBA , LOD-CRM-EMP , Employee , Problem