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

Introduction

I hope most of you know how to use HCM Data Loader Tool to load data into Oracle HCM Cloud Application and while HCM Data Loader is a great tool to facilitate data load, customers or in general most consultants too are comfortable working with excel files.

Customers are comfortable sharing data into Excel and then there is a need of making changes to the file to convert the file into .dat file which can then be loaded using HCM Data Loader.

However, if there are simple transformation logic which needs to be applied the logic can be applied in a a fast formula of type “HCM Data Loader”. These kind of formula is also referred to as Transformation Formula.

The way the entire process works is:

  1. You get data in a predefined template and either Excel or CSV (most preferred approach , one may choose other file type too, but am not very sure about all supported types. CSV for sure works which is what will be considered here)
  2. Making use of Transformation formula to make transformation to the data
  3. Loading Data using HDL

We will demonstrate the entire process with a worked-out example.

Worked-Out Example

For this example, we would try to load Absence Entry Records into Application. One may choose a different business object if required.

For this example, we use the below data file

 

We will also have to make use of a Transformation Fast Formula. We will call this Transformation Fast Formula as “GENERATE_ABSENCE_ENTRY_HDL_FROM_CSV”

Fast Formula Text

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

* FORMULA NAME: GENERATE_ABSENCE_ENTRY_HDL_FROM_CSV        

* FORMULA TYPE: HCM Data Loader                                       

* DESCRIPTION: This formula will create PersonAbsenceEntry HDL File from CSV File

* CHANGE HISTORY:

*****************************************************************

Version              Date          Created By            Comments

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

1.0                  09-Jun-2020   Ashish Harbhajanka    Initial Version

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

/* Inputs  */

INPUTS ARE  OPERATION (text), LINENO (number),  LINEREPEATNO (number),POSITION1 (text), POSITION2 (text), POSITION3 (text), POSITION4 (text), 

POSITION5 (text), POSITION6 (text), POSITION7 (text), POSITION8 (text), POSITION9 (text), POSITION10 (text), POSITION11 (text)

DEFAULT FOR POSITION1 IS 'NO DATA'

DEFAULT FOR POSITION2 IS 'NO DATA'

DEFAULT FOR POSITION3 IS 'NO DATA'

DEFAULT FOR POSITION4 IS 'NO DATA'

DEFAULT FOR POSITION5 IS 'NO DATA'

DEFAULT FOR POSITION6 IS 'NO DATA'

DEFAULT FOR POSITION7 IS 'NO DATA'

DEFAULT FOR POSITION8 IS 'NO DATA'

DEFAULT FOR POSITION9 IS 'NO DATA'

DEFAULT FOR POSITION10 IS 'NO DATA'

DEFAULT FOR POSITION11 IS 'NO DATA'

DEFAULT FOR LINEREPEATNO IS 1

IF OPERATION='FILETYPE' THEN 

   OUTPUTVALUE='DELIMITED' 

ELSE IF OPERATION='DELIMITER' THEN 

   OUTPUTVALUE=',' 

ELSE IF OPERATION='READ' THEN 

   OUTPUTVALUE='NONE'

ELSE IF OPERATION = 'NUMBEROFBUSINESSOBJECTS' THEN

   (

   OUTPUTVALUE = '1'

   RETURN OUTPUTVALUE

   )

ELSE IF OPERATION = 'METADATALINEINFORMATION' THEN

    (   

METADATA1[1]  = 'PersonAbsenceEntry' /*FileName*/ /*Reserved*/

METADATA1[2]  = 'PersonAbsenceEntry' /*FileDiscriminator*/ /*Reserved*/

METADATA1[3]  = 'PersonNumber'

METADATA1[4]  = 'Employer'

METADATA1[5]  = 'AbsenceType'

METADATA1[6]  = 'AbsenceReason'

METADATA1[7]  = 'AbsenceStatus'

METADATA1[8]  = 'ApprovalStatus'

METADATA1[9]  = 'StartDate'

METADATA1[10] = 'StartTime'

METADATA1[11] = 'EndDate'

METADATA1[12] = 'EndTime'

METADATA1[13] = 'Comments'


RETURN METADATA1

)

   

ELSE IF OPERATION='MAP' THEN 

    /*HDL Related Outputs*/

   (

IF LINEREPEATNO = 1 THEN

IF POSITION1 <> 'PersonNumber' THEN

(  

LINEREPEAT = 'Y'

FileName = 'PersonAbsenceEntry'

BusinessOperation = 'MERGE'

FileDiscriminator = 'PersonAbsenceEntry'

PersonNumber = trim(POSITION1)

Employer = trim(POSITION2)

AbsenceType = trim(POSITION3)

AbsenceReason = trim(POSITION4)

AbsenceStatus = trim(POSITION5)

ApprovalStatus = trim(POSITION6)

/*

StartDate = TO_CHAR(TO_DATE(POSITION7,'YYYY/MM/DD'))

*/

StartDate = trim(POSITION7)

StartTime = trim(POSITION8)

EndDate   = trim(POSITION9)

/*

EndDate   = TO_CHAR(TO_DATE(POSITION9,'YYYY/MM/DD'))

*/

EndTime   = trim(POSITION10)

Comments  = trim(POSITION11)

RETURN BusinessOperation,FileName,FileDiscriminator,PersonNumber,Employer,AbsenceType,AbsenceReason,AbsenceStatus,ApprovalStatus,Comments,StartDate,StartTime,EndDate,EndTime,LINEREPEAT,LINEREPEATNO

)

)

)


ELSE 

   OUTPUTVALUE='NONE'

RETURN OUTPUTVALUE

/* End Formula Text */

 

We would need to register this Fast Formula in Application.

Navigation: Setup and Maintenance->Fast Formula->Create-> Provide Name, Formula Type, Description, Start Date and then add the formula text and compile. Once done the application screen should appear as below:

A screenshot of a cell phone

Description automatically generated

 

In the next step we would have to upload the CSV file to UCM. We have to use “File Import and Export” option.

Navigation: Tools->File Import and Export

A screenshot of a cell phone

Description automatically generated

 

In the next step we would need to use this content id and submit a payroll flow.

Navigation: My Client Groups -> Payroll -> Submit a Flow -> Load Data From File

A screenshot of a cell phone

Description automatically generated

 

Once submitted we should be able to see the status of task too

A screenshot of a cell phone

Description automatically generated

 

Also, we should now be able to view that a Data load process should have triggered.

Navigation: My Client Groups -> Data Exchange -> HCM Data Loader (Import and Load Data)

A screenshot of a social media post

Description automatically generated

 

As a last step, we should perform a verification step

 

Verification

We have loaded Absence Records for Person# 691.

We would now need to verify whether the absence records got loaded. We can verify the same using the following navigation

Navigation: My Client Groups -> Person Management -> Search for Person# 691 -> Manage Records

A screenshot of a social media post

Description automatically generated

 

You can download the files from the below links:

 

GENERATE_ABSENCE_ENTRY_HDL_FROM_CSV_FF.sql

PersonAbsenceEntry.csv


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