SAP Knowledge Base Article - Public

2979380 - Denmark or Danish National ID Deep Validation


Denmark or Danish National ID Deep Validation

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.


SAP SuccessFactors Employee Central- Localisation


Danish National ID detail

  • Field ID: national-ID
  • Field Label: National ID Card Type
  • Max. Length: 11
  • Mandatory? : No
  • National ID Type: CPR Number
  • The format of the national ID is as follows: DDMMYY-NNNN

The format follows the following rules:

  • A represents a letter
  • N represents a number
  • X represents any alphanumeric character
  • * (asterisk) represents a special (for example,!) or an alphanumeric character
  • yymmd (or similar) represents a date of birth

The format of the national ID is as follows: DDMMYY-NNNN

DDMMYY here represents the date of birth and N represents digits. For example, if the number is 290280-0000, the employee's date of birth is Feb 29th, 1980. If the entered date of birth in the CPR Number is not a valid date, an error message is raised. You should recheck it and reenter if necessary.

Via BCU2472343  How to Manage National ID Formats via Manage Business Configuration (BCUI)

System Administrators are able to maintain their National ID Formats for their configured country/regions.

  1. Go to Manage Business Configuration
  2. under nationalIdCard element you now have the option to "Create New Format" which allows you to create a country/region-specific National ID format for the selected country/region:
  • Identifier:CPR
  • Label:CPR Number
  • Display Format:DDMMYY-NNNN
  • Regular Expression:[\d]{6}-[\d]{4}

Via Code

The fields relate to the National ID Format Configuration in the country/region-specific Succession Data Model XML

<country id="DNK">
<format-group id="national-id">
<format id="CPR">
<instruction>CPR Number</instruction>

<instruction xml:lang="da-DK">CPR-nummer</instruction>
<instruction xml:lang="de-CH">CPR-Nummer</instruction>
<instruction xml:lang="de-DE">CPR-Nummer</instruction>
<instruction xml:lang="el-GR">Αριθμός CPR</instruction>
<instruction xml:lang="en-GB">CPR Number</instruction>
<instruction xml:lang="es-ES">Número de CPR</instruction>
<instruction xml:lang="es-MX">Número de CPR</instruction>
<instruction xml:lang="fi-FI">CPR-numero</instruction>
<instruction xml:lang="fr-CA">Numéro CPR</instruction>



Please view country/region-specific Data Model Handbook: Here


FAQ - Additional Information

Q) Where can I download Employee Central Master Data Models?

A) The Data Models are available in the SAP Help Portal under Configuration - Employee Central Master Data Models:


National ID, BCUI, Denmark, Danish, ECT-49199, BCUI, Business Configuration, National ID Card Type , KBA , LOD-SF-EC-BCI , Manage Business Configuration (BCUI) & Data Models (XML) , LOD-SF-EC-LOC , Localization & Country Specifics (EC Core) , How To


SAP SuccessFactors HXM Core 2005