Human Capital Management Blogs by Members
Gain valuable knowledge and tips on SAP SuccessFactors HCM suite and human capital management market from member blog posts. Share your insights with a post of your own.
cancel
Showing results for 
Search instead for 
Did you mean: 
KumarSF
Participant

1          Mission/requirement


The requirement is to send an alert message to Manager and HRBP before 90 and 30 days respectively for an employee.

 

This can be achieved in two ways

  1. Create a custom field Retirement Date and populate at the time of Hiring/onboarding

  2. Using a Custom MDF object to store and trigger the alert.


 

In this document, 2nd method is used to trigger the alert before the retirement due date.

 

2          Retirement Due Date Alert


A Retirement Due Date alert is used to provide a heads up to the manager & HRBP in the form of a to-do alert and a mail notification 30 and 90 Days before the employee’s Retirement Due Date respectively.

 

Here is a list of Objects and steps needed to create the alert.   

 

1. A Custom MDF Object

A custom MDF object to store employee's original date of birth and Retirement Due Date which is calculated using a Business Rule


2. Workflow Notifying the Manager and HRBP

When conditions in the alert rule are met, the workflow created here will be triggered to notify the manager and HRBP about the upcoming Retirement Due Date.


3. Custom Alert Message

Create a unique alert message used for alerting the Manager and HRBP about employee’s Retirement Due Date. This message is shown in a to-do tile and in the form of a notification email.


4. Creating an onSave Rule to Populate the Retirement Due Date of This Year

This rule is assigned to the custom MDF object as an onSave rule, populating the Retirement Due Date based on employees' original date of birth.


5. Creating a Post Save Rule to Trigger Workflow and Alert

Create this rule and assign it to the custom MDF object to trigger the workflow as well as the alert message.


6. Assigning the Rules to the Custom MDF Object

The onSave and Post Save rules created must be assigned to the custom MDF object to ensure that Retirement Due Date data is processed for all the instances of that object.


7. Scheduling an Integration Job to Fetch Retirement Due Date Data

A scheduled integration job automatically fetches data of two fields in Biographical Information and passes the data to mapped fields of the MDF object.


8. Running an EC Alerts and Notifications Job in Provisioning

When you start an EC Alerts and Notifications job in Provisioning, it first queues up and then gets executed, triggering all pending alerts.


9. Verifying That the Retirement Due Date Alert Has Been Successfully Created

By checking the to-do tile or incoming emails, you can verify that the Retirement Due Date alert has been successfully created.


 

2.1         Creating a Custom MDF Object



A custom MDF object is created which can store employee's original date of birth and populate Retirement Due Date with help of a business rule.

 

MDF Creation Process:

 

  1. Go to Configure Object Definitions and choose to create a new object.

  2. Name the object, set Effective Dating to None and Data Type of externalCode to User.



  • Add two date fields and give them meaningful names, in this case used the below names and what each of the fields is expected to store.


 


















Field Usage Data Type
Cust_EMP_DOB Stores the data of birth Date
Cust_RetirementDate Stores the Retirement Due Date, calculated and stored with help of a Business Rule from the original date of birth Date


 


 

Note: The custom MDF object is created here, the Save Rules and Post Save Rules have to be added once the required Business Rules are created.

 

2.2         Creating a Workflow Notifying the Manager and HRBP


When conditions in the alert rule are met, the workflow will be triggered to notify the employee, manager and HRBP about the upcoming Retirement Due Date.

 

Workflow Creation Procedure:

  1. Go to Manage Organization, Pay and Job Structures, and choose to create a workflow.

  2. Name the workflow appropriately, in our case named as “ALT_Retirement_WF”



  • Choose Role as Approver Type and HRBP as Approver Role for Step 1. A To-do item will be updated by adding an approver here (The To-do item will be created to all the Approvers here in the workflow, set the approvers as per requirement)



  1. Select HRBP, Manager and self appropriately under CC Role Type and CC Role (They will only get a notification mail)

  2. Keep values of other fields unchanged and save the workflow.



 

 

 

 

2.3         Creating a Custom Alert Message


Create the alert message which will be sent to the Employee, Manager and HRBP regarding the upcoming Retirement Date of an employee.

 

Alert Message Creation Process:

  1. Go to Manage Data and choose to create an alert message.

  2. As we are setting up two alerts (30 and 90 Days) before retirement date, two alerts were created.



  • Name the alert message, here in this example we used - ALT_Retirment_Before30 Days & ALT_Retirment_Before90 Days



  1. Specify a unique external code and keep Active as the effective status.

  2. Use the [[SUBJECT_USER]] in your message header and description to personalize your message.



 

 

 

 

 

2.4         Creating an onSave Rule to Populate the Retirement Due Date


This rule is assigned to the custom MDF object as an onSave rule, populating the Retirement Due Date based on employees' date of birth.

 

Business Rule(onSave) creation procedure:

  1. Go to Configure Business Rules and choose to create a Metadata Framework MDF) rule.

  2. Name the rule, choose the custom MDF object (CuctomRetirement_Date) already created as the base object and choose Evaluate as the purpose.



  • Add client specific conditions in the if statement eg: Based on DOJ the retirement date to be calculated 60 Years and 65 years etc.



  1. Define the Then statement as follows


 

  • If the retirement age is 60 years:





  • If the retirement age is 65 years:



 

 

2.5         Creating a Post Save Rule to Trigger Workflow and Alert


A Post Save Rule is created and assigned to the custom MDF object to trigger the workflow as well as the alert message created in earlier steps.

 

Business Rule (Post Save) creation procedure:

  1. Go to Configure Business Rules and choose to create a Metadata Framework (MDF) rule.

  2. Name the rule, choose the custom MDF object created earlier as the base object and choose “Alert” as the purpose.



  • Define the If and Then statements as follows for 30days alert





  • Define the If and Then statements as follows for 90 days alert



 

 

 

 

 

2.6         Assigning the Rules to the Custom MDF Object


The onSave and Post Save rules created must be assigned to the custom MDF object to ensure that Retirement Due Date Rules are processed for all the instances of that object.

 

Procedure to Assign Post Save Rule to MDF Object

 

  1. Go to Configure Object Definitions

  2. Search for the MDF object you created in the first step



  • Assign the following two rules to the MDF Object


○   The onSave rule: Choose it in the Save Rules dropdown list.
○   The Post Save rule: Choose it in the Post Save Rules dropdown list.

  • Save the changes to your object definition.



 

 

 

 

2.7         Scheduling an Integration Job to Fetch Birth Date to calculate Retirement Date


A scheduled integration job automatically fetches data of two fields in Biographical Information and passes the data to mapped fields of the MDF object i.e the Employee DOB and Employee ID

 

Creating a Schedule to run Integration Job

  1. Go to Integration Centre and chose My Integrations – Create More Integration Types

  2. In the window that appears, choose Scheduled as the trigger type, SuccessFactors as the source type, SuccessFactors as the source destination, and OData v2 as the format

  3. In the next page, select Biographical Information (PerPerson).

  4. Name the integration job.

  5. Prepare for the mapping by choosing the elements or actions highlighted below:



6. Choose the plus sign icon under Destination Fields to add your custom MDF object i.e. CUST_CustomRetirement_Date


7. Map the following two pairs of fields. You can drag the fields in the left column and drop them on their counterparts in the right column.


○   Date Of Birth (dateOfBirth) DateTime > Emp_DOB (cust_EMP_DOB) DateTime


○   User ID (userID) String(100) under employmentNav (to Employment Details (EmpEmployment)) >  externalCode String(100)



 

  • In the scheduling step, choose daily frequency and select an appropriate time, ideally a time when the system workload is less/minimal.

  • Save and Run the Job


 

2.8         Running an EC Alerts and Notifications Job in Provisioning


When you start an EC Alerts and Notifications job in Provisioning, it first queues up and then gets executed, triggering all pending alerts.

Procedure to Run the Alerts and Notifications Job

1. Go to Provisioning > Managing Job > SchedulerManage Scheduled Jobs

2. Find an EC alerts and notifications job and run it now.

 

2.9          Sample Mail Alert post the creation of Alert


 

When the Alerts and Notifications Job is run, the matching records will have a To Do item created and an email message will be sent to Employee, Manager and HRBP.

 

The sample of email alert attached below:


The To Do alert is created as below:

 


Kindly note – For a large number of employees, integration center will full purge the data and create new data on a daily basis. Thus might take time for the job to run hence it is recommended to schedule the job when the server load is minimal.

Thank you for reading the blog (My first attempt),  request your feedback on the above configuration. Kindly let me know in case of any limitation which I will try to overcome in future.

 

Regards,

Vinod Bachu
20 Comments
former_member881
Participant
vinodbachu,

Tkx for sharing this tip.
former_member25089
Participant
Very nice Vinod... Useful information
KumarSF
Participant
0 Kudos
Thank you Antonio.
KumarSF
Participant
0 Kudos
Thank you Tejas.
smitajalit
Product and Topic Expert
Product and Topic Expert
Detailed and very informative!
KumarSF
Participant
0 Kudos
Thank you Smita.
parthu6
Participant
Nice blog Vinodh.
KumarSF
Participant
0 Kudos
Thanks Partha.
parthasarathy
Explorer
Good one Vinod!! Details put together quite well, handy info...
KumarSF
Participant
0 Kudos
Thanks a lot Partha.
Efeoghene
Explorer
0 Kudos
Hi Vinod,

After following the steps, I tried to do a simulation but I'm getting an error on the integration center:



The fields have been created on the MDF object



 

The first integration job produced the export below


 

Any ideas how I could fix this?

Thanks in advance
jimzhou
Explorer
0 Kudos
Hi vinodbachu,

Can the Alert message Show link redirect employee profile to see the employee information
Vaishnavi_10
Participant
0 Kudos
Hi Vinod,

 

Thanks for sharing this blog!  I tried this, integration job is fetching dependents information too. Can we restrict this.
KumarSF
Participant
0 Kudos
HI,

Hope you have fixed the integration between emp user id in employmentnav to your custom object? I mean both the objects should be mapped based on the user id.
KumarSF
Participant
0 Kudos

Hi Vaishavi,

Do you mean, DOB of dependents is flowing into your cust object?

KumarSF
Participant
0 Kudos
Not sure if the Link tag can be used here. Please confirm if you test the same.
ChrisImplenia
Explorer
0 Kudos
Hi Vinod,

I'm not sure to understand the need of a custom portlet for that scenario.

You know the age, you have the number of year he needs to work so you get the date he retired. You can have this logic build in the rule (even make distinction between different criteria) without any custom portlet.

Thanks,

Christopher
AnastasiaPap
Discoverer
0 Kudos
Good Morning Vinod,

many thanks for the detailled Information. Do you know if it is possible to have different dates for the field  "expected retirement date" accordning to different countries/ Legal entities? The expected Retirement date in eg Germany is another one than in Spain, US, etc.

 

Many Thanks in advance.

Anastasia.
shilpagowda
Discoverer
0 Kudos
Hi Vinod

Can the same steps be used to create alert the HR Manager 1. LTD premiun to end 6 months before 65th birthday. LTD to be terminated at the age of 65.

 

2. How a business rule is configured to get benefit eligibility between 65 to 70 years.

Thank you
siyamndebele
Explorer
0 Kudos

Hi I tried the steps but the notification is not getting triggered.

On the age business rule I can not set the if condition only the then codition

siyamndebele_0-1710412652841.png

Can you advise on what could be the issue.

Many Thanks

Labels in this area