GPTH_WCF_PRE_VW

(SQL View)
Index Back

Prepare data for WCF View

GPTH_WCF_ PRE _VW is used to prepare data for WCF Query View GPTH_WCF_VW

SELECT C.DESCR , A.PROCESS_INSTANCE , A.EMPLID , F.NAME_PREFIX , F.GPTH_NAME1 , F.FIRST_NAME , F.MIDDLE_NAME , F.LAST_NAME , A.CAL_RUN_ID , A.EMPL_RCD , A.GP_PAYGROUP , A.CAL_ID , A.ORIG_CAL_RUN_ID , A.RSLT_SEG_NUM , A.GP_RPT_KEY , A.PRD_BGN_DT , A.PRD_END_DT , A.SEG_BGN_DT , A.SEG_END_DT , %DateAdd(%SQL(FUNCLIB_HR_DATE_MONTH_ADD,%Sql(FUNCLIB_HR_DATE_MONTH_BEGIN, A.PYMT_DT),1),-1) AS PYMT_DT , A.CAL_PRD_ID , A.COUNTRY , A.PIN_GROSS_VAL , A.PIN_NET_VAL , A.CURRENCY_CD , A.CUR_RT_TYPE , A.RUN_TYPE , A.PAY_ENTITY , A.BUSINESS_UNIT , A.COMPANY , A.ESTABID , A.SETID_DEPT , A.DEPTID , A.SETID_LOCATION , A.LOCATION , B.PIN_NUM , B.INSTANCE , B.ACM_FROM_DT , B.ACM_THRU_DT , B.SLICE_BGN_DT , B.SLICE_END_DT , (B.CALC_RSLT_VAL + B.USER_ADJ_VAL) AS CALC_RSLT_VAL , B.BASE_RSLT_VAL , B.RATE_RSLT_VAL , B.UNIT_RSLT_VAL , B.PCT_RSLT_VAL , B.RSLT_ADD_ARR , B.RSLT_NOT_TKN , B.RSLT_PAYBK , B.RSLT_XFER_VAL , B.BASE_ADJ_VAL , B.CALC_ADJ_VAL , B.UNIT_ADJ_VAL , B.USER_ADJ_VAL , B.USER_KEY1 , B.PIN_TYPE , B.PIN_NM , B.PIN_CODE , D.GPTH_SI_ER_ACCT , D.GPTH_SI_EE_PER , D.GPTH_SI_ER_PER , D.GPTH_SI_BUS_CODE , D.GPTH_SI_BUS_TYPE , A.GPTH_SI_BRANCH_NO , E.GPTH_SI_BRANCH_NM , E.GPTH_SI_BRANCH_AP , B.PIN_CUSTOM1 , B.COMP_FREQUENCY FROM PS_GPTH_RPT_G_TMP A LEFT OUTER JOIN PS_GPTH_COMW_VW C ON ( A.COMPANY = C.COMPANY AND A.PROCESS_INSTANCE=C.PROCESS_INSTANCE AND A.EMPLID=C.EMPLID) LEFT OUTER JOIN PS_GPTH_SI_COMPVW1 D ON (A.COMPANY=D.COMPANY AND A.PROCESS_INSTANCE=D.PROCESS_INSTANCE AND A.EMPLID=D.EMPLID) LEFT OUTER JOIN PS_GPTH_SI_BRANVW1 E ON (A.COMPANY=E.COMPANY AND A.PROCESS_INSTANCE=E.PROCESS_INSTANCE AND A.EMPLID=E.EMPLID) LEFT OUTER JOIN PS_GPTH_PERNMW_VW F ON (A.EMPLID=F.EMPLID AND A.PROCESS_INSTANCE=F.PROCESS_INSTANCE ) ,PS_GPTH_WCF_D_TMP B WHERE A.PROCESS_INSTANCE = B.PROCESS_INSTANCE AND A.EMPLID = B.EMPLID AND A.CAL_RUN_ID = B.CAL_RUN_ID AND A.EMPL_RCD = B.EMPL_RCD AND A.GP_PAYGROUP = B.GP_PAYGROUP AND A.CAL_ID = B.CAL_ID AND A.ORIG_CAL_RUN_ID = B.ORIG_CAL_RUN_ID AND A.RSLT_SEG_NUM = B.RSLT_SEG_NUM AND A.GP_RPT_KEY = B.GP_RPT_KEY

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 DESCR Character(30) VARCHAR2(30) NOT NULL Description
2 PROCESS_INSTANCE Number(10,0) DECIMAL(10) NOT NULL Process Instance
3 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
4 NAME_PREFIX Character(4) VARCHAR2(4) NOT NULL Name Prefix
5 GPTH_NAME1 Character(80) VARCHAR2(80) NOT NULL Tax-Payee's First Name
6 FIRST_NAME Character(30) VARCHAR2(30) NOT NULL First Name
7 MIDDLE_NAME Character(30) VARCHAR2(30) NOT NULL MIDDLE_NAME
8 LAST_NAME Character(30) VARCHAR2(30) NOT NULL Last Name
9 CAL_RUN_ID Character(18) VARCHAR2(18) NOT NULL Calendar Run Id
10 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Record
11 GP_PAYGROUP Character(10) VARCHAR2(10) NOT NULL Global Payroll pay group
12 CAL_ID Character(18) VARCHAR2(18) NOT NULL calendar id
13 ORIG_CAL_RUN_ID Character(18) VARCHAR2(18) NOT NULL Original Calendar Group ID
14 RSLT_SEG_NUM Number(4,0) SMALLINT NOT NULL Result Segment Number
15 GP_RPT_KEY Character(22) VARCHAR2(22) NOT NULL Output Result Key
16 PRD_BGN_DT Date(10) DATE Period Begin Date
17 PRD_END_DT Date(10) DATE Pay Period End Date
18 SEG_BGN_DT Date(10) DATE Payee Process Segment's Begin Date
19 SEG_END_DT Date(10) DATE Payee Process Segment's End Date
20 PYMT_DT Date(10) DATE Payment Date
21 CAL_PRD_ID Character(10) VARCHAR2(10) NOT NULL Calendar Period ID
22 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country
23 PIN_GROSS_VAL Signed Number(20,6) DECIMAL(18,6) NOT NULL Gross Pay Value
24 PIN_NET_VAL Signed Number(20,6) DECIMAL(18,6) NOT NULL Net Pay Value
25 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
26 CUR_RT_TYPE Character(5) VARCHAR2(5) NOT NULL Currency Rate Type
27 RUN_TYPE Character(10) VARCHAR2(10) NOT NULL Run Type Name
28 PAY_ENTITY Character(10) VARCHAR2(10) NOT NULL Pay Entity
29 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
30 COMPANY Character(3) VARCHAR2(3) NOT NULL Company
31 ESTABID Character(12) VARCHAR2(12) NOT NULL Establishment ID
32 SETID_DEPT Character(5) VARCHAR2(5) NOT NULL Department Set ID
33 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
34 SETID_LOCATION Character(5) VARCHAR2(5) NOT NULL Location Set ID
35 LOCATION Character(10) VARCHAR2(10) NOT NULL Location Code
36 PIN_NUM Number(8,0) INTEGER NOT NULL PIN Number
37 INSTANCE Number(3,0) SMALLINT NOT NULL Instance Number
38 ACM_FROM_DT Date(10) DATE From Date
39 ACM_THRU_DT Date(10) DATE Through Date
40 SLICE_BGN_DT Date(10) DATE Element Slice Begin Date
41 SLICE_END_DT Date(10) DATE Element Slice End Date
42 CALC_RSLT_VAL Signed Number(20,6) DECIMAL(18,6) NOT NULL Calculation Numeric Result
43 BASE_RSLT_VAL Signed Number(20,6) DECIMAL(18,6) NOT NULL Calculated Base Value
44 RATE_RSLT_VAL Signed Number(20,6) DECIMAL(18,6) NOT NULL Rate Result Value
45 UNIT_RSLT_VAL Signed Number(20,6) DECIMAL(18,6) NOT NULL Number of units used in result calculation
46 PCT_RSLT_VAL Signed Number(20,6) DECIMAL(18,6) NOT NULL Percent Result Value
47 RSLT_ADD_ARR Signed Number(20,6) DECIMAL(18,6) NOT NULL Amount Added To Arrears
48 RSLT_NOT_TKN Signed Number(20,6) DECIMAL(18,6) NOT NULL Amount Not Taken
49 RSLT_PAYBK Signed Number(20,6) DECIMAL(18,6) NOT NULL Payback Amount Result
50 RSLT_XFER_VAL Signed Number(20,6) DECIMAL(18,6) NOT NULL Bank Transfer Value of Deduct
51 BASE_ADJ_VAL Signed Number(20,6) DECIMAL(18,6) NOT NULL Base Adjustment
52 CALC_ADJ_VAL Signed Number(20,6) DECIMAL(18,6) NOT NULL Calculation Adjustment Value
53 UNIT_ADJ_VAL Signed Number(20,6) DECIMAL(18,6) NOT NULL Unit Adjustment
54 USER_ADJ_VAL Signed Number(20,6) DECIMAL(18,6) NOT NULL User Adjustment Value
55 USER_KEY1 Character(25) VARCHAR2(25) NOT NULL User Key 1
56 PIN_TYPE Character(2) VARCHAR2(2) NOT NULL Element Type
57 PIN_NM Character(18) VARCHAR2(18) NOT NULL Element Name field
58 PIN_CODE Character(22) VARCHAR2(22) NOT NULL Unique identifier of a PIN (alternate to PIN number). critical for use in merging packages of elements from one database onto another when PINs may or may not be renumbered as they are moved across. Constructed from PIN_NM + COUNTRY of the element definition (GP_PIN)
59 GPTH_SI_ER_ACCT Character(10) VARCHAR2(10) NOT NULL GPTH_SI_ER_ACCT
60 GPTH_SI_EE_PER Number(5,2) DECIMAL(4,2) NOT NULL Employee Contribution Rate
61 GPTH_SI_ER_PER Number(5,2) DECIMAL(4,2) NOT NULL Employer Contribution Rate
62 GPTH_SI_BUS_CODE Character(10) VARCHAR2(10) NOT NULL This field will be used to store total business type code information.
63 GPTH_SI_BUS_TYPE Character(40) VARCHAR2(40) NOT NULL This field will be used to store business type information.
64 GPTH_SI_BRANCH_NO Character(6) VARCHAR2(6) NOT NULL Social Security Branch Number
65 GPTH_SI_BRANCH_NM Character(50) VARCHAR2(50) NOT NULL Social Security Branch Name
66 GPTH_SI_BRANCH_AP Character(40) VARCHAR2(40) NOT NULL This field will be used to store social security area/province information.
67 PIN_CUSTOM1 Character(20) VARCHAR2(20) NOT NULL Customer FIelds
68 COMP_FREQUENCY Character(5) VARCHAR2(5) NOT NULL Compensation Frequency
A=Annual
B=Biweekly
C=Contract
D=Daily
H=Hourly
M=Monthly
S=Semimonthly
W=Weekly

Prompt Table: COMP_FREQ_VW