SAP Knowledge Base Article - Public

3405581 - Unable to retrieve the payCompvalue in Manage pending hire (Accept Match) , Contingent worker to Employee (Rehire with new Employment)

Symptom

Onsave rule on Job Information which works in Add New Hire wizard is unable to retrieve paycompvalue from cross entity rule (JobInfo.EmploymntDetails.Compensation) in Manage Pending hires in which the users are hired from Onboarding1.0.


We also observe that the same issue is observed when the contingent worker is being rehired as employee through Rehire with New Employment option.


Rule trace example: The expression 'jobInfoModel.employmentInfoModel.payComponentRecurring(#pay_component, ==, ABC#)[0].paycompvalue' is considered to be NULL. 

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
  • Add New Employee
  • Contingent Workforce
  • Business Rules

Reproducing the Issue

  1. Configure rule to raise error message if Pay Component.Amount value is “null”.
  2. Go to Manage Pending Hire > Onboarding.
  3. Fill the Event Reason, Legal Entity, Name.
  4. Duplicate check popped up > Click Accept Match.
  5. Add Pay Component: A and amount value: 1234
  6. Click Submit > Error is shown.

OR

  1. Configure rule to raise error message if Pay Component.Amount value is “null”.
  2. Go to Add New Employee.
  3. Fill the Event Reason, Legal Entity, Name.
  4. Duplicate check popped up > Click “Rehire with New Employment”.
  5. Add Pay Component: A and amount value: 1234
  6. Click Submit > Error is shown.

A sample rule:

Resolution

Engineering Team have done a detailed analysis of the issue and categorized it into different scenarios as explained below.

Let's consider the following scenario:

If it is Onboarding 2 candidate: They already have PCR input, for example, baseSalary=$10
If it is Rehire candidate: They have previous PCR, for example, baseSalary=$10
If it is Onboarding 1, Preday1 candidate: They don’t have PCR but the Onboarding 1 can pass pre-fill PCR through mapping. 

  • Preday1 enabled: Currently the transaction goes through legacy code and Centralized Services do not come into play.  
    • Currently there is no issue when the Pay Component is either not pre-filled from Onboarding (value is null) or we add the Pay Component in the Hire UI with value 0 or we change the value of existing PCR from 10 to 0. The error message from the rule is shown as expected.
    • The issue in 2H 2023 release is that the message from the rule is shown even if the Pay Component's value is maintained (for example, Base Salary = 10). This issue will be resolved in 1H 2024 release, hence the message will not be shown as expected. 

  • Transaction through Onboarding 2 OR Core Rehire (Rehire with same employment):
    • When Centralized Services switch "Enable Centralized Services to Add New Employee, Add New Employee for Fixed Term, and Rehire Inactive Employee" is disabled:
      • No message is shown (as expected) when the Pay Component's value is maintained (for example, Base Salary = 10).
      • The message is not shown in 2H 2023 release when you change a Pay Component's value from 10 to 0 which is incorrect behavior. This will be fixed in 1H 2024 release, hence the message from the rule will be shown.
      • If the existing Pay Component is deleted, the error message should be shown, but it's not shown in 2H 2023 release. The behavior is not changed in 1H 2024 release either. 
      • No message is shown (as expected) when there's already a PCR with value 10.
    • When Centralized Services switch "Enable Centralized Services to Add New Employee, Add New Employee for Fixed Term, and Rehire Inactive Employee" is enabled:
      • No message is shown (as expected) when the Pay Component's value is maintained (for example, Base Salary = 10).
      • The message is shown (as expected) when the Pay Component's value is 0.
      • If all Pay Components are deleted, no message is shown. If at least one Pay Component is retained and other Pay Components are deleted, the message is shown as expected.
      • No message is shown (as expected) when there's already a PCR with value 10.

  • Rehire as new employment (through Recruiting or Employee Central): 
    • When Centralized Services switch "Enable Centralized Services to Add New Employee, Add New Employee for Fixed Term, and Rehire Inactive Employee" is disabled:
      • No message is shown (as expected) when the Pay Component's value is maintained (for example, Base Salary = 10).
      • No message is shown in 2H 2023 release when the Pay Component is either not pre-filled or we add the Pay Component in the Hire UI with value 0 or change existing PCR value from 10 to 0. This issue will be resolved in 1H 2024 release, hence the message will be shown as expected. 
    • When Centralized Services switch "Enable Centralized Services to Add New Employee, Add New Employee for Fixed Term, and Rehire Inactive Employee" is enabled:
      •  Message is shown (as expected) when the Pay Component is either not pre-filled or we add the Pay Component in the Hire UI with value 0 or change existing PCR value from 10 to 0.
      • No message is shown (as expected) when the Pay Component's value is maintained (for example, Base Salary = 10).

  • Rehire through RCM (same employment):
    • When Centralized Services switch "Enable Centralized Services to Add New Employee, Add New Employee for Fixed Term, and Rehire Inactive Employee" is disabled:
      •  No message is shown (as expected) when the Pay Component is either not pre-filled or we add the Pay Component in the Hire UI with value 0; though ideally the message should be shown. The behavior is not changed in 1H 2024 release either. 
      • No message is shown when the Pay Component's value is changed from 10 to 0. This issue will be resolved in 1H 2024 release, hence the message will be shown as expected. 
      • No message is shown (as expected) when the Pay Component's value is maintained (for example, Base Salary = 10).
    • When Centralized Services switch "Enable Centralized Services to Add New Employee, Add New Employee for Fixed Term, and Rehire Inactive Employee" is enabled:
      •  No message is shown when the Pay Component is either not pre-filled or we add the Pay Component in the Hire UI with value 0; though ideally the message should be shown. The behavior is not changed in 1H 2024 release either. 
      • Message is shown (as expected) when the Pay Component's value is changed from 10 to 0.
      • No message is shown (as expected) when the Pay Component's value is maintained (for example, Base Salary = 10).

Workaround: You can disable the rule(s) temporarily to complete the hire process until a resolution is found. 

OR

Recreate the business rule with compInfo model base object and access Pay Component Recurring from compInfo. You can add the rule as onSave under compInfo element in BCUI. 

Keywords

KI2311, b2311, onSave, message, null, blank, INC6691098, CS20230006601195, ECT-228455 , KBA , LOD-SF-EC-HIR-RIE , Rehire Inactive Employee , LOD-SF-EC-CWF , Contingent Workforce , Product Enhancement

Product

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