Symptom
- Check Digit Calculation for new 13 digit Swiss Social Insurance Number
- Warning Message Displayed on New hire
Environment
SAP SuccessFactors Employee Central - National Id
Cause
This AHV number, it is a unique identification number that is centralized at the federal level and issued by the Swiss Compensation Office in Geneva (CCO). The AHV Number is systematically used for social security matters but it can - to a limited extent - also be used for other purposes (i.e. for tax matters, the military administration, education), the new 13-digit social insurance number format has been used from 01-Jul-2008.
The deep validation algorithm for AHV of CHE has been implemented as of the 1808 release.
Resolution
Deep Validation National ID - AHV/AVS NUMBER
The existing validation for the AHV/AVS NUMBER of Switzerland:
The whole number consists of 13 digits, no other character types allowed.
- The 1st to 3rd digits must be 756, which is the ISO code for Switzerland
- The 6th to 12th digits are a generated number to identify the person
- The 13th digit is a check digit following the validation algorithm of EAN-13
Validation Algorithm of EAN-13:
- Multiply the digits in the odd-numbered positions (1st, 3rd, 5th, 7th, 9th, 11th) by 1 and add the values to get the sum (1).
- Multiply the digits in the even-numbered positions (2nd, 4th, 6th, 8th, 10th, 12th) by 3 and add the values to get the sum (2)
- Add the results together (sum 1 and sum 2) as final sum.
- Take the remainder of the final sum divided by 10 (modulo operation) as check digit. If the remainder is 0, the check digit would be 0.
The following table gives an example to illustrate how a check digit works
Positions |
No.1 |
No.2 |
No.3 |
No.4 |
No.5 |
No.6 |
No.7 |
No.8 |
No.9 |
No.10 |
No.11 |
No.12 |
No.13 |
Number without Check Digit |
7 |
5 |
6 |
1 |
0 |
4 |
1 |
5 |
0 |
0 |
2 |
1 |
|
Multiply by |
1 |
3 |
1 |
3 |
1 |
3 |
1 |
3 |
1 |
3 |
1 |
3 |
|
Result for odd-numbered positions |
7 |
|
6 |
|
0 |
|
1 |
|
0 |
|
2 |
|
|
Result for even-numbered positions |
|
15 |
|
3 |
|
12 |
|
15 |
|
0 |
|
3 |
|
Final sum |
7+15+6+3+0+12+1+15+0+0+2+3=64 |
|
|||||||||||
Remainder of final sum divided by 10 |
70-64=6 |
|
|||||||||||
Number with Check Digit |
7 |
5 |
6 |
1 |
0 |
4 |
1 |
5 |
0 |
0 |
2 |
1 |
6 |
Keywords
Switzerland, National ID, Deep Validation, Insurance, Certificate, Number, Failed, Error, the check digit in the national id of type, for country/region is not valid, please correct your entry, , KBA , LOD-SF-EC-PER-NAT , National ID - Config, Rules, RBP, UI , Problem