SAP Knowledge Base Article - Public

2657534 - PAN Card validation by Using Regular expression

Symptom

How to validate PAN card number in a panel

Reproducing the Issue

Candidate can enter PAN card in incorrect format also so, we need to validate the input value provided by candidate to ensure correct value is provided.

Cause

Validator is required and Regular expression need to be passed.

Resolution

use validator and select Regular expression. Define below Regular Expression to validate PAN card number in India :

 ^[A-Za-z]{5}\d{4}[A-Za-z]{1}$

[A-Za-z]{5} : ensures lower and upper case alphabet and 5 chars are acceptable. if need upper case only, define as : [A-Z]{5}
\d{4} : numberic values with 4 chars allowed
[A-Za-z]{1} : same explanation as first syntax

Keywords

PAN ; PAN card validation ; Regular expression ; PAN REGEX ; , KBA , LOD-SF-OBD-PAN , Panels, Panel Designer , Problem

Product

SAP SuccessFactors HCM Core 1805 ; SAP SuccessFactors Onboarding ; SAP SuccessFactors Onboarding 1511 ; SAP SuccessFactors Onboarding 1602 ; SAP SuccessFactors Onboarding 1605 ; SAP SuccessFactors Onboarding 1608 ; SAP SuccessFactors Onboarding 1611 ; SAP SuccessFactors Onboarding 1702 ; SAP SuccessFactors Onboarding 1705 ; SAP SuccessFactors Onboarding 1708 ; SAP SuccessFactors Onboarding 1711 ; SAP SuccessFactors Onboarding 1802 ; SAP SuccessFactors Onboarding 1805 ; SuccessFactors Onboarding 1305 ; SuccessFactors Onboarding 1308 ; SuccessFactors Onboarding 1311 ; SuccessFactors Onboarding 1402 ; SuccessFactors Onboarding 1405 ; SuccessFactors Onboarding 1408 ; SuccessFactors Onboarding 1411 ; SuccessFactors Onboarding 1502 ; SuccessFactors Onboarding 1505 ; SuccessFactors Onboarding 1508