Login
Register

Home

Trainings

Fusion Blog

EBS Blog

Authors

CONTACT US

Fusion Blog
  • Register

Oracle Gold Partners, our very popular training packages, training schedule is listed here
Designed by Five Star Rated Oracle Press Authors & Oracle ACE's.

webinar new

Search Courses

Business Requirement

High Level Business Requirements:

  1. Plan should be created as on 01/01/1951
  2. All employees should get enrolled into plan from there hire date
  3. Frontloaded plan with Total Yearly Accrual of 24 days
  4. Plan Balance should be visible on hire date
  5. Employee should only be able to apply absence after completing 50 Calendar days in organization

Evaluating Options

 

Options

Employee Enrolment on Hire Date

Employee Plan Balance Visible on Hire Date

Employee Able to Apply Absence after completing 50 Calendar Days

Comments

Using Waiting Period

No

No

Yes

Enrolment date will be 50 days after Hire Date and Plan Balance would not appear on hire date

Using Vesting Period

Yes

No

Yes

Plan Balance would not appear on hire date

Global Absence Entry Validation Fast Formula

Yes

Yes

Yes

Absence Type will be visible from day one and error is thrown if absence recording is attempted before completion of 50 days

Eligibility Formula on Absence Plan

No

No

Yes

Enrolment date will be 50 days after Hire Date and Plan Balance would not appear on hire date

Eligibility based on length of Service Derived Factor on Absence Type

Yes

Yes

Yes

Absence Type will only be visible after completion of 50 days and error will be thrown if absence recording is attempted prior to 50 days (via HDL / REST) but back-dated absence entry from UI will be possible

 

Based on above table we could see that there are only two methods (namely Global Absence Entry Validation Formula approach or Eligibility based on length of Service Derived Factor on Absence Type approach where all rules are satisfied.

However, both of them have their pros and cons which are:

If you use Global Absence Entry Validation approach the absence type will be visible from day one but the benefit is that it will restrict absence recording via all ways (UI Entry / HDL / REST..etc)

On the other hand using the Eligibility based on length of Service Derived Factor on Absence Type the advantage is that the absence type will only appear for employees who have completed 50 days in organization but once the Absence Type is visible one might still go ahead and make a back dated entry.

But if we combine both the approach then I guess it would be the best solution.

We will demonstrate two options here:

  1. Approach 1 – Assigning Only Eligibility Profile
  2. Combined Approach – Attaching Both Eligibility Profile and Validation Formula

Note: We are not demonstrating the approach of only assigning the Validation Formula as in many cases business users should not view the Absence Type itself if they are not eligible. No point making the Absence Type visible and then throwing an error during Absence Recording ( this still can be a approach but probably not the preferred one)

Pre-Requisite Setup

We would need to have some basic setups to be done which will be common irrespective of the approach we follow.

These setups include:

  1. Creating Absence Plan
  2. Creating Absence Type

Creating Absence Plan

We will create an Absence Plan with following attributes:

Plan Name: Paid Absence

Legislation: US

Plan Type: Front-loaded , Yearly Repeating Period Accrual of 24 days

Enrolment Rule : As of Event

Plan Term : Calendar Year (Jan-Dec)

A screenshot of a social media post

Description automatically generated

Creating Absence Type

Create an Absence Type (say paid Absence) which will be effective from 01/01/1951 and available for US Legislation and associate the plan created above with this absence type.

A screenshot of a social media post

Description automatically generated

 

Nest we will need to create:

  1. Custom Message
  2. Custom Global Absence Entry Validation Fast Formula
  3. Eligibility based on length of Service Derived Factor on Absence Type

Creating Custom Message

We will create a custom message (namely ANC_NOT_COMPLETED_50DAYS_ERR) which will have following details

Message Name: ANC_NOT_COMPLETED_50DAYS_ERR

Message Number: 100000001

Message Type: Error

Application: Absence Management

Module: Absence Recording

Short Text: You can only record this absence after completing 50 days in the organization.

A screenshot of a social media post

Description automatically generated

 

Creating Global Absence Entry Validation Fast Formula

We will create a custom fast formula (PAID_ABSENCE_VAL) and the formula text details will be as below:

PAID_ABSENCE_VAL (Formula Text)

/******************************************************************************

FORMULA NAME: PAID_ABSENCE_VAL

FORMULA TYPE: Global Absence Entry Validation

DESCRIPTION: Validation Formula to ensure no absences are entered 

             before completing 50 days in organization (from Hire Date)

Change History:

Name               Date         Version  Comments

-----------------------------------------------------------------------

Ashish Harbhajanka     27-Aug-2020    DRAFT 1A   Initial Version

**********************************************************************/

DEFAULT FOR IV_START_DATE IS '4712/12/31 00:00:00' (date)

DEFAULT FOR IV_END_DATE IS '4712/12/31 00:00:00' (date)

DEFAULT FOR IV_START_TIME IS '00:00'

DEFAULT FOR IV_END_TIME IS '23:59'

DEFAULT FOR PER_PER_LATEST_REHIRE_DATE IS '1951/01/01 00:00:00' (date)

DEFAULT FOR GLOBAL_PAY_INTERFACE_EXTRACTION_DATE is '1951/01/01'


INPUTS ARE IV_START_DATE (date), 

  IV_END_DATE (date), 

  IV_START_TIME(text),

  IV_END_TIME(text)

   

ld_current_date = TO_DATE(GLOBAL_PAY_INTERFACE_EXTRACTION_DATE)

ld_latest_hire_date = PER_PER_LATEST_REHIRE_DATE

ln_los_in_days = DAYS_BETWEEN(ld_current_date,ld_latest_hire_date)

lc_valid = 'Y'


IF (ln_los_in_days < 50)

THEN

(    

VALID = 'N'

ERROR_MESSAGE = 'ANC_NOT_COMPLETED_50DAYS_ERR'

RETURN VALID,ERROR_MESSAGE

)


VALID = lc_valid

RETURN VALID

 

A screenshot of a social media post

Description automatically generated




Eligibility based on length of Service Derived Factor on Absence Type

We will need to create a “Derived Factor” ( we will name it 50 Days+) and attach it to Paid Absence Eligibility.

Navigation to create Derived factors is: Setup and Maintenance -> Derived Factors-> Length of Service-> Create

 

We will attach this derived factor to “Paid Absence Eligibility” Eligibility profile.

A screenshot of a social media post

Description automatically generated

 

Now, we will create two new employees one with hire date as 01-Jul-2020 (here Length of Service is greater than 50 days, employee number 4665) and one with hire date as 01-Aug-2020 (here Length of service is less than 50 days, employee number 4666).

A screenshot of a social media post

Description automatically generated

Approach 1: Only Associating Eligibility Profile to Absence Type

We will only associate Eligibility Profile to “Paid Absence” Absence Type as shown below:

 

Also we can check both the employees (Emp#4665 and Emp#4666) have got enrolled into “Paid Absence” Absence  plan as of their hire date and both of them have an accrual balance (after running Calculate Accruals and Balances scheduled process)

 

A screenshot of a social media post

Description automatically generated

 

Also, similarly if we check the absence recording page for both employees we should see that while Absence Type of Paid Absence is visible for Emp#4665 it is not visible for Emp#4666

 

Now since we are unable to view “Paid Absence” Absence Type for Emp#4666 we will not be able to record absence for this employee from UI but let us check can we record absence for this employee via HDL.

But if we navigate to the person record Emp#4666 on a future date (say 30-Sep-2020) and try to do a back dated booking of 27-Aug-2020 (when the employee has not completed 50 days) we are able to successfully submit the absence (which is against the business rules defined in the beginning).

Approach 2: Associating both Eligibility Profile and Validation Formula

In this case we will associate both the Eligibility Profile and Validation Fast formula to “Paid Absence” Absence Type 

A screenshot of a social media post

Description automatically generated

Now, if we try to navigate to Emp#4666 as on a future date say (30-Sep-2020) 

A screenshot of a cell phone

Description automatically generated

 

A screenshot of a cell phone

Description automatically generated

 

Now If I try to perform a back-dated absence entry (say 20-Aug-2020) then I should not be allowed to record the absence (as the employee has not completed 50 days on the absence start date)

 

And we have accomplished this by using the Entry Validation Formula, if the Validation Formula would not have been attached then this entry would have gone through.

Absence Recording Via HDL File

We will take two absence records (per employee) with one absence record for today’s date (28-AUG-2020) and other for Future Date (30-SEP-2020) 

A screenshot of a cell phone

Description automatically generated

 

A screenshot of a social media post

Description automatically generated

 

And if we check the error details we would see that the absence records for Emp#4666 have failed (which is correct and aligned to our business rules)

 

Summary / Conclusion

So, this is how we can make use of both Eligibility Profile and Entry Validation Formula to ensure absence recording is not allowed via any mode (be it through UI or HDL / SOAP / REST / Web Service).

While in this example, I have used the 50 days restriction rule but can easily use any number ( any number of days instead of 50 days).

And with this I have come to the end of the article, I hope this was a good read.

Thanks all for your time have a great day ahead.

 

Downloadable Files:

PersonAbsenceEntry_4665_4666)Current_Future.zip

PersonAbsenceEntry.dat

PAID_ABSENCE_VAL_FF


Ashish Harbhajanka

Add comment


Security code
Refresh

About the Author

Ashish Harbhajanka

 

Oracle Fusion HCM Techno Functional Consultant with overall 10 years of Experience in software industry with 5 years in EBS HRMS and rest 5 in Fusion HCM.

My areas of intesrest in Fusion HCM include :

a) Inbound Outbound Integration using FBL/HDL or BIP/HCM Extracts.

b) Fast Formula

c) BIP Reports

d) OTBI Reports

e) RESTFUL API / Web Service Call

f) Functional Setup

g) End to End Testing

h) Regression Testing

i) Preparing COnfiguration Workbooks

j) Creating Speed Solutions

k) Preparing User Guides

l) UPK

........

Search Trainings

Fully verifiable testimonials

Apps2Fusion - Event List

<<  Apr 2024  >>
 Mon  Tue  Wed  Thu  Fri  Sat  Sun 
  1  2  3  4  5  6  7
  8  91011121314
15161718192021
22232425262728
2930     

Enquire For Training

Fusion Training Packages

Get Email Updates


Powered by Google FeedBurner