Quantcast
Channel: Apps2Fusion Articles
Viewing all articles
Browse latest Browse all 930

Creating a Dynamic Fast Formula Based Extract Rule Attribute for an HCM Extract

$
0
0

Introduction

 

I would request all of the readers to kindly go through the below articles before proceeding with this one (its fine if you are already aware of the concepts..but it may serve as a good refresher too):

 

HCM Extract Components in Oracle Fusion Cloud: An Introduction

 

Using an Extract Rule Type Attribute for a HCM Extract in Oracle Fusion HCM Cloud Application

 

In the above articles we have tried to explain what are the different components of an HCM Extract and also how to use an Extract Rule Type Attribute for an HCM Extract.

 

This article too is about defining a Extract Rule Type Attribute but it has some major enhancements to the previous one (Using an Extract Rule Type Attribute for a HCM Extract in Oracle Fusion HCM Cloud Application ) in sense that while we used to return a static (hardcoded) value from the Fast Formula here we would try to have a dynamic value ( value derived from individual’s details as stored in the database).

 

In this example, we would try to fetch the Length of Service (referred to as LOSInDays from here on) for each individual.

 

We would calculate this details by finding the difference (in days) between the current date and the person’s enterprise hire date.

 

So let’s get started.

 

Fast Formula Details

 

Attribute Name/Label/Prompt

Attribute Value

*Formula Name

GetLOSInDays

*Type

Extract Rule

Description

Calculates the Length of Service In Dates

Legislative Data Group

 

Effective Start Date

1/1/00

Type of Editor

Text

Text

<Check Below Table>

Formula Text

DEFAULT FOR DATA_ELEMENTS IS EMPTY_TEXT_TEXT

INPUTS ARE DATA_ELEMENTS (TEXT_TEXT)

ld_effective_date = GET_PARAMETER_VALUE_DATE('EFFECTIVE_DATE')

ld_emp_hire_date = TO_DATE(SUBSTR(TRANSLATE(DATA_ELEMENTS['ENTERPRISEHIREDATE'],'01234567890:.-TZ', '01234567890:.- '), 1, 19), 'YYYY-MM-DD HH24:MI:SS')


ln_los_in_days = DAYS_BETWEEN (ld_effective_date,ld_emp_hire_date)

RULE_VALUE = TO_CHAR(ln_los_in_days)

RETURN RULE_VALUE

Application Screenshot

 

If we use the below details and create the Fast Formula , save and compile it then the application screen would appear as below:


Viewing all articles
Browse latest Browse all 930

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>