SAP Knowledge Base Article - Public

2249512 - Error While Saving National ID for Hong Kong

Symptom

You would receive an application error when trying to approve while saving national id.

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

Environment

Employee Central - National ID

Reproducing the Issue

  1. Search for Employee
  2. Go to Personal Information and Edit National ID
  3. Select Hong Kong for country and select Identification Number 1 for National ID Type. Enter the number based on the format for eg. A123456(Z).
  4. Click on Save and the error :

            "1.Please enter a valid Identification Number 1. You should use the format ANNNNNN(X)." will appear.

HKG ID.png

       5. The national id format in CSF Succession Data model is as below:

SAVE2png.png

Cause

This error arises due to the display format being wrong

Resolution

Change the display format to be ANNNNNNX instead, as it is stated in the Hong Kong section of the Country Specific Handbook.

Via BCUI

  • country id:HKG
  • format-group id:national-id
  • format id: HKID1
  • display-format reg-ex: [A-Z]{1,2}[\d]{6}[\(][0-9A][\)]

Via Provisioning

<country id="HKG">

    <format-group id="national-id">

      <format id="HKID1">

        <instruction>HKID Number</instruction>

        <instruction xml:lang="de-DE">HKID-Nummer</instruction>

        <instruction xml:lang="el-GR">Αριθμός HKID</instruction>

        <instruction xml:lang="en-GB">HKID Number</instruction>

        <instruction xml:lang="es-ES">Número HKID</instruction>

       <instruction xml:lang="fr-FR">Numéro de carte d’identité Hong Kong</instruction>

       <instruction xml:lang="zh-CN">中国香港身份证号码</instruction>

        <instruction xml:lang="zh-TW">中國香港身分證號碼</instruction>

        <display-format></display-format>

        <reg-ex>[A-Z]{1,2}[\d]{6}[\(][0-9A][\)]</reg-ex>

      </format>

 

FAQ - Additional Information

 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:

Keywords

National ID, Hong Kong, Error While Saving Hong Kong National ID , KBA , LOD-SF-EC-LOC , Localization & Country Specifics (EC Core) , Problem

Product

SAP SuccessFactors HXM Core all versions