SAP Knowledge Base Article - Public

2541582 - Error Message "Last character of NIF is not valid" While Hiring Employees for Country Spain

Symptom

You have a requirement to hire Employees for Country Spain and you are getting the below error message:

"Last character of NIF is not valid"

Reproducing the Issue

1. Go to Personnel Administration work center
2. Select Regular Tasks
3. Select tab - Spain
4. Select Hire Employee
5. Add NIF as Y1234567F
6. Add Employee ID
7. Add First name
8. Add First Last Name
9. Add Country and Nationality as Spain

Cause

The entered NIF number for Spanish Citizen is invalid as it does not satisfy validation rules.

Resolution

The NIF basically has a DNI number plus a check digit at the end. You can follow the modulo rules as specified in the below link:

http://www.cespedes.org/dni2nif/

Keywords

KBA , SRD-CC , Cross Components , How To

Product

SAP BUSINESS BYDESIGN 1708 ; SAP Business ByDesign 1802