GPIN_SS_PSLP_VW(SQL View) |
Index Back |
---|---|
Self Serv Payslip for IndiaGlobal Payroll India self service online payslip |
SELECT A.EMPLID , A.EMPL_RCD , A.GP_PAYGROUP , D.CAL_ID , DTL.PYMT_DT , D.CAL_RUN_ID , B.NAME , A.SETID_DEPT , A.DEPTID , A.SETID_LOCATION , A.LOCATION , A.COMPANY , D.RSLT_SEG_NUM , A.COMP_FREQUENCY , A.COMPRATE , G.DESCR , DTL.PAY_ENTITY , D.SEG_BGN_DT , D.SEG_END_DT FROM PS_JOB A , PS_PERSON_NAME B , PS_GP_PYE_SEG_STAT D , PS_JOBCODE_TBL G , PS_GP_RUN_TYPE GRT , PS_GP_CAL_RUN GPCAL , PS_GP_PYE_PRC_STAT DTL WHERE A.EMPLID = B.EMPLID AND A.EMPLID = D.EMPLID AND A.EFFDT = ( SELECT MAX(A1.EFFDT) FROM PS_JOB A1 WHERE A1.EMPLID = A.EMPLID AND A1.EMPL_RCD = A.EMPL_RCD AND A1.EFFDT <= D.SEG_END_DT) AND A.EFFSEQ = ( SELECT MAX(A2.EFFSEQ) FROM PS_JOB A2 WHERE A2.EMPLID = A.EMPLID AND A2.EMPL_RCD = A.EMPL_RCD AND A2.EFFDT = A.EFFDT) AND D.CAL_RUN_ID = GPCAL.CAL_RUN_ID AND A.EMPL_RCD= D.EMPL_RCD AND D.GP_CALC_TS = ( SELECT MAX(A21.GP_CALC_TS) FROM PS_GP_PYE_SEG_STAT A21 WHERE A21.EMPLID = D.EMPLID AND A21.CAL_RUN_ID = D.CAL_RUN_ID AND A21.ORIG_CAL_RUN_ID = D.CAL_RUN_ID AND A21.EMPL_RCD = D.EMPL_RCD AND A21.GP_PAYGROUP = D.GP_PAYGROUP AND A21.RSLT_SEG_NUM = D.RSLT_SEG_NUM) AND GPCAL.COUNTRY = 'IND' AND DTL.CAL_RUN_ID = D.CAL_RUN_ID AND DTL.GP_PAYGROUP = D.GP_PAYGROUP AND DTL.CAL_ID = D.CAL_ID AND DTL.EMPLID = D.EMPLID AND DTL.EMPL_RCD = D.EMPL_RCD AND DTL.CALC_TYPE = 'P' AND A.SETID_JOBCODE = G.SETID AND A.JOBCODE = G.JOBCODE AND DTL.RUN_TYPE = GRT.RUN_TYPE AND GRT.CALC_TYPE = 'P' AND G.EFFDT = ( SELECT MAX(G1.EFFDT) FROM PS_JOBCODE_TBL G1 WHERE G1.SETID = G.SETID AND G1.JOBCODE = G.JOBCODE AND G1.EFFDT <= D.SEG_END_DT) 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 Record |
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 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |
8 | SETID_DEPT | Character(5) | VARCHAR2(5) NOT NULL | Department Set ID |
9 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL | Department |
10 | SETID_LOCATION | Character(5) | VARCHAR2(5) NOT NULL | Location Set ID |
11 | LOCATION | Character(10) | VARCHAR2(10) NOT NULL | Location Code |
12 | COMPANY | Character(3) | VARCHAR2(3) NOT NULL | Company |
13 | RSLT_SEG_NUM | Number(4,0) | SMALLINT NOT NULL | Result Segment Number |
14 | 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 |
15 | COMPRATE | Number(19,6) | DECIMAL(18,6) NOT NULL | Compensation Rate |
16 | JOBTITLE | Character(30) | VARCHAR2(30) NOT NULL | Job Title |
17 | PAY_ENTITY | Character(10) | VARCHAR2(10) NOT NULL | Pay Entity |
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 |