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 , personnel administration , hire employees , spain , nif , dni , SRD-HR-PAD , Personnel Administration , How To

Product

SAP Business ByDesign all versions