2. 22
Table of ContentsTable of Contents
Payroll TermsPayroll Terms
Important TablesImportant Tables
Tables Relationship and DescriptionTables Relationship and Description
Useful QueriesUseful Queries
Other Related TablesOther Related Tables
3. 33
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 TermsPayroll Terms
4. 44
Element Entry Value
The actual value of the element entry
Payroll Action
Any payroll related action performed on employee’s 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.)
6. 66
Table Flow DiagramTable 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. 77
Per_all_people_fPer_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 ColumnsKey Columns
PERSON_IDPERSON_ID System generatedSystem generated
EFFECTIVE_START_DATEEFFECTIVE_START_DATE Effective start dateEffective start date
EFFECTIVE_END_DATEEFFECTIVE_END_DATE Effective end dateEffective end date
PERSON_TYPE_IDPERSON_TYPE_ID Links to PER_PERSON_TYPESLinks to PER_PERSON_TYPES
START_DATESTART_DATE Start date for the personStart date for the person
CURRENT_APPLICANT_FLAGCURRENT_APPLICANT_FLAG Yes or nullYes or null
CURRENT_EMP_OR_APL_FLAGCURRENT_EMP_OR_APL_FLAG Yes or nullYes or null
CURRENT_EMPLOYEE_FLAGCURRENT_EMPLOYEE_FLAG Yes or nullYes or null
DATE_OF_BIRTHDATE_OF_BIRTH Date of birthDate of birth
EMAIL_ADDRESSEMAIL_ADDRESS Holds actual email identifierHolds actual email identifier
EMPLOYEE_NUMBEREMPLOYEE_NUMBER Number assigned to an employeeNumber assigned to an employee
FULL_NAMEFULL_NAME Full Name of the employeeFull Name of the employee
8. 88
Per_all_assignments_fPer_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 ColumnsKey Columns
ASSIGNMENT_IDASSIGNMENT_ID System-generatedSystem-generated
EFFECTIVE_START_DATEEFFECTIVE_START_DATE Effective start dateEffective start date
EFFECTIVE_END_DATEEFFECTIVE_END_DATE Effective end dateEffective end date
BUSINESS_GROUP_IDBUSINESS_GROUP_ID Identifies the Business groupIdentifies the Business group
JOB_IDJOB_ID Identifies Employees JobIdentifies Employees Job
ASSIGNMENT_STATUS_TYPE_IDASSIGNMENT_STATUS_TYPE_ID Active or SuspendedActive or Suspended
PAYROLL_IDPAYROLL_ID Identifies the payroll assignedIdentifies the payroll assigned
SUPERVISOR_IDSUPERVISOR_ID Identifies the managerIdentifies the manager
PERSON_IDPERSON_ID links to PER_ALL_PEOPLE_Flinks to PER_ALL_PEOPLE_F
ORGANIZATION_IDORGANIZATION_ID Identifies the Cost Center/DeptIdentifies the Cost Center/Dept
DEFAULT_CODE_COMB_IDDEFAULT_CODE_COMB_ID Default Expense AccountDefault Expense Account
PRIMARY_FLAGPRIMARY_FLAG Indicates primary employee assignment.Indicates primary employee assignment.
9. 99
Pay_element_types_fPay_element_types_f
This table holds the definitions of elements. Elements are the units used to build all theThis 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 ColumnsKey Columns
ELEMENT_TYPE_IDELEMENT_TYPE_ID System-generatedSystem-generated
ELEMENT_NAMEELEMENT_NAME User name for the element typeUser name for the element type
REPORTING_NAMEREPORTING_NAME Reporting Name used in SOEReporting Name used in SOE
CLASSIFICATION_IDCLASSIFICATION_ID Earnings/Deductions/InformationEarnings/Deductions/Information
MULTIPLE_ENTRIES_ALLOWED_FLAG Indicates if multipleMULTIPLE_ENTRIES_ALLOWED_FLAG Indicates if multiple entries are allowedentries are allowed
POST_TERMINATION_RULEPOST_TERMINATION_RULE Last standard process,finalLast standard process,final close,actual termclose,actual term
PROCESS_IN_RUN_FLAGPROCESS_IN_RUN_FLAG If the element can be processedIf the element can be processed in a payroll runin a payroll run
PROCESSING_TYPE Whether the element is recurringPROCESSING_TYPE Whether the element is recurring or nonrecurringor nonrecurring
EFFECTIVE_START_DATEEFFECTIVE_START_DATE Effective start dateEffective start date
EFFECTIVE_END_DATEEFFECTIVE_END_DATE Effective end dateEffective end date
10. 1010
Pay_input_values_fPay_input_values_f
This tableThis 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 elementInput Value is like a placeholder for storing the actual values of the element
Key ColumnsKey Columns
INPUT_VALUE_IDINPUT_VALUE_ID System-generatedSystem-generated
NAMENAME Input value nameInput value name
UOMUOM Hours, Money, Date etcHours, Money, Date etc
USER_ENTERABLEUSER_ENTERABLE If Users can enter values hereIf Users can enter values here
directlydirectly
DATABASE_ITEMDATABASE_ITEM If Database item needs to be createdIf Database item needs to be created (used(used
for FF)for FF)
ELEMENT_TYPE_IDELEMENT_TYPE_ID Links to PAY_ELEMENT_TYPES_FLinks to PAY_ELEMENT_TYPES_F
EFFECTIVE_START_DATEEFFECTIVE_START_DATE Effective start dateEffective start date
EFFECTIVE_END_DATEEFFECTIVE_END_DATE Effective end dateEffective end date
11. 1111
Pay_element_links_fPay_element_links_f
This table that holds the eligibility rules that link elements to employees. AnThis table that holds the eligibility rules that link elements to employees. An
assignment must match the eligibility criteria defined for the element link before itassignment 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 ColumnsKey Columns
ELEMENT_LINK_IDELEMENT_LINK_ID System-generatedSystem-generated
PAYROLL_IDPAYROLL_ID Payroll attached to this elementPayroll attached to this element
COST_ALLOCATION_KEYFLEX_IDCOST_ALLOCATION_KEYFLEX_ID To which account this element willTo which account this element will be costed againstbe costed against
ELEMENT_TYPE_IDELEMENT_TYPE_ID Links toLinks to PAY_ELEMENT_TYPES_FPAY_ELEMENT_TYPES_F
BALANCING_KEYFLEX_IDBALANCING_KEYFLEX_ID To which account this element willTo which account this element will be costed againstbe costed against
COSTABLE_TYPECOSTABLE_TYPE If the Element can be costed or notIf the Element can be costed or not
TRANSFER_TO_GL_FLAGTRANSFER_TO_GL_FLAG If the element values can be transfer to GLIf the element values can be transfer to GL
EFFECTIVE_START_DATEEFFECTIVE_START_DATE Effective start dateEffective start date
EFFECTIVE_END_DATEEFFECTIVE_END_DATE Effective end dateEffective end date
12. 1212
Pay_element_entries_fPay_element_entries_f
This table holds the list of all elements that are actuallyThis table holds the list of all elements that are actually
assigned to an employees assignment. Each element isassigned to an employees assignment. Each element is
identified by element_link_ididentified by element_link_id
Key ColumnsKey Columns
ELEMENT_ENTRY_IDELEMENT_ENTRY_ID System-generatedSystem-generated
ASSIGNMENT_IDASSIGNMENT_ID Links toLinks to
PER_ALL_ASSIGNMENTS_FPER_ALL_ASSIGNMENTS_F
ELEMENT_LINK_IDELEMENT_LINK_ID Links toLinks to
PAY_ELEMENT_LINKS_FPAY_ELEMENT_LINKS_F
EFFECTIVE_START_DATEEFFECTIVE_START_DATE Effective start dateEffective start date
EFFECTIVE_END_DATEEFFECTIVE_END_DATE Effective end dateEffective end date
13. 1313
Pay_element_entry_values_fPay_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 ColumnsKey Columns
ELEMENT_ENTRY_VALUE_IDELEMENT_ENTRY_VALUE_ID System-generatedSystem-generated
ELEMENT_ENTRY_IDELEMENT_ENTRY_ID Links toLinks to
PAY_ELEMENT_ENTRIES_FPAY_ELEMENT_ENTRIES_F
INPUT_VALUE_IDINPUT_VALUE_ID Links toLinks to
PAY_INPUT_VALUES_FPAY_INPUT_VALUES_F
SCREEN_ENTRY_VALUESCREEN_ENTRY_VALUE Actual value of the ElementActual value of the Element
entryentry
EFFECTIVE_START_DATEEFFECTIVE_START_DATE Effective start dateEffective start date
EFFECTIVE_END_DATEEFFECTIVE_END_DATE Effective end dateEffective end date
14. 1414
Pay_payroll_actionsPay_payroll_actions
This table holds general details about the execution of payroll processes, includingThis 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 ColumnsKey Columns
PAYROLL_ACTION_IDPAYROLL_ACTION_ID System-generatedSystem-generated
ACTION_TYPEACTION_TYPE R-Run, Q-Quick Pay and P-PrepaymentsR-Run, Q-Quick Pay and P-Prepayments
CONSOLIDATION_SET_ID This is used to consolidate multiple payrollCONSOLIDATION_SET_ID This is used to consolidate multiple payroll
processesprocesses
PAYROLL_IDPAYROLL_ID Identifies the PayrollIdentifies the Payroll
ACTION_POPULATION_STATUS Indicates if the insert of assignmentACTION_POPULATION_STATUS Indicates if the insert of assignment
actions is completeactions is complete
ACTION_STATUSACTION_STATUS Unprocessed, Processing, Error, Complete.Unprocessed, Processing, Error, Complete.
EFFECTIVE_DATEEFFECTIVE_DATE Payroll Run DatePayroll Run Date
ELEMENT_SET_IDELEMENT_SET_ID Identifies the Element Set for which Payroll is runIdentifies the Element Set for which Payroll is run
ASSIGNMENT_SET_IDASSIGNMENT_SET_ID Identifies the Assignment SetIdentifies the Assignment Set
15. 1515
Pay_assignment_actionsPay_assignment_actions
When you run a payroll the payroll process creates a row(Assignment action) inWhen 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 someIf 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 thepayroll processing has taken place for that assignment and we can know the
status of that payroll action by looking at the ACTION_STATUS which indicatesstatus 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 ColumnsKey Columns
ASSIGNMENT_ACTION_IDASSIGNMENT_ACTION_ID System-generatedSystem-generated
ASSIGNMENT_IDASSIGNMENT_ID Links toLinks to
PER_ALL_ASSIGNMENTS_FPER_ALL_ASSIGNMENTS_F
PAYROLL_ACTION_IDPAYROLL_ACTION_ID Links toLinks to
PAY_PAYROLL_ACTIONSPAY_PAYROLL_ACTIONS
ACTION_STATUSACTION_STATUS C-complete, E-error and P-processedC-complete, E-error and P-processed
16. 1616
Pay_run_resultsPay_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 ColumnsKey Columns
RUN_RESULT_IDRUN_RESULT_ID System-generatedSystem-generated
ELEMENT_TYPE_IDELEMENT_TYPE_ID Links to PAY_ELEMENT_TYPES_FLinks to PAY_ELEMENT_TYPES_F
ASSIGNMENT_ACTION_IDASSIGNMENT_ACTION_ID Links to PAY_ASSIGNMENT_ACTIONSLinks to PAY_ASSIGNMENT_ACTIONS
ENTRY_TYPEENTRY_TYPE E-element entry, D-additional entry, S-E-element entry, D-additional entry, S-
OverrideOverride
SOURCE_IDSOURCE_ID Links to PAY_ELEMENT_ENTRIES_FLinks to PAY_ELEMENT_ENTRIES_F
SOURCE_TYPESOURCE_TYPE For example, E-normal entry, I-indirect resultFor example, E-normal entry, I-indirect result
STATUSSTATUS P-processed, U-unprocessedP-processed, U-unprocessed
17. 1717
Pay_run_result_valuesPay_run_result_values
This table holds the actual run result values that areThis table holds the actual run result values that are
calculated from processing a single element entry.calculated from processing a single element entry.
Key ColumnsKey Columns
INPUT_VALUE_IDINPUT_VALUE_ID Links to PAY_INPUT_VALUES_FLinks to PAY_INPUT_VALUES_F
RUN_RESULT_IDRUN_RESULT_ID Links to PAY_RUN_RESULTSLinks to PAY_RUN_RESULTS
RESULT_VALUERESULT_VALUE The value of the result. (calculatedThe value of the result. (calculated
amount)amount)
18. 1818
Query to get Element EntryQuery to get Element Entry
informationinformationSELECT 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_fFROM per_all_people_f ppfppf
,per_assignments_f,per_assignments_f pafpaf
,pay_element_entries_f,pay_element_entries_f peepee
,pay_element_entry_values_f,pay_element_entry_values_f pevpev
,pay_element_links_f,pay_element_links_f pelpel
,pay_element_types_f,pay_element_types_f petpet
,pay_input_values_f,pay_input_values_f pivpiv
WHERE ppf.person_idWHERE ppf.person_id = paf.person_id= paf.person_id
AND paf.assignment_id = pee.assignment_idAND paf.assignment_id = pee.assignment_id
AND pee.element_entry_id = pev.element_entry_idAND pee.element_entry_id = pev.element_entry_id
AND pee.element_link_id = pel.element_link_idAND pee.element_link_id = pel.element_link_id
AND pel.element_type_id = pet.element_type_idAND pel.element_type_id = pet.element_type_id
AND piv.element_type_idAND piv.element_type_id = pet.element_type_id= pet.element_type_id
AND piv.input_value_id = pev.input_value_idAND 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. 1919
Query to get Run ResultsQuery to get Run Results
informationinformationSELECT INITCAP(ppf.last_name ||','||ppf.first_name) name,SELECT INITCAP(ppf.last_name ||','||ppf.first_name) name,
ety.element_name,ety.element_name,
TO_NUMBER(rrv.result_value) CommissionTO_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 paspay_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 I,pay_input_values_x I,
WHERE ppf.person_id = paf.person_idWHERE ppf.person_id = paf.person_id
AND paf.assignment_id = pas.assignment_idAND paf.assignment_id = pas.assignment_id
AND pas.assignment_action_id = rr.assignment_action_idAND pas.assignment_action_id = rr.assignment_action_id
AND ppa.payroll_action_id = pas.payroll_action_idAND ppa.payroll_action_id = pas.payroll_action_id
AND rr.element_type_id = ety.element_type_idAND rr.element_type_id = ety.element_type_id
AND i.element_type_id = ety.element_type_idAND i.element_type_id = ety.element_type_id
AND rrv.run_result_id = rr.run_result_idAND rrv.run_result_id = rr.run_result_id
AND rrv.input_value_id = i.input_value_idAND 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. 2020
Other related tablesOther related tables
Pay_payrolls_f -Pay_payrolls_f - Holds Payroll DefinitionsHolds Payroll Definitions
Per_time_periods -Per_time_periods - Holds Payroll Periods InformationHolds Payroll Periods Information
Per_time_period_types -Per_time_period_types - Holds Payroll Period Types InformationHolds Payroll Period Types Information
Pay_element_classifications -Pay_element_classifications - Holds Element ClassificationsHolds Element Classifications
Pay_consolidation_sets –Pay_consolidation_sets – Holds Consolidation Set DefinitionsHolds Consolidation Set Definitions
Pay_cost_allocation_keyflex -Pay_cost_allocation_keyflex - Holds Accounting flex field infoHolds Accounting flex field info
Pay_personal_payment_methods_f -Pay_personal_payment_methods_f - Holds PaymentHolds Payment
Methods InformationMethods Information
Pay_payment_types -Pay_payment_types - Holds Different Payment Type DefinitionsHolds Different Payment Type Definitions