Wednesday, 28 April 2021 19:43

How to automatically apply employee time/Absences for Birthdays/Marriage Anniversaries.

Written by Pradeep Kumar Goriparthi
Rate this item
(0 votes)
“© 2020. SAP SE or an SAP affiliate company. All rights reserved.” “Used with permission of SAP SE”

As all of us know, most of the companies are offering leaves to their employees on their birthdays (or) marriage anniversaries to encourage their employee to spend the time on special days with family (or) friends.

In same context from multiple customers there is requirement to apply this kind of leave automatically before certain number of days and now lets take a look how do we achieve this.


  1. MDF object
  2. One Save Rule to create current year marriage anniversary date based on Marriage anniversary date. For Example :- if employee birthday is on 17/July/1987, then this rule will create the current year marriage anniversary date as 17/July/2021.
  3. Two Integration Center Jobs
    1. Integration center Job to get the information from Personal Info to MDF object.
    2. Another Integration center job to create the absence/employee time based on MDF data.

Now lets check the configurations: –

Step 1:-

Create MDF with below fields.

  1. External code :- Configure it as User filed (Add name of you choice, I am using it as dummy field ?)
  2. Marriage anniversary Date : – This date will flow from personal information and update here on daily basis.
  3. Current Year Marriage Date : – This fields will be updated automatically as per current year based on business rule assigned in “Save rules” section of MDF Object.

     4.  Trigger Date:- This filed also will be updated automatically based on client requirement by another save rule (you can use the same rule which is written for above field also but different set conditions).

5. (ET EC) Another String Field for store employee time external code :- In this field I will generate  employee time external code and will use while creating the absence automatically (you can use the same rule which is written for above field also but different set conditions).

Step 2:-

FYI – Here is my rule with all of 3 set conditions in single rule.

Step 3: –

Now we need to take 2 eggs, 1 medium size onion, 3 green chilis, salt, pepper and 1 table spoon of oil to make an omelet (you can customize as per your needs) to refresh ourselves and take breath ?.

Step 4:-

Integration Job 1:-

This job will get all employee marriage anniversaries form personal information to MDF and only 3 fields we need to map.

  1. User Id from Employment details > External code in
Continue reading here
Read 39 times

Leave a comment

Make sure you enter all the required information, indicated by an asterisk (*). HTML code is not allowed.