SAP Knowledge Base Article - Public

2842400 - Country CHILE National ID Validation Cannot Accept Alphanumeric Inputs between 8 or 9 digits

Symptom

 CHILE  National ID Validation Cannot Accept Alphanumeric Inputs between 8 or 9 digits

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

Environment

SAP SuccessFactors Employee Central - National ID

Cause

This will be supporting in B2105

Resolution

Chile National ID should support multiple formats (8 or 9 characters)

Current National ID display format definition and validation method is

Via BCUI

  • country id:CHL
  • format-group id= national-id
  • Description: RUN - Rol Único Nacional
  • Display Format: NN.NNN.NNN-Z
  • Regular Expression: [\d]{2}\.[\d]{3}\.[\d]{3}-[\dKk]{1}

See Code Via Provisioning

<country id="CHL">
<format-group id="national-id">
<format id="RUN">
<instruction>RUN - Rol Único Nacional</instruction>

<instruction xml:lang="en-GB">RUN - National Identification Number</instruction>

<display-format>NN.NNN.NNN-Z</display-format>

<reg-ex>[\d]{2}\.[\d]{3}\.[\d]{3}-[\dKk]{1}</reg-ex>

</format>

After B2105 Release:ECT-133604 [EC_LOC2105] Update for Chile National ID validation- Enhancement 

  • The National ID (RUN - Rol Único Nacional) regular expression will need to be updated in the Country-specific Succession Data Model (CSF SDM) for Chile, this is Admin-opt in feature.
  • The format hint / Display format needs to be made blank.
  • The description shows as below:

Via BCUI

  • country id:CHL
  • format-group id= national-id
  • Description: RUN - Rol Único Nacional
  • Display Format: 
  • Regular Expression: [\d]{2}\.[\d]{3}\.[\d]{3}-[\dKk]{1}

Display Format   must be:  Empty

See Code Via Provisioning

<country id="CHL">
<format-group id="national-id">
<format id="RUN">
<instruction>RUN - Rol Único Nacional</instruction>

<instruction>HKID Number</instruction>

 <display-format></display-format>

<reg-ex>[\d]{1,2}\.[\d]{3}\.[\d]{3}-[\dKk]{1}</reg-ex>
</format>

</country>

Step 2: import data record with format id="RUN"

FAQ - Additional Information

Q) Deep Validation National ID - RUN - Rol Único Nacional?

A) Additional algorithm check is required for the National ID to support National ID input with format N.NNN.NNN-Z, detailed logic as below:

Take the RUN number and going from right to left, multiply each digit in the following sequence: “2,3,4,5,6,7”. For example, for 6.086.428

  1. Multiply: (8*2), (2*3), (4*4), and so on.
  2. Sum these results: 12+0+48+30+16+6+16=128.
  3. Find the difference: divide 128 by 11 and result is 11.6 (rounded up): the rest or remainder here is 7. Take the remainder and subtract from 11. Store that result as the 8th digit. If the result is 10, use K as the 8th digit. If the result is 11, use “0”. In this example, the remainder is 7. Subtract from 11 (11-7=4). Checksum number stored as 9th digit is “4”

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:

See Also

  • 2668688 - National ID Card: How to create custom Regular Expression and Display Format
  • 2472343 - How to Manage National ID Formats via Manage Business Configuration (BCUI)

Keywords

ECT-133604, ECT-123203, ECT-121026, Chile, National ID, 8 or 9 digits, country/region-specific,  national ID Validation, format, RUN - National Identification Number , KBA , LOD-SF-EC-PER-NAT , National ID - Config, Rules, RBP, UI , LOD-SF-EC-BCI , Manage Business Configuration (BCUI) & Data Models (XML) , How To

Product

SAP SuccessFactors Employee Central all versions