GP_RUN_TYPE2_VW(SQL View) |
Index Back |
---|---|
Payroll Run Types ViewView of Run Types with a CALC TYPE of P (payroll) that match the current country key of the buffer (based on country of PIN_PRC_NUM associated with the runtype) |
SELECT C.COUNTRY , R1.RUN_TYPE , R2.EFFDT , R1.DESCR , PIN.COUNTRY FROM PS_GP_RUN_TYPE R1 , PS_GP_RUN_TYPE_DTL R2 , PS_GP_PIN PIN , PS_GP_COUNTRY C WHERE R1.RUN_TYPE = R2.RUN_TYPE AND R1.CALC_TYPE = 'P' AND R2.EFF_STATUS = 'A' AND R2.EFFDT = ( SELECT MAX(EFFDT) FROM PS_GP_RUN_TYPE_DTL R3 WHERE R3.RUN_TYPE = R2.RUN_TYPE AND R3.EFFDT <= %CurrentDateIn) AND PIN.PIN_NUM = R2.PIN_PRC_NUM AND (PIN.USED_BY = 'A' OR (PIN.USED_BY = 'C' AND C.COUNTRY = PIN.COUNTRY)) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL | Country |
2 | RUN_TYPE | Character(10) | VARCHAR2(10) NOT NULL |
Run Type Name
Prompt Table: GP_RUN_TYPE |
3 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %date |
4 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
5 | COUNTRY_CD | Character(3) | VARCHAR2(3) NOT NULL | Country Code |