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

SAP SuccessFactors 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 with the old format

Resolution

Step 1: Run Adhoc Report

  1. Go to Analytic then Adhoc Report
  2. Create new Report
  3. Select  sub domain: Person and Employment Export
  4. In Column, Select only column National ID Infos
  5. Filter Test user
  6. Save
  7. back up  your report into Your Desktop (Will Be used as a Backup)

Step 2: Chang code Via below

Change the display format to be Empty, as it is stated in the Hong Kong section of the country/region-specific Handbook.

Via BCUI

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

See Code Via Provisioning

<country id="HKG">

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

      <format id="HKID1">

        <instruction>HKID Number</instruction>

 <display-format></display-format>

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

</country>

Step 3: import data record with format id="HKID1"

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:

See Also

  • 2668688 - National ID Card: How to create custom Regular Expression and Display Format
  • 2472343 - How to Manage National ID Formats via Manage Business Configuration (BCUI)

Keywords

National ID, Hong Kong, Error While Saving Hong Kong National ID, display-format, reg-ex,[A-Z]{1,2}[\d]{6}[\(][0-9A-Z][\)], HKID1 , KBA , LOD-SF-EC-PER-NAT , National ID - Config, Rules, RBP, UI , Problem

Product

SAP SuccessFactors Employee Central all versions ; SAP SuccessFactors HCM Suite all versions