SAP Knowledge Base Article - Public

2418814 - How to configure an MDF Sequence object and Business Rule to auto-generate Person ID during Hire

Symptom

How to configure an MDF Sequence object and Business Rule to auto-generate Person ID during Hire?

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 HXM Suite
  • SAP SuccessFactors Employee Central

Resolution

Please Note:

The following is for configuration of a rule for Person ID, please see the below KBA for further detail on the new enhancement for UserID:
2678155 - 1808 - Rule-based generation of UserID / Username for Hires and Rehires (with New Employment)

Configuration

  1. Create a "Sequence" object with the required Sequence Number and Step Count;

    seq.jpg

  2. The rule to generate the IDs will be consumed not by the standard events (onChange, onSave), but directly by an appropriate method entered in a designated place in the Hire/Rehire Configuration object. There is also a new template option in the Manage Business Rules UI to create a rule to generate the Employment ID. This addresses the previous gaps with standard events where the sequence for employee IDs was skipped.
    • Please reference KBA 2678155 - 1808 - Rule-based generation of UserID / Username for Hires and Rehires (with New Employment) for rule example
  • The above example will set the Person Id to be the sequence USA or MEX (depending on the selected country) followed by the sequence number (USA1290 or MEX1290).
  • Please see the following section of the handbook for more information the Format() and Format Number() functions Link.

 FAQ

  • When using an MDF sequence to generate employee id while doing the new hire, we have the following Expected Behaviors:
    1. Do not trigger the rule as onInit or onSave from the personInfo element. Instead please implement this functionality as per the KBA 2678155: it is not recommended to use onSave or onInit rules to generate PersonID during hire anymore.
    2. Do not use Lookup objects in your Rule. Instead use the IF / THEN / ELSE IF conditions to determine different Sequences to be used. (Using Lookup object is not a stable solution and can lead to inconsistencies).

See Also

  • 2678155 - 1808 - Rule-based generation of UserID / Username for Hires and Rehires (with New Employment)
  • 2352610 - Automatic generation of position code

Keywords

mdf sequence object, hire, sequence, person-id-external, person id, Autogenerate, populate, Person ID with prefix 0, concatenate 0, personID generation, new hire , KBA , LOD-SF-EC-HIR , Hire & Rehire Wizards , LOD-SF-EC-MDF , MDF & EC2MDF Migration , LOD-SF-EC-RUL , DO NOT USE - Business Rules & Event Derivation , Problem

Product

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