GPCH_RCVR_VW(SQL View) |
Index Back |
---|---|
Receiver detailsThis table contains details for the receiver row i.e which employee for which month is contributing the amount. |
SELECT DISTINCT PMT.CAL_RUN_ID ,PMT.EMPLID ,PMT.EMPL_RCD ,PMT.GP_PAYGROUP ,PMT.CAL_ID ,PMT.ORIG_CAL_RUN_ID ,PMT.RSLT_SEG_NUM , PMT.PIN_NUM , PMT.INSTANCE , PMT.RECIPIENT_TAG , PMT.RECIPIENT_ID , PMT.RECIPIENT_NAME , PMT.SEG_END_DT , PMT.PMT_TYPE , %Sql(FUNCLIB_HR_STRING_RTRIM, %sql(FUNCLIB_SUBSTRING,( ( SELECT MESSAGE_TEXT FROM PSMSGCATDEFN WHERE MESSAGE_SET_NBR = 17051 AND MESSAGE_NBR = 216 AND EXISTS ( SELECT LANGUAGE_CD FROM PSOPTIONS WHERE LANGUAGE_CD IN ( SELECT PERS.LANG_CD FROM PS_PERS_DATA_EFFDT PERS WHERE PERS.EMPLID = PMT.EMPLID AND PERS.LANG_CD IN ('FRA','ENG','GER','ITA') AND PERS.EFFDT = ( SELECT MAX(PERS1.EFFDT) FROM PS_PERS_DATA_EFFDT PERS1 WHERE PERS1.EMPLID = PMT.EMPLID AND PERS1.LANG_CD = PERS.LANG_CD AND PERS1.EFFDT <= %CurrentDateIn)))) %Concat ( SELECT MESSAGE_TEXT FROM PSMSGCATLANG WHERE MESSAGE_SET_NBR = 17051 AND MESSAGE_NBR = 216 AND EXISTS ( SELECT LANGUAGE_CD FROM PSOPTIONS WHERE LANGUAGE_CD NOT IN ( SELECT PERS.LANG_CD FROM PS_PERS_DATA_EFFDT PERS WHERE PERS.EMPLID = PMT.EMPLID AND PERS.LANG_CD IN ('FRA','ENG','GER','ITA') AND PERS.EFFDT = ( SELECT MAX(PERS1.EFFDT) FROM PS_PERS_DATA_EFFDT PERS1 WHERE PERS1.EMPLID = PMT.EMPLID AND PERS1.LANG_CD=PERS.LANG_CD AND PERS1.EFFDT <= %CurrentDateIn))) AND LANGUAGE_CD IN ( SELECT PERS.LANG_CD FROM PS_PERS_DATA_EFFDT PERS WHERE PERS.EMPLID = PMT.EMPLID AND PERS.EFFDT = ( SELECT MAX(PERS1.EFFDT) FROM PS_PERS_DATA_EFFDT PERS1 WHERE PERS1.EMPLID = PMT.EMPLID AND PERS1.LANG_CD=PERS.LANG_CD))) %Concat ( SELECT MESSAGE_TEXT FROM PSMSGCATDEFN WHERE MESSAGE_SET_NBR = 17051 AND MESSAGE_NBR = 216 AND EXISTS ( SELECT PERS.LANG_CD FROM PS_PERS_DATA_EFFDT PERS WHERE PERS.EMPLID = PMT.EMPLID AND PERS.LANG_CD NOT IN ('FRA','ENG','GER','ITA') AND PERS.EFFDT = ( SELECT MAX(PERS1.EFFDT) FROM PS_PERS_DATA_EFFDT PERS1 WHERE PERS1.EMPLID = PMT.EMPLID AND PERS1.LANG_CD=PERS.LANG_CD AND PERS1.EFFDT <= %CurrentDateIn)))),1,17)) %Concat ' ' %Concat PMT.EMPLID %Concat ' ' %Concat %Sql(FUNCLIB_HR_STRING_RTRIM, %sql(FUNCLIB_SUBSTRING,( ( SELECT MESSAGE_TEXT FROM PSMSGCATDEFN WHERE MESSAGE_SET_NBR = 17051 AND MESSAGE_NBR = 217 AND EXISTS ( SELECT LANGUAGE_CD FROM PSOPTIONS WHERE LANGUAGE_CD IN ( SELECT PERS.LANG_CD FROM PS_PERS_DATA_EFFDT PERS WHERE PERS.EMPLID = PMT.EMPLID AND PERS.LANG_CD IN ('FRA','ENG','GER','I TA') AND PERS.EFFDT = ( SELECT MAX(PERS1.EFFDT) FROM PS_PERS_DATA_EFFDT PERS1 WHERE PERS1.EMPLID = PMT.EMPLID AND PERS1.LANG_CD = PERS.LANG_CD AND PERS1.EFFDT <= %CurrentDateIn)))) %Concat ( SELECT MESSAGE_TEXT FROM PSMSGCATLANG WHERE MESSAGE_SET_NBR = 17051 AND MESSAGE_NBR = 217 AND EXISTS ( SELECT LANGUAGE_CD FROM PSOPTIONS WHERE LANGUAGE_CD NOT IN ( SELECT PERS.LANG_CD FROM PS_PERS_DATA_EFFDT PERS WHERE PERS.EMPLID = PMT.EMPLID AND PERS.LANG_CD IN ('FRA','ENG','GER','ITA') AND PERS.EFFDT = ( SELECT MAX(PERS1.EFFDT) FROM PS_PERS_DATA_EFFDT PERS1 WHERE PERS1.EMPLID = PMT.EMPLID AND PERS1.LANG_CD=PERS.LANG_CD AND PERS1.EFFDT <= %CurrentDateIn))) AND LANGUAGE_CD IN ( SELECT PERS.LANG_CD FROM PS_PERS_DATA_EFFDT PERS WHERE PERS.EMPLID = PMT.EMPLID AND PERS.EFFDT = ( SELECT MAX(PERS1.EFFDT) FROM PS_PERS_DATA_EFFDT PERS1 WHERE PERS1.EMPLID = PMT.EMPLID AND PERS1.LANG_CD=PERS.LANG_CD))) %Concat ( SELECT MESSAGE_TEXT FROM PSMSGCATDEFN WHERE MESSAGE_SET_NBR = 17051 AND MESSAGE_NBR = 217 AND EXISTS ( SELECT PERS.LANG_CD FROM PS_PERS_DATA_EFFDT PERS WHERE PERS.EMPLID = PMT.EMPLID AND PERS.LANG_CD NOT IN ('FRA','ENG','GER','ITA') AND PERS.EFFDT = ( SELECT MAX(PERS1.EFFDT) FROM PS_PERS_DATA_EFFDT PERS1 WHERE PERS1.EMPLID = PMT.EMPLID AND PERS1.LANG_CD=PERS.LANG_CD AND PERS1.EFFDT <= %CurrentDateIn)))),1,4)) %Concat ' ' %Concat %Sql(FUNCLIB_HR_CHAR,%Sql(FUNCLIB_HR_DATE_MONTH,PMT.SEG_END_DT)) %Concat '/' %Concat %Sql(FUNCLIB_HR_CHAR,%Sql(FUNCLIB_HR_DATE_YEAR,PMT.SEG_END_DT)) FROM PS_GP_PAYMENT PMT WHERE PMT.PMT_TYPE <> '01' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | CAL_RUN_ID | Character(18) | VARCHAR2(18) NOT NULL | Calendar Run Id |
2 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee 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 | PIN_NUM | Number(8,0) | INTEGER NOT NULL | PIN Number |
9 | INSTANCE | Number(3,0) | SMALLINT NOT NULL | Instance Number |
10 | RECIPIENT_TAG | Number(3,0) | SMALLINT NOT NULL | Used to identify recipients for E/D, PI |
11 | RECIPIENT_ID | Character(8) | VARCHAR2(8) NOT NULL | Payment recipient ID |
12 | RECIPIENT_NAME | Character(30) | VARCHAR2(30) NOT NULL | Recipient Name |
13 | SEG_END_DT | Date(10) | DATE | Payee Process Segment's End Date |
14 | PMT_TYPE | Character(2) | VARCHAR2(2) NOT NULL |
Payment Type
01=Net Pay Distribution 02=General Recipient Deduction 03=Individual Recipient Deduction |
15 | DESCR40 | Character(40) | VARCHAR2(40) NOT NULL | Description |