GPAU_SS_PSLP_VW

(SQL View)
Index Back

GP AUS Self Serv Payslip

Global Payroll Australia self service online payslip

SELECT C.EMPLID , C.EMPL_RCD , C.GP_PAYGROUP , D.CAL_ID , C.PYMT_DT , D.CAL_RUN_ID , D.RSLT_SEG_NUM , C1.NAME , C.PAY_ENTITY , D.SEG_BGN_DT , D.SEG_END_DT , C.PRD_BGN_DT , C.PRD_END_DT FROM PS_HCR_PER_NAME_I C1 , PS_GP_PYE_PRC_STAT C , PS_GP_PYE_SEG_STAT D , PS_GP_RUN_TYPE GRT , PS_GP_CAL_RUN GPCAL WHERE C1.EMPLID = C.EMPLID AND C1.NAME_TYPE = 'PRI' AND GPCAL.CAL_RUN_ID = D.CAL_RUN_ID AND GPCAL.COUNTRY = 'AUS' AND C1.EFFDT = ( SELECT MAX(C11.EFFDT) FROM PS_HCR_PER_NAME_I C11 WHERE C11.EMPLID = C1.EMPLID AND C11.NAME_TYPE = C1.NAME_TYPE AND C11.EFFDT <= C.PYMT_DT) AND C.CAL_RUN_ID = D.CAL_RUN_ID AND D.CAL_RUN_ID = D.ORIG_CAL_RUN_ID AND C.EMPLID = D.EMPLID AND C.EMPL_RCD = D.EMPL_RCD AND C.GP_PAYGROUP = D.GP_PAYGROUP AND C.CAL_ID = D.CAL_ID AND C.RUN_TYPE = GRT.RUN_TYPE AND GRT.CALC_TYPE = 'P' AND (C.PRC_ORD_TS = ( SELECT MAX(A21.PRC_ORD_TS) FROM PS_GP_PYE_PRC_STAT A21 WHERE A21.EMPLID = C.EMPLID AND A21.CAL_RUN_ID = C.CAL_RUN_ID AND A21.ORIG_CAL_RUN_ID = C.CAL_RUN_ID AND A21.EMPL_RCD = C.EMPL_RCD AND A21.CALC_TYPE = 'P' AND A21.GP_PAYGROUP = C.GP_PAYGROUP AND A21.PRD_TYPE = 'C' AND A21.PRD_END_DT <= C.PRC_END_DT) OR C.PRD_END_DT > C.PRC_END_DT) AND D.RSLT_REV_NUM = ( SELECT MIN(D1.RSLT_REV_NUM) FROM PS_GP_PYE_SEG_STAT D1 WHERE D.EMPLID = D1.EMPLID AND D.CAL_RUN_ID = D1.CAL_RUN_ID AND D.EMPL_RCD = D1.EMPL_RCD AND D.GP_PAYGROUP = D1.GP_PAYGROUP AND D.CAL_ID = D1.CAL_ID AND D.RSLT_SEG_NUM = D1.RSLT_SEG_NUM ) AND D.PYE_CALC_STAT IN ('60', '65', '70','75')

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Rcd Nbr
3 GP_PAYGROUP Character(10) VARCHAR2(10) NOT NULL Global Payroll pay group
4 CAL_ID Character(18) VARCHAR2(18) NOT NULL calendar id
5 PYMT_DT Date(10) DATE Payment Date
6 CAL_RUN_ID Character(18) VARCHAR2(18) NOT NULL Calendar Run Id
7 RSLT_SEG_NUM Number(4,0) SMALLINT NOT NULL Result Segment Number
8 NAME Character(50) VARCHAR2(50) NOT NULL Name
9 PAY_ENTITY Character(10) VARCHAR2(10) NOT NULL Pay Entity
10 SEG_BGN_DT Date(10) DATE Payee Process Segment's Begin Date
11 SEG_END_DT Date(10) DATE Payee Process Segment's End Date
12 PRD_BGN_DT Date(10) DATE Period Begin Date
13 PRD_END_DT Date(10) DATE Pay Period End Date