payroll-tables

Upload: bhargi111

Post on 11-Oct-2015

40 views

Category:

Documents


0 download

DESCRIPTION

payroll-tables

TRANSCRIPT

  • 11

    Oracle HRMS Payroll Oracle HRMS Payroll ConceptsConcepts

    (c) AboutOracleApps.com(c) AboutOracleApps.com

  • 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

  • 33

    ElementElements 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 LinkElement 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 EntryWhen an element is assigned to employees assignment it is called as Element Entry

    Payroll TermsPayroll Terms

  • 44

    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 ActionThis is a record of actions performed by the Payroll process on each and every assignment.

    Run ResultThis is the actual calculated result of the payroll process for each and every element entry

    Run Result ValueThis is the actual calculated value of each and every input value of an element.

    Payroll Terms (contd.)Payroll Terms (contd.)

  • 55

    Important TablesImportant Tables Per_all_people_fPer_all_people_f Per_all_assignments_f Per_all_assignments_f Pay_element_types_fPay_element_types_f Pay_input_values_fPay_input_values_f Pay_element_links_fPay_element_links_f Pay_element_entries_fPay_element_entries_f Pay_element_entry_values_fPay_element_entry_values_f Pay_payroll_actionsPay_payroll_actions Pay_assignment_actionsPay_assignment_actions Pay_run_resultsPay_run_results Pay_run_result_valuesPay_run_result_values

  • 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 ProcessingElement and Element

    Link DefinitionElements 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

  • 77

    Per_all_people_fPer_all_people_fThis 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 ColumnsPERSON_ID PERSON_ID System generatedSystem generatedEFFECTIVE_START_DATEEFFECTIVE_START_DATE Effective start dateEffective start dateEFFECTIVE_END_DATEEFFECTIVE_END_DATE Effective end dateEffective end datePERSON_TYPE_IDPERSON_TYPE_ID Links to PER_PERSON_TYPESLinks to PER_PERSON_TYPESSTART_DATESTART_DATE Start date for the personStart date for the personCURRENT_APPLICANT_FLAGCURRENT_APPLICANT_FLAG Yes or nullYes or nullCURRENT_EMP_OR_APL_FLAGCURRENT_EMP_OR_APL_FLAG Yes or nullYes or nullCURRENT_EMPLOYEE_FLAGCURRENT_EMPLOYEE_FLAG Yes or nullYes or nullDATE_OF_BIRTHDATE_OF_BIRTH Date of birthDate of birthEMAIL_ADDRESSEMAIL_ADDRESS Holds actual email identifierHolds actual email identifierEMPLOYEE_NUMBEREMPLOYEE_NUMBER Number assigned to an employeeNumber assigned to an employeeFULL_NAMEFULL_NAME Full Name of the employeeFull Name of the employee

  • 88

    Per_all_assignments_fPer_all_assignments_fThis 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 ColumnsASSIGNMENT_ID ASSIGNMENT_ID System-generatedSystem-generatedEFFECTIVE_START_DATEEFFECTIVE_START_DATE Effective start dateEffective start dateEFFECTIVE_END_DATEEFFECTIVE_END_DATE Effective end dateEffective end dateBUSINESS_GROUP_IDBUSINESS_GROUP_ID Identifies the Business groupIdentifies the Business groupJOB_IDJOB_ID Identifies Employees JobIdentifies Employees JobASSIGNMENT_STATUS_TYPE_IDASSIGNMENT_STATUS_TYPE_ID Active or SuspendedActive or SuspendedPAYROLL_IDPAYROLL_ID Identifies the payroll assignedIdentifies the payroll assignedSUPERVISOR_IDSUPERVISOR_ID Identifies the managerIdentifies the managerPERSON_IDPERSON_ID links to PER_ALL_PEOPLE_Flinks to PER_ALL_PEOPLE_FORGANIZATION_IDORGANIZATION_ID Identifies the Cost Center/DeptIdentifies the Cost Center/DeptDEFAULT_CODE_COMB_IDDEFAULT_CODE_COMB_ID Default Expense AccountDefault Expense AccountPRIMARY_FLAGPRIMARY_FLAG Indicates primary employee assignment.Indicates primary employee assignment.

  • 99

    Pay_element_types_fPay_element_types_fThis 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 ColumnsKey ColumnsELEMENT_TYPE_IDELEMENT_TYPE_ID System-generatedSystem-generatedELEMENT_NAMEELEMENT_NAME User name for the element typeUser name for the element typeREPORTING_NAMEREPORTING_NAME Reporting Name used in SOEReporting Name used in SOECLASSIFICATION_IDCLASSIFICATION_ID Earnings/Deductions/InformationEarnings/Deductions/InformationMULTIPLE_ENTRIES_ALLOWED_FLAG Indicates if multiple MULTIPLE_ENTRIES_ALLOWED_FLAG Indicates if multiple entries are allowedentries are allowedPOST_TERMINATION_RULEPOST_TERMINATION_RULE Last standard process,final Last standard process,final close,actual termclose,actual termPROCESS_IN_RUN_FLAGPROCESS_IN_RUN_FLAG If the element can be processed If the element can be processed in a payroll runin a payroll runPROCESSING_TYPE Whether the element is recurring PROCESSING_TYPE Whether the element is recurring or nonrecurringor nonrecurringEFFECTIVE_START_DATEEFFECTIVE_START_DATE Effective start dateEffective start dateEFFECTIVE_END_DATEEFFECTIVE_END_DATE Effective end dateEffective end date

  • 1010

    Pay_input_values_fPay_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 elementInput Value is like a placeholder for storing the actual values of the element

    Key ColumnsKey ColumnsINPUT_VALUE_IDINPUT_VALUE_ID System-generatedSystem-generatedNAMENAME Input value nameInput value nameUOMUOM Hours, Money, Date etcHours, Money, Date etcUSER_ENTERABLEUSER_ENTERABLE If Users can enter values here If Users can enter values here directlydirectlyDATABASE_ITEMDATABASE_ITEM If Database item needs to be created If 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_FEFFECTIVE_START_DATEEFFECTIVE_START_DATE Effective start dateEffective start dateEFFECTIVE_END_DATEEFFECTIVE_END_DATE Effective end dateEffective end date

  • 1111

    Pay_element_links_fPay_element_links_fThis 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 ColumnsKey ColumnsELEMENT_LINK_IDELEMENT_LINK_ID System-generated System-generated PAYROLL_IDPAYROLL_ID Payroll attached to this element Payroll attached to this element COST_ALLOCATION_KEYFLEX_IDCOST_ALLOCATION_KEYFLEX_ID To which account this element will To which account this element will be costed againstbe costed againstELEMENT_TYPE_IDELEMENT_TYPE_ID Links to Links to PAY_ELEMENT_TYPES_FPAY_ELEMENT_TYPES_FBALANCING_KEYFLEX_IDBALANCING_KEYFLEX_ID To which account this element will To which account this element will be costed againstbe costed againstCOSTABLE_TYPECOSTABLE_TYPE If the Element can be costed or not If 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 GLEFFECTIVE_START_DATEEFFECTIVE_START_DATE Effective start dateEffective start dateEFFECTIVE_END_DATEEFFECTIVE_END_DATE Effective end dateEffective end date

  • 1212

    Pay_element_entries_fPay_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 ColumnsKey ColumnsELEMENT_ENTRY_IDELEMENT_ENTRY_ID System-generatedSystem-generatedASSIGNMENT_IDASSIGNMENT_ID Links to Links to

    PER_ALL_ASSIGNMENTS_FPER_ALL_ASSIGNMENTS_FELEMENT_LINK_IDELEMENT_LINK_ID Links to Links to

    PAY_ELEMENT_LINKS_FPAY_ELEMENT_LINKS_FEFFECTIVE_START_DATEEFFECTIVE_START_DATE Effective start dateEffective start dateEFFECTIVE_END_DATEEFFECTIVE_END_DATE Effective end dateEffective end date

  • 1313

    Pay_element_entry_values_fPay_element_entry_values_fThis table holds the actual values of the element entries.This table holds the actual values of the element entries.

    Key ColumnsKey ColumnsELEMENT_ENTRY_VALUE_IDELEMENT_ENTRY_VALUE_ID System-generatedSystem-generatedELEMENT_ENTRY_IDELEMENT_ENTRY_ID Links to Links to

    PAY_ELEMENT_ENTRIES_F PAY_ELEMENT_ENTRIES_FINPUT_VALUE_IDINPUT_VALUE_ID Links to Links to

    PAY_INPUT_VALUES_F PAY_INPUT_VALUES_FSCREEN_ENTRY_VALUESCREEN_ENTRY_VALUE Actual value of the Element Actual value of the Element

    entry entryEFFECTIVE_START_DATEEFFECTIVE_START_DATE Effective start date Effective start dateEFFECTIVE_END_DATEEFFECTIVE_END_DATE Effective end date Effective end date

  • 1414

    Pay_payroll_actionsPay_payroll_actionsThis 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 ColumnsKey ColumnsPAYROLL_ACTION_IDPAYROLL_ACTION_ID System-generated System-generatedACTION_TYPEACTION_TYPE R-Run, Q-Quick Pay and P-Prepayments R-Run, Q-Quick Pay and P-PrepaymentsCONSOLIDATION_SET_ID This is used to consolidate multiple payroll CONSOLIDATION_SET_ID This is used to consolidate multiple payroll processesprocessesPAYROLL_IDPAYROLL_ID Identifies the Payroll Identifies the PayrollACTION_POPULATION_STATUS Indicates if the insert of assignment ACTION_POPULATION_STATUS Indicates if the insert of assignment actions is completeactions is completeACTION_STATUSACTION_STATUS Unprocessed, Processing, Error, Complete. Unprocessed, Processing, Error, Complete.EFFECTIVE_DATEEFFECTIVE_DATE Payroll Run Date Payroll Run DateELEMENT_SET_IDELEMENT_SET_ID Identifies the Element Set for which Payroll is run Identifies the Element Set for which Payroll is runASSIGNMENT_SET_IDASSIGNMENT_SET_ID Identifies the Assignment Set Identifies the Assignment Set

  • 1515

    Pay_assignment_actionsPay_assignment_actionsWhen 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 ColumnsKey ColumnsASSIGNMENT_ACTION_IDASSIGNMENT_ACTION_ID System-generatedSystem-generatedASSIGNMENT_IDASSIGNMENT_ID Links to Links to PER_ALL_ASSIGNMENTS_FPER_ALL_ASSIGNMENTS_FPAYROLL_ACTION_IDPAYROLL_ACTION_ID Links to Links to PAY_PAYROLL_ACTIONSPAY_PAYROLL_ACTIONSACTION_STATUSACTION_STATUS C-complete, E-error and P-processedC-complete, E-error and P-processed

  • 1616

    Pay_run_resultsPay_run_resultsThis 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 ColumnsRUN_RESULT_IDRUN_RESULT_ID System-generatedSystem-generatedELEMENT_TYPE_IDELEMENT_TYPE_ID Links to PAY_ELEMENT_TYPES_FLinks to PAY_ELEMENT_TYPES_FASSIGNMENT_ACTION_IDASSIGNMENT_ACTION_ID Links to PAY_ASSIGNMENT_ACTIONSLinks to PAY_ASSIGNMENT_ACTIONSENTRY_TYPEENTRY_TYPE E-element entry, D-additional entry, S-E-element entry, D-additional entry, S-

    OverrideOverrideSOURCE_IDSOURCE_ID Links to PAY_ELEMENT_ENTRIES_FLinks to PAY_ELEMENT_ENTRIES_FSOURCE_TYPESOURCE_TYPE For example, E-normal entry, I-indirect resultFor example, E-normal entry, I-indirect resultSTATUSSTATUS P-processed, U-unprocessedP-processed, U-unprocessed

  • 1717

    Pay_run_result_valuesPay_run_result_valuesThis 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 ColumnsKey ColumnsINPUT_VALUE_IDINPUT_VALUE_ID Links to PAY_INPUT_VALUES_FLinks to PAY_INPUT_VALUES_FRUN_RESULT_IDRUN_RESULT_ID Links to PAY_RUN_RESULTSLinks to PAY_RUN_RESULTSRESULT_VALUERESULT_VALUE The value of the result. (calculated The value of the result. (calculated

    amount)amount)

  • 1818

    Query to get Element Entry Query to get Element Entry informationinformation

    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_fFROM per_all_people_f ppf ppf ,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_id WHERE ppf.person_id = paf.person_id = paf.person_idAND paf.assignment_id = pee.assignment_id AND paf.assignment_id = pee.assignment_id AND pee.element_entry_id = pev.element_entry_idAND pee.element_entry_id = pev.element_entry_idAND pee.element_link_id = pel.element_link_idAND pee.element_link_id = pel.element_link_idAND pel.element_type_id = pet.element_type_idAND pel.element_type_id = pet.element_type_idAND piv.element_type_id AND piv.element_type_id = pet.element_type_id= pet.element_type_idAND piv.input_value_id = pev.input_value_idAND piv.input_value_id = pev.input_value_idAND 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'

  • 1919

    Query to get Run Results Query to get Run Results informationinformation

    SELECT 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_idAND paf.assignment_id = pas.assignment_idAND paf.assignment_id = pas.assignment_idAND pas.assignment_action_id = rr.assignment_action_idAND pas.assignment_action_id = rr.assignment_action_idAND ppa.payroll_action_id = pas.payroll_action_idAND ppa.payroll_action_id = pas.payroll_action_idAND rr.element_type_id = ety.element_type_idAND rr.element_type_id = ety.element_type_idAND i.element_type_id = ety.element_type_idAND i.element_type_id = ety.element_type_idAND rrv.run_result_id = rr.run_result_idAND rrv.run_result_id = rr.run_result_idAND rrv.input_value_id = i.input_value_idAND rrv.input_value_id = i.input_value_idAND i.name = 'Pay Value'AND i.name = 'Pay Value'AND ety.element_name = Salary'AND ety.element_name = Salary'

  • 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 Payment Holds Payment Methods Information Methods Information

    Pay_payment_types - Pay_payment_types - Holds Different Payment Type DefinitionsHolds Different Payment Type Definitions

    Slide 1Table of ContentsPayroll TermsPayroll Terms (contd.)Important TablesTable Flow DiagramPer_all_people_fPer_all_assignments_fPay_element_types_fPay_input_values_fPay_element_links_fPay_element_entries_fPay_element_entry_values_fPay_payroll_actionsPay_assignment_actionsPay_run_resultsPay_run_result_valuesQuery to get Element Entry informationQuery to get Run Results informationOther related tables