SAP Knowledge Base Article - Public

2416185 - How to prevent Hire/Rehire when multiple required Job Relationship Types have not been added

Symptom

When hiring or rehiring an employee, there is no validation/error message provided when multiple specific Job Relationships have not been added during the Hire/Rehire process.

*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

Cause

To prevent Hire/Rehire where specific Job Relationships have not been defined in the Job Relationships portlet/block during the Hire/Rehire process you must use a Business Rule.

Resolution

Please note that the below rule is designed to trigger when 2 specific Job Relationships have not been added to the Job Relationships portlet during the Hire/Rehire process - Matrix Manager & Additional Manager

You must create 1 rule for each Job Relationship to be able to check each row in Job Relationships.

JUSTIFICATION:
When the system processes onSave rules on Data Grid portlets or portlets that can have multiple rows(e.g. NationalID, Email Address, Phone Number, etc.), processes one rule at a time to the rule execution. Therefore, if we maintain multiple "IF" conditions(one for each JobRel) in a single rule, the system will check other rows of the same entity that would cause the rule to fail.

  • Base Object - Employee Information (which will only trigger during Hire/Rehire wizards)
  • Rule Trigger - Set as "onSave" in the Job Information element
  • Rule Example:

MMR.PNG

AMR.PNG

  • Please note: This rule works only in new hire scenario and will not work when created with job relationships base object in existing employees job relationship section.
  • This is currently a known gap and customers are advised to raise an enhancement request, if the similar rule is needed for the businesses.

Workaround: Use onSave rule on job relationships raising an "Warning" message which reminds users to ensure that an HR manager exists at the time of saving job relationships.

See Also

 2090228 - How to submit enhancement requests for SAP SuccessFactors products

Keywords

Business Rule, Job Relationships, Hire, Rehire, Wizard, Add New Employee, Rehire Inactive Employee, Manage Pending Hires, EmpJobRelationsEO, delete HR, ECT-128259, warning, error , KBA , LOD-SF-EC-HIR , Hire & Rehire Wizards , LOD-SF-EC-RUL , DO NOT USE - Business Rules & Event Derivation , How To

Product

SAP SuccessFactors Employee Central all versions