SAP Knowledge Base Article - Public

2494615 - Hire/Rehire Wizards - Set Job Relationships using Business Rules

Symptom

Requirement is to automatically set/define the Job Relationship during the Hire/Rehire wizard.

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

It is only currently possible to add the Job Relationship Role to the Job Relationships portlet/block during the Hire/Rehire wizards. You cannot also assign a User to that Role. Currently this limitation is tracked under ECT-54224 as an Enhancement Request (not functionally supported currently).

What you can currently do, is add the row so the operator can add the User to the role before completing the wizard. For this you would need 1 rule for each Role you want to set. For example, if you require that Matrix Manager and HR Manager are added for all new Hires.

  1. Create the rule with Base Object "Employee Information" as, in this case, we want it to trigger during the Hire/Rehire wizards only.  Below you can find example rules that meet the above requirement.

1st Rule

Rule1.jpg

2nd Rule

KBAUpdate.png

  1. Put the 2 rules in order (top to bottom) as onInit rules on the jobRelationsInfo element in the Business Configuration UI (Admin Center > Manage Business Configuration).

BCUI_Triggers.jpg

 

After this ocnfigure you will face the following behavior in the Hire/Rehire wizards:

Result_in_wizard.jpg

 

Since doing this does not prevent operators from creating users without these Job Relationships as they can still be removed. Therefore if required that all new Hires/Rehires get certain Job Relationships, then you should also consider using another rule to prevent completing the wizard if one or more of these Job Relationships are missing or not defined. For this you will need 1 rule, with Base Object = Employee Information. It would be put as onSave as we want it to trigger and validate during the Save request. Rule would look like this (base on same requirement above - HR Manager and Matrix Manager are required during Hire):

PreventHireError.jpg

Place the rule under jobRelationsInfo as onSave

BCUI_Triggers2.jpg

 

Note : If there is a rule that triggers a workflow on jobRelationsInfo entity, then the context of "New Hire/Rehire UI" should be set to "No" to avoid triggering this rule in hire scenario, Otherwise validation message will always display even if the above validation rules condition doesn't match. New Hire / Rehire workflows are usually based on the jobInfo config, hence if there is a need to trigger workflow during new hire, it should be set in job info.

Keywords

Job Relationships, Rules, default, bcui,  ECT-54224, INC0029142, PRB0043519, not able, unable, create job relationship, hr manager, jobrelationship, matrix manager

   
, KBA , LOD-SF-EC-HIR , Hire & Rehire Wizards , LOD-SF-EC , Employee Central , LOD-SF-EC-RUL , DO NOT USE - Business Rules & Event Derivation , How To

Product

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