Introduction
In one of the previous article (Generating EText Output From HCM Extracts In Oracle Fusion HCM Cloud Application) we have seen how we can generate EText Data from HCM Cloud Application. One can even get eText Output from BI Publisher Report. But the major limitation in both the approach is that the output file extension is .TXT and one would need other means to have .DAT file.
If the generated file is prepared with the intent of loading the data back into Oracle HCM Cloud Application using HDL one can do same using Loading Data into Oracle HCM Cloud Using Inbound Interface Delivery Option
In this post we will demonstrate how can one generate eText file with .DAT extension from Oracle HCM Cloud Application. However, the only limitation at this point of time is that the .DAT file will be under a zip folder.
For this example too we will use the same “UpdateAssignmentExtract”
We would have two data groups created namely WorkerDataGroup and WorkTermsDataGroup. WorkerDataGroup is the Root Data Group
Some Details related to Data Group are in table below:
DataGroupName |
UserEntity |
DataGroupFilterCriteria |
ExtractRecords |
WorkerDataGroup |
PER_EXT_WORK_RELATIONSHIP_ALL_UE |
(pps.person_id = (select papf.person_id from per_all_people_f papf where trunc(sysdate) between papf.effective_start_date and papf.effective_end_date and papf.person_number = '4177')) |
WorkRelationship |
WorkTermsDataGroup |
PER_EXT_SEC_ASSIGNMENT_UE |
(asg.primary_flag='Y') |
WorkTerms Assignment |
Also we should have the following Connection between the Root Data Group (WorkerDataGroup) and WorkTermsDataGroup
Parent Data Group |
Parent Data Group Database Item |
Child Data Group |
Child Data Group Database Item |
WorkerDataGroup |
Extract Relationship Period Of Service Id |
WorkTermsDataGroup |
Extract Assignment Period of service |
Once we have all these details populated we would need to define the Extract Delivery Options. Details for which are in below table
Attribute Name |
Attribute Value |
Start Date |
1/1/2000 |
End Date |
12/31/4712 |
*Delivery Option Name |
WorkerHDLData |
*Output Type |
Text |
Report |
/Custom/Practice Samples/UpdateAssignmentExtractReport.xdo |
Template Name |
UpdateWorkAtHomeFlag |
*Output Name |
Worker |
*Delivery Type |
Inbound Interface |
Required |
Checked |
Encryption Mode |
None |
Override File Extension |
.dat |
Integration Name |
Worker |
Integration Type |
Data Loader |
Compressed Delivery Group |
UpdateAssignment.zip |
Once we are done with the above setup we will get the output file (Worker.txt for this example) but we are trying to generate .DAT file and so to ensure we get the file with same filename we will have to perform the following steps:
Add a parameter named “Auto Load” to the UpdateAssignmentExtract
Add “Initiate HCM Data Loader” to UpdateAssignmentExtract payroll flow
Add “Auto Load” Parameter to UpdateAssignmentExtract
We would need to add a new parameter. Details of the parameter are in below table
Attribute Name |
Attribute Value |
Sequence |
100 |
Name |
Auto Load |
Tag Name |
Auto_Load |
Data Type |
Text |
Display |
Yes |
*Note: We always have to use ‘N’ as the value of this parameter for this specific scenario or else it will try to load data back into application (which is not the ask here)
Attribute Name |
Attribute Value |
Sequence |
100 |
Name |
Auto Load |
Tag Name |
Auto_Load |
Data Type |
Text |
Display |
Yes |
Add Initiate HCM Data Loader Payroll Flow to UpdateAssignmentExtract Payroll Flow
As a next step we would also need to Add “Initiate HCM Data Loader” Payroll flow as part of UpdateAssignmentExtract Payroll Flow. We can either navigate to Payroll->Checklist->Search for UpdateAssignmentExtract Payroll Flow Pattern or use Refine Extracts->Search for UpdateAssignmentExtract
Once the search results are retrieved we need to click on “Edit” (pencil icon) and choose the following task
*Please make sure to select the payroll flow which has the description of “Generate HCM Data Loader File and optionally perform a Data Load” as the other payroll flow task which has similar name will not serve the purpose here (both have different definition)
Once we add the payroll flow task we should click on “Go To Task” and add the following details:
Initiate HCM Data Loader Task Definition: Basic Information (Data Loader Archive Action) |
|
Name |
Data Loader Archive Action |
Execution Mode |
Submit |
Data Type |
Text |
Parameter Basis |
Bind to Flow Task |
Basis Value |
UpdateAssignmentExtract, Submit , Payroll Process |
Usage |
Input Parameter |
Initiate HCM Data Loader Task Definition: Basic Information (Data Loader Configuration) |
|
Name |
Data Loader Configuration |
Execution Mode |
Submit |
Data Type |
Text |
Parameter Basis |
Constant Bind |
Basis Value |
ImportMaximumErrors=100, LoadMaximumErrors=100, LoadConcurrentThreads=8, LoadGroupSize=100 |
Usage |
Input Parameter |
Now the setup part is complete and we will try running “UpdateAssignmentExtract” and check if a .DAT file gets generated
If we go tot the “Extract Delivery Options” tab we can see all the output files generated.
If we click on “DL_WORKER_1457667” a zip file will get downloaded
And when we unzip the file we can see a .dat file
Summary
So this is how one can get .dat file from Oracle HCM Cloud Application making use of HCM Extracts.
Hope this was useful.
Have a nice day.
Comments
I'll be sure to bookmark it and come back to
read more of your useful information. Thanks for the
post. I'll definitely comeback.
my homepage - bitcoin casino free spins [Michal: http://www.merkadobee.com/user/profile/42610]
RSS feed for comments to this post