SAP Knowledge Base Article - Public

1960660 - Leading Zeros for Employee IDs are Truncated

Symptom

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.

Environment

  • SAP Hybris Cloud for Customer 1802 and higher.
  • SAP Business ByDesign 1802 and higher.

Reproducing the Issue

Creating employees in UI:

  1. Go to the Personnel Administration work center.
  2. Select Regular Tasks view.
  3. Select Hire Employee.
  4. Enter the Employee ID with leading zeros and the mandatory information.
  5. Save the employee and see the leading zeros were removed from the ID.

Cause

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.

Resolution

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.

Keywords

leading zero, employee ID, master data replication, employee replication, employee central, personnel administration, employee hiring , KBA , SRD-HR-PAD , Personnel Administration , How To

Product

SAP Business ByDesign all versions ; SAP Cloud for Customer all versions