You have a requirement to create employee IDs with leading zeros, but while saving the employee, the system removes the zeros. This occurs by creating an employee in UI, during migration or by replicating employees from other systems.
SAP Hybris Cloud for Customer 1802 and higher.
SAP Business ByDesign 1802 and higher.
Reproducing the Issue
Creating employees in UI:
- Go to the Personnel Administration work center.
- Select Regular Tasks view.
- Select Hire Employee.
- Enter the Employee ID with leading zeros and the mandatory information.
- Save the employee and see the leading zeros were removed from the ID.
If the ID has alpha-conversion enabled, then the below mentioned behavior is the same for all alpha-conversion identifiers. The reason for that is because the ID accepts different format rules i.e. accepts letters and special characters.
For pure numerical IDs, the alpha-conversion takes place. Alpha-conversion means that numerical values are padded with leading zeros until they reach the length of the referenced data type.
For IDs containing letters or special characters, the alpha-conversion is not needed and hence no leading zeros will be inserted in the ID.
This is expected system behavior.
- If you enter the Employee ID with leading zeros, followed by numeric values, the zeros will be truncated.
- If you have an Employee ID with leading zeros followed by alphanumeric values, then the zeros will not be truncated.
leading zero, employee ID, master data replication, employee replication, employee central, personnel administration, employee hiring , KBA , SRD-HR-PAD , Personnel Administration , How To