You are on page 1of 20

1 1

Oracle HRMS Payroll


Oracle HRMS Payroll
Concepts
Concepts
(c) AboutOracleApps.com (c) AboutOracleApps.com
2 2
Table of Contents
Table of Contents
!
Payroll Terms
Payroll Terms
!
Important Tables
Important Tables
!
Tables Relationship and Description
Tables Relationship and Description
!
Useful Queries
Useful Queries
!
Other Related Tables
Other Related Tables
3 3
! Element
Elements are simply the units used to build the earnings, deductions and benefits
that can be given to an employee.
! Input Value
Input Value is like a placeholder for holding the actual value of the
Element. An element can have more than one input value.
! Element Link
Element Link is the one which links the element to employees. This linking can
be done by associating an element to a payroll and then associating that payroll
to an employees assignment. An element can also be linked to employee by
Employment Category, Grade and Job.
! Element Entry
When an element is assigned to employees assignment it is called as
Element Entry
Payroll Terms
Payroll Terms
4 4
!
Element Entry Value
The actual value of the element entry
!
Payroll Action
Any payroll related action performed on employees assignment is referred to as
Payroll Action. It can be a Payroll Run, Quick-Pay, Pre-payments or Payments
!
Assignment Action
This is a record of actions performed by the Payroll process on each and every
assignment.
!
Run Result
This is the actual calculated result of the payroll process for each and every
element entry
!
Run Result Value
This is the actual calculated value of each and every input value of an element.
Payroll Terms (contd.)
Payroll Terms (contd.)
5 5
Important Tables
Important Tables
! Per_all_people_f Per_all_people_f
! Per_all_assignments_f Per_all_assignments_f
! Pay_element_types_f Pay_element_types_f
! Pay_input_values_f Pay_input_values_f
! Pay_element_links_f Pay_element_links_f
! Pay_element_entries_f Pay_element_entries_f
! Pay_element_entry_values_f Pay_element_entry_values_f
! Pay_payroll_actions Pay_payroll_actions
! Pay_assignment_actions Pay_assignment_actions
! Pay_run_results Pay_run_results
! Pay_run_result_values Pay_run_result_values
6 6
Table Flow Diagram
Table Flow Diagram


Per_all_people_f
Per_all_assignments_f
Pay_payroll_actions
Pay_assignment_actions
Pay_element_entries_f
Pay_element_entry_values_f
Pay_run_results
Pay_run_result_values
Pay_input_values_f
Pay_element_types_f
Pay_element_links_f
Payroll Processing
Element and Element
Link Definition
Elements Attached to Employees
Person_id Payroll_action_id
Assignment_action_id
Element_entry_id
Assignment_id
Run_result_id
Element_type_id
Element_type_id
Element_link_id
Assignment_id
Source_id
7 7
Per_all_people_f
Per_all_people_f
This table holds personal information for employees, applicants, ex- This table holds personal information for employees, applicants, ex-
employees, ex-applicants, contacts and other people. employees, ex-applicants, contacts and other people.
Key Columns Key Columns
PERSON_lD PERSON_lD System generated System generated
EFFECTlVE_START_DATE EFFECTlVE_START_DATE Effective start date Effective start date
EFFECTlVE_END_DATE EFFECTlVE_END_DATE Effective end date Effective end date
PERSON_TYPE_lD PERSON_TYPE_lD Links to PER_PERSON_TYPES Links to PER_PERSON_TYPES
START_DATE START_DATE Start date for the person Start date for the person
CURRENT_APPLlCANT_FLAG CURRENT_APPLlCANT_FLAG Yes or null Yes or null
CURRENT_EMP_OR_APL_FLAG CURRENT_EMP_OR_APL_FLAG Yes or null Yes or null
CURRENT_EMPLOYEE_FLAG CURRENT_EMPLOYEE_FLAG Yes or null Yes or null
DATE_OF_BlRTH DATE_OF_BlRTH Date of birth Date of birth
EMAlL_ADDRESS EMAlL_ADDRESS Holds actual email identifier Holds actual email identifier
EMPLOYEE_NUMBER EMPLOYEE_NUMBER Number assigned to an employee Number assigned to an employee
FULL_NAME FULL_NAME Full Name of the employee Full Name of the employee
8 8
Per_all_assignments_f
Per_all_assignments_f
This table holds information about employee assignments like his Job, This table holds information about employee assignments like his Job,
Manager, Department, Payroll and his expense account. Manager, Department, Payroll and his expense account.
Key Columns Key Columns
ASSlGNMENT_lD ASSlGNMENT_lD System-generated System-generated
EFFECTlVE_START_DATE EFFECTlVE_START_DATE Effective start date Effective start date
EFFECTlVE_END_DATE EFFECTlVE_END_DATE Effective end date Effective end date
BUSlNESS_GROUP_lD BUSlNESS_GROUP_lDldentifies the Business group ldentifies the Business group
JOB_lD JOB_lD ldentifies Employees Job ldentifies Employees Job
ASSlGNMENT_STATUS_TYPE_lD ASSlGNMENT_STATUS_TYPE_lD Active or Suspended Active or Suspended
PAYROLL_lD PAYROLL_lD ldentifies the payroll assigned ldentifies the payroll assigned
SUPERVlSOR_lD SUPERVlSOR_lD ldentifies the manager ldentifies the manager
PERSON_lD PERSON_lD links to PER_ALL_PEOPLE_F links to PER_ALL_PEOPLE_F
ORGANlZATlON_lD ORGANlZATlON_lD ldentifies the Cost Center/Dept ldentifies the Cost Center/Dept
DEFAULT_CODE_COMB_lD DEFAULT_CODE_COMB_lD Default Expense Account Default Expense Account
PRlMARY_FLAG PRlMARY_FLAG lndicates primary employee assignment. lndicates primary employee assignment.
9 9
Pay_element_types_f
Pay_element_types_f
This table holds the definitions of elements. Elements are the units used to build all the This table holds the definitions of elements. Elements are the units used to build all the
earnings, deductions and benefits that can be given to employees. earnings, deductions and benefits that can be given to employees.
Key Columns Key Columns
ELEMENT_TYPE_lD ELEMENT_TYPE_lD System-generated System-generated
ELEMENT_NAME ELEMENT_NAME User name for the element type User name for the element type
REPORTlNG_NAME REPORTlNG_NAME Reporting Name used in SOE Reporting Name used in SOE
CLASSlFlCATlON_lD CLASSlFlCATlON_lD Earnings/Deductions/lnformation Earnings/Deductions/lnformation
MULTlPLE_ENTRlES_ALLOWED_FLAG lndicates if multiple MULTlPLE_ENTRlES_ALLOWED_FLAG lndicates if multiple entries are allowed entries are allowed
POST_TERMlNATlON_RULE POST_TERMlNATlON_RULE Last standard process,final Last standard process,final close,actual term close,actual term
PROCESS_lN_RUN_FLAG PROCESS_lN_RUN_FLAG lf the element can be processed lf the element can be processed in a payroll run in a payroll run
PROCESSlNG_TYPE Whether the element is recurring PROCESSlNG_TYPE Whether the element is recurring or nonrecurring or nonrecurring
EFFECTlVE_START_DATE EFFECTlVE_START_DATE Effective start date Effective start date
EFFECTlVE_END_DATE EFFECTlVE_END_DATE Effective end date Effective end date
10 10
Pay_input_values_f
Pay_input_values_f
This table This table holds the definitions of the input values associated with a specific element. holds the definitions of the input values associated with a specific element.
Input Value is like a placeholder for storing the actual values of the element Input Value is like a placeholder for storing the actual values of the element
Key Columns Key Columns
lNPUT_VALUE_lD lNPUT_VALUE_lD System-generated System-generated
NAME NAME Input value name Input value name
UOM UOM Hours, Money, Date etc Hours, Money, Date etc
USER_ENTERABLE USER_ENTERABLE If Users can enter values here If Users can enter values here
directly directly
DATABASE_lTEM DATABASE_lTEM lf Database item needs to be created lf Database item needs to be created (used (used
for FF) for FF)
ELEMENT_TYPE_lD ELEMENT_TYPE_lD Links to PAY_ELEMENT_TYPES_F Links to PAY_ELEMENT_TYPES_F
EFFECTlVE_START_DATE EFFECTlVE_START_DATE Effective start date Effective start date
EFFECTlVE_END_DATE EFFECTlVE_END_DATE Effective end date Effective end date
11 11
Pay_element_links_f
Pay_element_links_f
This table that holds the eligibility rules that link elements to employees. An This table that holds the eligibility rules that link elements to employees. An
assignment must match the eligibility criteria defined for the element link before it assignment must match the eligibility criteria defined for the element link before it
can have an entry of that element. can have an entry of that element.
Key Columns Key Columns
ELEMENT_LINK_ID ELEMENT_LINK_ID System-generated System-generated
PAYROLL_ID PAYROLL_ID Payroll attached to this element Payroll attached to this element
COST_ALLOCATION_KEYFLEX_ID COST_ALLOCATION_KEYFLEX_ID To which account this element will To which account this element will be costed against be costed against
ELEMENT_TYPE_ID ELEMENT_TYPE_ID Links to Links to PAY_ELEMENT_TYPES_F PAY_ELEMENT_TYPES_F
BALANCING_KEYFLEX_ID BALANCING_KEYFLEX_ID To which account this element will To which account this element will be costed against be costed against
COSTABLE_TYPE COSTABLE_TYPE If the Element can be costed or not If the Element can be costed or not
TRANSFER_TO_GL_FLAG TRANSFER_TO_GL_FLAG If the element values can be transfer to GL If the element values can be transfer to GL
EFFECTIVE_START_DATE EFFECTIVE_START_DATE Effective start date Effective start date
EFFECTIVE_END_DATE EFFECTIVE_END_DATE Effective end date Effective end date
12 12
Pay_element_entries_f
Pay_element_entries_f
This table holds the list of all elements that are actually This table holds the list of all elements that are actually
assigned to an employees assignment. Each element is assigned to an employees assignment. Each element is
identified by element_link_id identified by element_link_id
Key Columns
Key Columns
ELEMENT_ENTRY_lD ELEMENT_ENTRY_lD System-generated System-generated
ASSlGNMENT_lD ASSlGNMENT_lD Links to Links to
PER_ALL_ASSlGNMENTS_F PER_ALL_ASSlGNMENTS_F
ELEMENT_LlNK_lD ELEMENT_LlNK_lD Links to Links to
PAY_ELEMENT_LlNKS_F PAY_ELEMENT_LlNKS_F
EFFECTlVE_START_DATE EFFECTlVE_START_DATE Effective start date Effective start date
EFFECTlVE_END_DATE EFFECTlVE_END_DATE Effective end date Effective end date
13 13
Pay_element_entry_values_f
Pay_element_entry_values_f
This table holds the actual values of the element entries. This table holds the actual values of the element entries.
Key Columns
Key Columns
ELEMENT_ENTRY_VALUE_lD ELEMENT_ENTRY_VALUE_lD System-generated System-generated
ELEMENT_ENTRY_lD ELEMENT_ENTRY_lD Links to Links to
PAY_ELEMENT_ENTRlES_F PAY_ELEMENT_ENTRlES_F
lNPUT_VALUE_lD lNPUT_VALUE_lD Links to Links to
PAY_lNPUT_VALUES_F PAY_lNPUT_VALUES_F
SCREEN_ENTRY_VALUE SCREEN_ENTRY_VALUE Actual value of the Element Actual value of the Element
entry entry
EFFECTlVE_START_DATE EFFECTlVE_START_DATE Effective start date Effective start date
EFFECTlVE_END_DATE EFFECTlVE_END_DATE Effective end date Effective end date
14 14
Pay_payroll_actions
Pay_payroll_actions
This table holds general details about the execution of payroll processes, including This table holds general details about the execution of payroll processes, including
their type and all the parameters passed to them. their type and all the parameters passed to them.
Key Columns Key Columns
PAYROLL_ACTlON_lD PAYROLL_ACTlON_lD System-generated System-generated
ACTlON_TYPE ACTlON_TYPE R-Run, Q-Quick Pay and P-Prepayments R-Run, Q-Quick Pay and P-Prepayments
CONSOLlDATlON_SET_lD This is used to consolidate multiple payroll CONSOLlDATlON_SET_lD This is used to consolidate multiple payroll
processes processes
PAYROLL_lD PAYROLL_lD ldentifies the Payroll ldentifies the Payroll
ACTlON_POPULATlON_STATUS lndicates if the insert of assignment ACTlON_POPULATlON_STATUS lndicates if the insert of assignment
actions is complete actions is complete
ACTlON_STATUS ACTlON_STATUS Unprocessed, Processing, Error, Complete. Unprocessed, Processing, Error, Complete.
EFFECTlVE_DATE EFFECTlVE_DATE Payroll Run Date Payroll Run Date
ELEMENT_SET_lD ELEMENT_SET_lD ldentifies the Element Set for which Payroll is run ldentifies the Element Set for which Payroll is run
ASSlGNMENT_SET_lD ASSlGNMENT_SET_lD ldentifies the Assignment Set ldentifies the Assignment Set
15 15
Pay_assignment_actions
Pay_assignment_actions
When you run a payroll the payroll process creates a row(Assignment action) in When you run a payroll the payroll process creates a row(Assignment action) in
this table for each assignment which has been processed by the payroll process. this table for each assignment which has been processed by the payroll process.
If at all there is a row in this table for an assignment that means that some If at all there is a row in this table for an assignment that means that some
payroll processing has taken place for that assignment and we can know the payroll processing has taken place for that assignment and we can know the
status of that payroll action by looking at the ACTION_STATUS which indicates status of that payroll action by looking at the ACTION_STATUS which indicates
whether it processed successfully, unsuccessfully, or not at all. whether it processed successfully, unsuccessfully, or not at all.
Key Columns Key Columns
ASSlGNMENT_ACTlON_lD ASSlGNMENT_ACTlON_lD System-generated System-generated
ASSlGNMENT_lD ASSlGNMENT_lD Links to Links to
PER_ALL_ASSlGNMENTS_F PER_ALL_ASSlGNMENTS_F
PAYROLL_ACTlON_lD PAYROLL_ACTlON_lD Links to Links to
PAY_PAYROLL_ACTlONS PAY_PAYROLL_ACTlONS
ACTlON_STATUS ACTlON_STATUS C-complete, E-error and P-processed C-complete, E-error and P-processed
16 16
Pay_run_results
Pay_run_results
This table holds the run results from processing each element entry. This table holds the run results from processing each element entry.
There is always a single run result for each entry. There is always a single run result for each entry.
Key Columns
Key Columns
RUN_RESULT_lD RUN_RESULT_lD System-generated System-generated
ELEMENT_TYPE_lD ELEMENT_TYPE_lD Links to PAY_ELEMENT_TYPES_F Links to PAY_ELEMENT_TYPES_F
ASSlGNMENT_ACTlON_lD ASSlGNMENT_ACTlON_lD Links to PAY_ASSlGNMENT_ACTlONS Links to PAY_ASSlGNMENT_ACTlONS
ENTRY_TYPE ENTRY_TYPE E-element entry, D-additional entry, S- E-element entry, D-additional entry, S-
Override Override
SOURCE_lD SOURCE_lD Links to PAY_ELEMENT_ENTRlES_F Links to PAY_ELEMENT_ENTRlES_F
SOURCE_TYPE SOURCE_TYPE For example, E-normal entry, l-indirect result For example, E-normal entry, l-indirect result
STATUS STATUS P-processed, U-unprocessed P-processed, U-unprocessed
17 17
Pay_run_result_values
Pay_run_result_values
This table holds the actual run result values that are This table holds the actual run result values that are
calculated from processing a single element entry. calculated from processing a single element entry.
Key Columns
Key Columns
lNPUT_VALUE_lD lNPUT_VALUE_lD Links to PAY_lNPUT_VALUES_F Links to PAY_lNPUT_VALUES_F
RUN_RESULT_lD RUN_RESULT_lD Links to PAY_RUN_RESULTS Links to PAY_RUN_RESULTS
RESULT_VALUE RESULT_VALUE The value of the result. (calculated The value of the result. (calculated
amount) amount)
18 18
Query to get Element Entry
Query to get Element Entry
information
information
SELECT ppf.employee_number PRN, SELECT ppf.employee_number PRN,
ppf.full_name Name, ppf.full_name Name,
pev.screen_entry_value "Annual Salary" pev.screen_entry_value "Annual Salary"
FROM per_all_people_f FROM per_all_people_f ppf ppf
,per_assignments_f ,per_assignments_f paf paf
,pay_element_entries_f ,pay_element_entries_f pee pee
,pay_element_entry_values_f ,pay_element_entry_values_f pev pev
,pay_element_links_f ,pay_element_links_f pel pel
,pay_element_types_f ,pay_element_types_f pet pet
,pay_input_values_f ,pay_input_values_f piv piv
WHERE ppf.person_id WHERE ppf.person_id = paf.person_id = paf.person_id
AND paf.assignment_id = pee.assignment_id AND paf.assignment_id = pee.assignment_id
AND pee.element_entry_id = pev.element_entry_id AND pee.element_entry_id = pev.element_entry_id
AND pee.element_link_id = pel.element_link_id AND pee.element_link_id = pel.element_link_id
AND pel.element_type_id = pet.element_type_id AND pel.element_type_id = pet.element_type_id
AND piv.element_type_id AND piv.element_type_id = pet.element_type_id = pet.element_type_id
AND piv.input_value_id = pev.input_value_id AND piv.input_value_id = pev.input_value_id
AND pet.element_name = 'Salary' AND pet.element_name = 'Salary'
AND piv.name = 'annual' AND piv.name = 'annual'
AND ppf.business_group_id = 28 AND ppf.employee_number = '1350' AND ppf.business_group_id = 28 AND ppf.employee_number = '1350'
19 19
Query to get Run Results
Query to get Run Results
information
information
SELECT lNlTCAP(ppf.last_name ||','||ppf.first_name) name, SELECT lNlTCAP(ppf.last_name ||','||ppf.first_name) name,
ety.element_name, ety.element_name,
TO_NUMBER(rrv.result_value) Commission TO_NUMBER(rrv.result_value) Commission
FROM per_people_x ppf, FROM per_people_x ppf,
per_assignments_x paf, per_assignments_x paf,
pay_assignment_actions pas pay_assignment_actions pas
pay_payroll_actions ppa, pay_payroll_actions ppa,
pay_run_results rr, pay_run_results rr,
pay_run_result_values rrv, pay_run_result_values rrv,
pay_element_types_f ety, pay_element_types_f ety,
pay_input_values_x l, pay_input_values_x l,
WHERE ppf.person_id = paf.person_id WHERE ppf.person_id = paf.person_id
AND paf.assignment_id = pas.assignment_id AND paf.assignment_id = pas.assignment_id
AND pas.assignment_action_id = rr.assignment_action_id AND pas.assignment_action_id = rr.assignment_action_id
AND ppa.payroll_action_id = pas.payroll_action_id AND ppa.payroll_action_id = pas.payroll_action_id
AND rr.element_type_id = ety.element_type_id AND rr.element_type_id = ety.element_type_id
AND i.element_type_id = ety.element_type_id AND i.element_type_id = ety.element_type_id
AND rrv.run_result_id = rr.run_result_id AND rrv.run_result_id = rr.run_result_id
AND rrv.input_value_id = i.input_value_id AND rrv.input_value_id = i.input_value_id
AND i.name = 'Pay Value' AND i.name = 'Pay Value'
AND ety.element_name = 'Salary' AND ety.element_name = 'Salary'
20 20
Other related tables
Other related tables
! Pay_payrolls_f - Pay_payrolls_f - Holds Payroll Definitions Holds Payroll Definitions
! Per_time_periods - Per_time_periods - Holds Payroll Periods lnformation Holds Payroll Periods lnformation
! Per_time_period_types - Per_time_period_types - Holds Payroll Period Types lnformation Holds Payroll Period Types lnformation
! Pay_element_classifications - Pay_element_classifications - Holds Element Classifications Holds Element Classifications
! Pay_consolidation_sets Pay_consolidation_sets Holds Consolidation Set Definitions Holds Consolidation Set Definitions
! Pay_cost_allocation_keyflex - Pay_cost_allocation_keyflex - Holds Accounting flex field info Holds Accounting flex field info
! Pay_personal_payment_methods_f - Pay_personal_payment_methods_f - Holds Payment Holds Payment
Methods lnformation Methods lnformation
! Pay_payment_types - Pay_payment_types - Holds Different Payment Type Definitions Holds Different Payment Type Definitions

You might also like