GPDE_RP_CSEG_VW(SQL View) |
Index Back |
---|---|
Payee Segment StatusPayee Segment Status with reversal filter (clean segment status). |
SELECT S1.EMPLID , S1.CAL_RUN_ID , S1.EMPL_RCD , S1.GP_PAYGROUP , S1.CAL_ID , S1.ORIG_CAL_RUN_ID , S1.RSLT_SEG_NUM , S1.RSLT_VER_NUM , S1.RSLT_REV_NUM , S1.PYMT_KEY1 , S1.PYMT_KEY2 , S1.PYMT_KEY3 , S1.PYMT_KEY4 , S1.BUSINESS_UNIT , S1.SEG_BGN_DT , S1.SEG_END_DT , S1.CALC_ACTION , S1.PYE_CALC_STAT , S1.GP_CALC_TS , S1.SEG_STATUS , S1.PIN_NET_NUM , S1.PIN_NET_VAL , S1.PIN_GROSS_NUM , S1.PIN_GROSS_VAL , S1.CUR_RT_TYPE , S1.GP_ASOF_DT_EXG_RT , S1.FRST_SEG_IND , S1.LAST_SEG_IND , S1.SEG_SRC_ID FROM PS_GP_PYE_SEG_STAT S1 ,PS_GP_PYE_PRC_STAT P1 WHERE S1.PYE_CALC_STAT >= '50' AND S1.CALC_ACTION='C' AND S1.EMPLID =P1.EMPLID AND S1.CAL_RUN_ID = P1.CAL_RUN_ID AND S1.EMPL_RCD = P1.EMPL_RCD AND S1.GP_PAYGROUP = P1.GP_PAYGROUP AND S1.CAL_ID =P1.CAL_ID AND S1.ORIG_CAL_RUN_ID=P1.ORIG_CAL_RUN_ID AND P1.CALC_TYPE='P' AND NOT EXISTS ( SELECT 'X' FROM PS_GP_PYE_SEG_STAT S1X WHERE S1X.EMPLID = S1.EMPLID AND S1X.EMPL_RCD = S1.EMPL_RCD AND S1X.ORIG_CAL_RUN_ID = S1.ORIG_CAL_RUN_ID AND S1X.CAL_ID = S1.CAL_ID AND S1X.GP_PAYGROUP=S1.GP_PAYGROUP AND S1X.SEG_END_DT=S1.SEG_END_DT AND S1X.SEG_BGN_DT=S1.SEG_BGN_DT AND S1X.CALC_ACTION IN ('V','Z') AND S1X.PYE_CALC_STAT >= '50' ) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
2 | CAL_RUN_ID | Character(18) | VARCHAR2(18) NOT NULL | Calendar Run Id |
3 | EMPL_RCD | Number(3,0) | SMALLINT NOT NULL | Empl Record |
4 | GP_PAYGROUP | Character(10) | VARCHAR2(10) NOT NULL | Global Payroll pay group |
5 | CAL_ID | Character(18) | VARCHAR2(18) NOT NULL | calendar id |
6 | ORIG_CAL_RUN_ID | Character(18) | VARCHAR2(18) NOT NULL | Original Calendar Group ID |
7 | RSLT_SEG_NUM | Number(4,0) | SMALLINT NOT NULL | Result Segment Number |
8 | RSLT_VER_NUM | Number(4,0) | SMALLINT NOT NULL | Result Version Number |
9 | RSLT_REV_NUM | Number(4,0) | SMALLINT NOT NULL | Result Revision Number |
10 | PYMT_KEY1 | Character(25) | VARCHAR2(25) NOT NULL | Payment key field. Used for optional tracking of a payment per Department, Company, Establishment or Contract Number |
11 | PYMT_KEY2 | Character(25) | VARCHAR2(25) NOT NULL | Payment key field. Used for optional tracking of a payment per Department, Company, Establishment or Contract Number |
12 | PYMT_KEY3 | Character(25) | VARCHAR2(25) NOT NULL | Payment key field. Used for optional tracking of a payment per Department, Company, Establishment or Contract Number |
13 | PYMT_KEY4 | Character(25) | VARCHAR2(25) NOT NULL | Payment key field. Used for optional tracking of a payment per Department, Company, Establishment or Contract Number |
14 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
15 | SEG_BGN_DT | Date(10) | DATE | Payee Process Segment's Begin Date |
16 | SEG_END_DT | Date(10) | DATE | Payee Process Segment's End Date |
17 | CALC_ACTION | Character(1) | VARCHAR2(1) NOT NULL |
Calculate Action
C=Calculate R=Calculate and Replace V=Reverse W=Reverse and Replace |
18 | PYE_CALC_STAT | Character(2) | VARCHAR2(2) NOT NULL |
Calculation Status: field indicates the processing status of a segment (payment)
00=Identified 02=Calculation Error 03=Calculation Error - Bypassed 04=Calculation Error - By Rule 11=No Segment Created 50=Calculation Successful 55=Frozen For Further Calc 70=Finalized 75=Finalized - With Banking |
19 | GP_CALC_TS | DateTime(26) | TIMESTAMP | Indicates when something (a segment) was calculated |
20 | SEG_STATUS | Character(2) | VARCHAR2(2) NOT NULL |
Segment Status
00=Active in Segment 01=Inactive in Segment |
21 | PIN_NET_NUM | Number(8,0) | INTEGER NOT NULL | Element number field |
22 | PIN_NET_VAL | Signed Number(20,6) | DECIMAL(18,6) NOT NULL | Net Pay Value |
23 | PIN_GROSS_NUM | Number(8,0) | INTEGER NOT NULL | Element number field |
24 | PIN_GROSS_VAL | Signed Number(20,6) | DECIMAL(18,6) NOT NULL | Gross Pay Value |
25 | CUR_RT_TYPE | Character(5) | VARCHAR2(5) NOT NULL | Currency Rate Type |
26 | GP_ASOF_DT_EXG_RT | Character(1) | VARCHAR2(1) NOT NULL |
This field is used as a flag to determine whether to use a default exchange rate or not.
B=Pay Period Begin Date E=Pay Period End Date P=Payment Date |
27 | FRST_SEG_IND | Character(1) | VARCHAR2(1) NOT NULL | First Segment Ind |
28 | LAST_SEG_IND | Character(1) | VARCHAR2(1) NOT NULL | Last Segment Ind |
29 | SEG_SRC_ID | Character(1) | VARCHAR2(1) NOT NULL |
Segment Source
C=Calculate I=Identify |