Getting Started with HCM Extract


Options



Before You Begin

Purpose

The purpose of this training is to create an extract which will allow you to become familiar with the HCM Extract features and user interface.

Time to Complete

Creating this extract should take three hours for a beginner.

Scenario

Fast Bark is a global organization with subsidiaries all over the world. It requires a headcount report with department and employee details. The employee information needs to be grouped at each department level. To generate this report, Fast Bark must define an extract and run it using the HCM Extract tool within Fusion HCM.

Context

This Extract consists of 2 data groups (i.e. Departments, Employees), which consists of few records in each block and different type of data elements.

design_pseudocode
Design Pseudocode

What Do You Need?

Oracle BI Publisher MS Word plug-in is required. The plug-in can be downloaded at the Oracle BI Publisher download page (http://www.oracle.com/technetwork/middleware/bi-publisher/downloads/index.html ).

Creating a Fast Formula

Fast Formula Creation is outside of the scope of extract creation, but is necessary to create our FastBark Extract.

  1. In the Settings and Actions Menu, click Setup and Maintenance:

    Setup and Maintenance
  2. Search for manage fast formulas:

    Search for manage fast formulas
  3. Click Manage Fast Formulas:

    Setup and Maintenance
  4. On the Manage Fast Formulas Page, click Create:

    Create Fast Formula
  5. In the Create Fast Formula dialog box enter the following properties:

    Fast Formula Properties

    PropertyValue
    Formula NameFast Bark Tax Rule
    TypeExtract Rule
    Effective Start Date8/1/1999

    Click Continue

    Create Fast Formula
  6. Add the follwing formula text:

    Default for PER_ASG_MARITAL_STATUS is ' '


    IF PER_ASG_MARITAL_STATUS = 'S' THEN

    RULE_VALUE = '20'

    ELSE IF PER_ASG_MARITAL_STATUS = 'M' THEN

    RULE_VALUE = '10'

    ELSE

    RULE_VALUE = '15'


    RETURN RULE_VALUE

    Formula Text
  7. Click Save:

    Save FF
  8. Click Compile:

    Compile
  9. click OK:

    OK
  10. Click Refresh to update the Compile Status:

    Refresh
  11. When the compilation has finished successfully click Done:

    Done

Creating a Value Set

Value Set Creation is outside of the scope of extract creation, but is necessary to create our FastBark Extract.

  1. In the Settings and Actions Menu, click Setup and Maintenance:

    Setup and Maintenance
  2. Search for manage value set:

    Search for manage value set
  3. Click on Manage Value Sets:

    Click Manage Value Sets
  4. Click create to create a new value set:

    Create a new value set
  5. Enter the following properties:

    Value Set Properties

    PropertyValue
    Value Set CodeXX_Fast_Bark_Departments
    ModuleExtract Definition
    Validation TypeTable
    Value Data TypeCharacter
    From Clausehr_org_unit_classifications_f hac, HR_ALL_ORGANIZATION_UNITS_F org, hr_organization_units_f_tl haotl
    Value Column Namehaotl.name
    Description Column Namehaotl.name
    ID Column Namehaotl.name
    Where Clauseorg.organization_id = hac.organization_id
    AND org.organization_id = haotl.organization_id
    AND haotl.language = USERENV('LANG')
    AND hac.classification_code = 'DEPARTMENT'
    Order By Clausehaotl.name

    Click Save and Close:

    Save and Close value set

Creating an Extract

  1. Click the navigator:

    Navigator Menu
  2. 1) Click on the [My Client Groups] Data Exchange workarea:

    Data Exchange Navigator Menu Option
  3. Click HCM Extracts:

    Tasks
  4. In the Actions menu, click Manage Extract Definitions:

    Tasks menu item Manage Extract Definitions
  5. On the Manage Extract Definitions screen, click Create:

    Create Extract
  6. Provide a name for the extract definition, and select the type of extract and click OK:

    Name: XX FastBark

    Type: HR Archive

    Create Extract Definition Dialog: Click OK
  7. The extract has been created:

    Manage Newly Created Extract Definition Screenshot

Creating a Parameter

  1. On the Extract Define page, click Add to add a new parameter:

    Add Parameter
  2. Add the following properties:

    Parameter Properties

    PropertyValue
    NameDepartment
    Tag NameDepartment
    Data TypeText
    Display FormatValue Set
    LookupXX_Fast_Bark_Departments
    DisplayYes
    Oracle headquarters buildings

    Click Save

Design Extract

Create Extract Data Groups

Data groups are defined with a user entity which is like a table. You make records with user entity information called attributes which are like table columns.

  1. Navigate to the design page:

    Link to design page
  2. The data group editor is automatically opened and this is where you create the Root Data Group:

    Create Data Group
  3. The root data group we will create will be the Departments data group.

    Name the data group Departments.

    Department Data Group
  4. Click Advanced to search for the appropriate User Entity:

    Click Advanced to access the user entity selector

    The Select User Entity dialog will open.

    Select User Entity dialog
  5. Search for Organizations and Click OK:

    Select Organizations User Entity
  6. The user entity PER_EXT_SEC_ORGANIZATION_UE is now present for the Departments Data Group. Click Save:

    Save Departments Data Group

    The Departments data group will appear in the object list, replacing the generic root data group placeholder.

    Departments Data Group
  7. Right click the folder next to the Departments data group to get the action menu and click Add Child Data Group:

  8. Create a second data group with the following properties:

    Data Group Properties

    PropertyValue
    NameEmployees
    User EntityPER_EXT_SEC_ASSIGNMENT_BASIC_UE
    Threading Database ItemExtract Assignment ID

    Click Save:

    Oracle headquarters buildings

    Click Save

    The extract data groups have been created successfully.

    Extract Data Groups

Create Data Group Connections

Data group connections allow you to define the parent-child relationship between the data groups.

  1. On the Employees data group block click Connect Data Groups:

    Connect Data Groups chain link

    Note: There is a recommended connection DBI, but we will be using different DBIs. Ensure your connection DBI is accurate for your user entities.

  2. Insert the follwing properties:

    Data Group Properties

    PropertyValue
    Parent Data Group Database ItemExtract Organization ID
    Database ItemExtract Assignment Department ID

    Click Save:

    Save data group connection

Adding Data Group Filter Criteria

Extract data group filters filter data extracted in the data group. You can specify to filter data group as an expression or as fast formula, and you can choose one or both. You can build criteria using the available database items, parameters and operators (conditional and logical). The filter criteria will be more efficient as it gets appended to the User Entity SQL at the time of execution. If you can't specify the criteria as an expression, then you can place logic inside a fast formula which will not be as efficient. Fast formulas return values of Y or N to indicate if you must extract the record or not. If both criteria and formula are specified, then both the conditions are applied.

  1. Click Data Group Filter Criteria in the Departments data group:

    Data Group Filter Criteria
  2. Click Edit:

    Oracle headquarters buildings
  3. Select Extract Organization Classification Code from the Database Item Name selection and click add to add it to the filter criteria:

    Add selected dbi to the filter criteria
  4. Select the equals symbol (=) from the operators selection and click add to add it to the filter criteria:

    Add selected operator to the filter criteria
  5. Type or paste 'DEPARTMENT' into the constant field and click Add Constant:

    Oracle headquarters buildings
  6. Click Calculate Rows:

    Calculate Rows

    This step is not required, but it is a good way to test for syntax errors. If your formula is correct you should see a positive result. If your formula is incorrect you should see a -1.

    Calculate Rows Result
  7. Click the And operator and add it to the criteria:

    Add And operator
  8. Click Extract Organization Name from the list of database items and add it to the criteria:

    Add Extract Organization Name
  9. Click = from the operators and add it to the criteria:

    Add equals operator
  10. Click Department from the list of parameters in the database item list and add it to the criteria:

    Add Department parameter
  11. Click OK:

    Click OK to exit information dialog
  12. Click Save.

  13. Repeat the process to create an additional filter criteria (Extract Assignment Type = 'E') in the Employees data group:

    Filter Objects

    ObjectValue
    Database ItemExtract Assignment Type
    Operator=
    Constant'E'
    Employee block criteria

Create Records

Records can be logical groupings of attributes into separate entities. For instance, you may need a detail and summary record for a single data group.

It is a best practice to have one record per data group, so if you require multiple records per data group addtional records will have to be added in the Desktop UI.

Records created in the simplified UI are all Detail Records. Traversal records are created automatically in the simplified UI.

We are going to modify our original design to combine Department Details and Department Summary into one data group as there is no value in having these records split out.

The hierarchy traversal record is unlike other record types because it is not meant to have attributes; its simple purpose is to define an execution sequence for the data groups. Data group connections must be defined before the hierarchy traversal records can be created so these records will generally be created after all other data groups/records/attributes are fully defined.

Record Types

Record TypeDescription
Detail record

The detail record contains the attributes or data that will be output by the extract.

Detail Records can have one of three process types:

  • Fast Formula
  • Balance Group
  • • Balance group with automated resolution of references

Fast formula is the most commonly used process types. For more information about using balance groups see: Oracle Human Resources Cloud Implementing Global Payroll Interface: Extract Definition Customization

Group recordGroup records can be used for summarization of the data. For example, count of employees grouped by department.
Header record

The header record can be used to put metadata such as details about the report usage, recipients, date extract was run / generated, or number of records extracted, into the report.

The process type of a header record is Fast Formula.

Hierarchy Traversal onlyThe hierarchy Traversal only record defines navigation to child data groups and is also used to specify the output sequence of the data groups. A connection must be created before a data group can be defined in a hierarchy traversal record.
Trailer Record

The trailer record can be used put metadata such as details about the report usage, recipients, date extract was run / generated, or number of records extracted, into the report.

The process type of a trailer record is Fast Formula.

  1. Select Add Record from the Departments data group menu by right clicking the Departments folder:

    Departments Extract Data Group Configure Menu: Add Record
  2. Add the following properties into the properties panel:

    Record Properties

    PropertyValue
    NameDepartment Details
    Tag NameDepartment_Details

    Click Save

    Save Department Details Record
  3. Select Add Record from the Employees data group menu by right clicking the Employees folder:

    Departments Extract Data Group Configure Menu: Add Record
  4. Add the following properties into the properties panel:

    Record Properties

    PropertyValue
    NameEmployee Details
    Tag NameEmployee_Details

    Click Save

    Save Department Details Record
  5. Your extract design should look like this:

    Current Extract Design

Create Attributes

An attribute is a single data point or output column. There are seven types of attributes.

Attribute Types

Attribute TypeDescription
Database item group

The database item group is the most commonly used attribute type. It is a database item from the user entity defined in the data group.

The database item will be defined in an additional property called Database Item Group.

Decoded database item group

The decoded database item allows you to modify a database item group for instance you may want to decode the gender so in lieu of Male and Female the extract shows M and F.

In this example the decoded string would be

'M','Male','F','Female'

The decoded string expression generally includes key and value pairs.

The database item will be defined in an additional property called Database Item Group.

Parameter elementInclude the value of a parameter defined in the extract definition in the record.
Record calculation

Allows for a calculation to be made on a database item group attribute. For example to calculate overtime for an hourly worker you could use the calculation

Hourly rate * 1.5

RuleRules are fast formula defined extract rules.
StringA static string in the extract record.
Summary Element

The summary element can be used to provide an aggregate for an attribute in a record. The aggregates rules available are:

  • Average
  • Count
  • Count Distinct
  • Maximum
  • Minimum
  • Sum
  1. In the Employee Details record click the attributes tab:

    Record Configure Menu: Attributes List
  2. Click add and select Database Items:

    Note:The attributes will be listed in the order they are selected.

    Add Database Items Screen
  3. Search for and check off the following attributes:

    • Person Full Name
    • Assignment Salary Amount
    • Person Date of Birth
    Database Item Attribute Search Select and Add Screen
  4. Add an additional attribute of type Decoded Database Items:

    Add Person Date of Birth Attribute
  5. Search the available extract attributes for %Gender% and drag and drop Person Gender into the Employee Details Record: Add Person Gender Attribute

  6. Populate the attribute with the following properties:

    Attribute Properties

    PropertyValue
    NameGender
    Short CodeGender
    Data TypeText
    Output Column5
    Database Item GroupPerson Gender
    Decoded Value'M','1','F','0',' ','*'

    Click OK.

    Create Decoded Database Item
  7. Click Add Attribute and select Record Calculation:

    Create Attribute
  8. Populate the attribute with the following properties:

    Attribute Properties

    PropertyValue
    NameBonus
    Short CodeBonus
    Data TypeNumber
    Output LabelBonus
    Output Column6
    Bonus Attribute Properties
  9. Select Assignment Salary Amount from the attribute list and add it into the calculation criteria:

    Add Assignment Salary Amount to Calculation Criteria
  10. Click the multiplication symbol (*) to add it to the calculation criteria:

    Shuttle the multiplication symbol *
  11. Add the constant .05 and click Add Constant:

    Add Constant .05
  12. The calculation will result in a bonus that is 5% of the Assignment Salary Amount.

  13. Click OK:

    Ok
  14. Add an additional attribute of type rule:

    Create Rule Attribute
  15. Select Fast Bark Tax Rule and click Add.

    Save Tax Rate
  16. Click Save and Close

    Save Extract
  17. We will create the attributes for the Department Details Record in the Desktop UI.

    Locate your extract and click the pencil icon for advanced edit.

    Access Extract Advanced Edit
  18. In the hierarchy select Department Details.

    Access Extract Advanced Edit
  19. Create an Attribute.

    Access Extract Advanced Edit
  20. Give the new attribute the following properties:

    Attribute Properties

    PropertyValue
    NameDepartment Name
    Short CodeDept_Name
    Data TypeText
    TypeDatabase Item Group
    Database Item GroupOrganization Name
    Output LabelDepartment Name
    Output Column5

    Click Save and Create Another:

    Create Department Name Attribute
  21. Give the new attribute the following properties:

    Attribute Properties

    PropertyValue
    NameDepartment Location
    Short CodeDept_Loc
    Data TypeText
    TypeDatabase Item Group
    Database Item GroupOrganization Location Country
    Output LabelDepartment Location
    Output Column10

    Click Save and Create Another:

    Create Department Location Attribute
  22. Give the new attribute the following properties:

    Attribute Properties

    PropertyValue
    NameRecord Code
    Short CodeRCode
    Data TypeText
    TypeString
    String Value999
    Output LabelRecord Code
    Output Column15

    Click Save and Create Another:

    Save Record Code
  23. Populate the attribute with the following properties:

    Attribute Properties

    PropertyValue
    NameReport Date
    Short CodeRDate
    Data TypeDate
    TypeParameter Element
    Output LabelReport Date
    Output Column20
    ParameterEffective Date

    Click Save:

    Save Report Date Attribute
  24. Populate the attribute with the following properties:

    Attribute Properties

    PropertyValue
    NameEmployee Count
    Short CodeECount
    Data TypeNumber
    TypeSummary Element
    Output LabelEmployee Count
    Output Column15
    Aggregate FunctionCount
    Aggregate Record NameEmployees Employee Details
    Aggregate AttributePerson Full Name

    Click Save:

    Save Employee Count Attribute

    An additional attribute, Person ID, is needed in the Employee Record for the Employee Count aggregate to work correctly. We will hide the Person ID since it is not needed in the output.

  25. In the Employees Record Configure Menu, click Create Attribute:

    Create Attribute
  26. Populate the attribute with the following properties:

    Attribute Properties

    PropertyValue
    NamePerson ID
    Short CodePID
    Data TypeNumber
    TypeDatabase item group
    Database Item GroupAssignment Person ID
    Output LabelPID
    Output Column10
    HiddenChecked

    Click Save and Close:

    Save Person ID Attribute
  27. Click Save and Close to Exit the Desktop UI:

Validating the Extract

  1. Re-enter the extract by clicking the name link.

    Click Validate to navigate to the validate page:

    Validate
  2. Click Validate:

    If your fast formulas need to be compiled you will get a message that your fast formulas have been submitted for compiling.

    Validate
  3. If Necessary, click Refresh until all fast formula are compiled as annotated by a green checkmark:

    Refresh
  4. Click OK:

    OK
  5. Click Done:

    Submit

Testing the Extract

  1. In the tasks menu, click Submit Extracts:

    View Extract Run Details
  2. Select your extract from the list and click next:

    Next
  3. Enter XX Test Flow as the flow name, 09/29/2017 as the effective date, and a department from your organization and click Submit:

    Submit
  4. Click OK:

    OK
  5. In the Manage Extract Definition page, Click View Extract Run Details:

    View Extract Run Details

    Check to ensure your extract has run successfully. If there are issues check the logs on the process details tab and refine the extract until it runs successfully.

    Extract Run Details

Creating a BI Publisher Template

  1. On the validate page, click Export XML Schema:

    Oracle headquarters buildings
  2. In the BI Publisher Tab in MS Word, import the XML Schema you downloaded:

    Import XML Schema

    You will recieve a confirmation that the schema was loaded successfully.

  3. Use the Table Wizard to create a quick template:

    Table Wizard
  4. Table is the default selection, click Next:

    Table Wizard: Select Format
  5. Choose Departments for the group and click Next:

    Choose Grouping
  6. Use the shuttle to add the following fields to your table:

    • Department_Name
    • Department_Location
    • Person_Full_Name
    • Person_Date_of_Birth
    • Gender
    • Assignment_Salary_Amount
    • Bonus
    • Fast_Bark_Tax_Rule

    Click Next:

    Select Fields
  7. Group by Department_Name and click Next:

    Group By
  8. Sort by Person_Full_Name and click Finish:

    Sort By
  9. Add the text Employee Count: and use the field browser to add Employee_Count between the Department_Name and the Table:

    Sort By
  10. Save the template as XXFastBarkTemplate.rtf.

Add the Template to BI Publisher

Introduction (Optional)

  1. Use the navigator to access Reports and Analytics:

    Navigate to Reports and Analytics
  2. Click Browse Catalog:

    Browse Catalog
  3. Create a New Report:

    Create a New Report
  4. Choose the data model /Human Capital Management/Payroll/Data Models/globalReportsDataModel.xdm:

    Choose Data Model
  5. Select Use Report Editor and click Finish.:

    Finish
  6. Name your report XX FastBark and save it in the Custom folder.

    Click OK:

    Save Report
  7. Click Upload to upload your template:

    Upload Template
  8. Enter the following properties:

    Template Properties

    PropertyValue
    Layout NameXX FBOutput
    Template NameXXFastBarkTemplate.rtf
    TypeRTF Template
    LocaleEnglish

    Click Upload:

    Upload Template Form
  9. Click View Report:

    Upload Template
  10. Enter the flowInstanceName XX Test Flow or whatever the flow name of your last successful run and click Apply to test the template:

    Upload Template

    You will notice that not all employees are displaying in the results so the template will have to be altered to show all employees.

    Replace the template to see all the employees. Download the new template here.

Defining Delivery Options

  1. Navigate back to the Extract XX FastBark and click Deliver:

    Deliver
  2. Click Add to add a delivery option with the:name XX Delivery of type WebCenterContent

    Click OK.

    Add delivery option
  3. Define the delivery option with the following properties:

    Delivery Option Properties

    PropertyValue
    Output TypeRTF
    ReportCustom/XX FastBark.xdo
    Template NameXX FBOutput
    Output NameXXFastBark
    Integration NameXX FB Int
    Encryption ModeNone

    Click OK

    Define delivery option
  4. Click Save and Close:

    Save and Close

Run Extract and View Results

  1. In the Data Exchange tasks list choose Submit Extracts:

    Task:Submit Extracts
  2. Select your extract XX FastBark and click Next:

    Select Extract
  3. Call the payroll flow XXFlow, choose the current date as the Effective Date, and select a department from the department list with employees for your company:

    Add Properties
  4. Click Submit:

    Submit
  5. Click OK:

    OK
  6. In the Manage HCM Extract Definitions Page choose View Extract Run Details for XXFastBark:

    View Extract Run Details
  7. In the Details section view the Extract Delivery Options and you can download the output:

    Download output

    Only the delivery option HCM Connect (WebCenter Content), can be downloaded from the Extract Run Details.

    If the extract failed, you can view the logs in the Process Details pane.

Want to Learn More?