GPCH_GL_EESH_VW

(SQL View)
Index Back

Booking for selected Emplids

Booking for the selected Emplid and Cal_Run_ID as credit / debit

SELECT G.EMPLID ,G.ACCOUNT ,A.DESCR ,G.CAL_RUN_ID ,G.CAL_ID ,G.GROUPING_CODE ,M.HPYP_CC_ID , %subrec(GP_GL_CHART_SBR, G) , SUM(G.CALC_RSLT_VAL) , 0 FROM PS_GP_GL_DATA G , PS_GL_ACCOUNT_TBL A , PS_BUS_UNIT_TBL_HR BU , PS_GP_CC_MAP M , PS_GP_CALENDAR C WHERE G.ACCOUNT = A.ACCOUNT AND G.BUSINESS_UNIT = BU.BUSINESS_UNIT AND BU.DEFAULT_SETID = A.SETID AND A.EFFDT = ( SELECT MAX(A1.EFFDT) FROM PS_GL_ACCOUNT_TBL A1 WHERE A.SETID = A1.SETID AND A.ACCOUNT = A1.ACCOUNT AND A1.EFFDT <= G.POSTING_DATE ) AND G.GP_PAYGROUP = C.GP_PAYGROUP AND G.CAL_ID = C.CAL_ID AND G.PIN_CHART2_VAL = M.PIN_CHART2_VAL AND G.PAY_ENTITY = M.PAY_ENTITY AND G.BUSINESS_UNIT = M.BUSINESS_UNIT AND M.EFFDT = ( SELECT MAX(M1.EFFDT) FROM PS_GP_CC_MAP M1 WHERE M.PAY_ENTITY = M1.PAY_ENTITY AND M.BUSINESS_UNIT = M1.BUSINESS_UNIT AND M.HPYP_CNTRL_AREA = M1.HPYP_CNTRL_AREA AND M.PIN_CHART1_VAL = M1.PIN_CHART1_VAL AND M.PIN_CHART2_VAL = M1.PIN_CHART2_VAL ) GROUP BY G.EMPLID,G.ACCOUNT, A.DESCR, G.CAL_RUN_ID,G.CAL_ID ,G.GROUPING_CODE, M.HPYP_CC_ID, %subrec(GP_GL_CHART_SBR, G) HAVING SUM(G.CALC_RSLT_VAL) > 0.00 UNION SELECT G.EMPLID ,G.ACCOUNT , A.DESCR , G.CAL_RUN_ID ,G.CAL_ID , G.GROUPING_CODE , M.HPYP_CC_ID , %subrec(GP_GL_CHART_SBR, G) , 0 , SUM(G.CALC_RSLT_VAL) FROM PS_GP_GL_DATA G , PS_GL_ACCOUNT_TBL A , PS_BUS_UNIT_TBL_HR BU , PS_GP_CC_MAP M , PS_GP_CALENDAR C WHERE G.ACCOUNT = A.ACCOUNT AND G.BUSINESS_UNIT = BU.BUSINESS_UNIT AND BU.DEFAULT_SETID = A.SETID AND A.EFFDT = ( SELECT MAX(A1.EFFDT) FROM PS_GL_ACCOUNT_TBL A1 WHERE A.SETID = A1.SETID AND A.ACCOUNT = A1.ACCOUNT AND A1.EFFDT <= G.POSTING_DATE ) AND G.GP_PAYGROUP = C.GP_PAYGROUP AND G.CAL_ID = C.CAL_ID AND G.PIN_CHART2_VAL = M.PIN_CHART2_VAL AND G.PAY_ENTITY = M.PAY_ENTITY AND G.BUSINESS_UNIT = M.BUSINESS_UNIT AND M.EFFDT = ( SELECT MAX(M1.EFFDT) FROM PS_GP_CC_MAP M1 WHERE M.PAY_ENTITY = M1.PAY_ENTITY AND M.BUSINESS_UNIT = M1.BUSINESS_UNIT AND M.HPYP_CNTRL_AREA = M1.HPYP_CNTRL_AREA AND M.PIN_CHART1_VAL = M1.PIN_CHART1_VAL AND M.PIN_CHART2_VAL = M1.PIN_CHART2_VAL ) GROUP BY G.EMPLID,G.ACCOUNT, A.DESCR, G.CAL_RUN_ID,G.CAL_ID ,G.GROUPING_CODE, M.HPYP_CC_ID, %subrec(GP_GL_CHART_SBR, G) HAVING SUM(G.CALC_RSLT_VAL) < 0.00

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 ACCOUNT Character(10) VARCHAR2(10) NOT NULL Account
3 DESCR Character(30) VARCHAR2(30) NOT NULL Description
4 CAL_RUN_ID Character(18) VARCHAR2(18) NOT NULL Calendar Run Id
5 CAL_ID Character(18) VARCHAR2(18) NOT NULL calendar id
6 GROUPING_CODE Character(15) VARCHAR2(15) NOT NULL Identifier (name) used to group a number of elements (earnings or deductions) that can be treated equally (posted to the same account) for GL purposes.
7 HPYP_CC_ID Character(12) VARCHAR2(12) NOT NULL Cost Center ID.
8 PIN_CHART1_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
9 PIN_CHART2_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
10 PIN_CHART3_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value`
11 PIN_CHART4_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
12 PIN_CHART5_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
13 PIN_CHART6_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
14 PIN_CHART7_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
15 PIN_CHART8_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
16 PIN_CHART9_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
17 PIN_CHART10_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
18 PIN_CHART11_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
19 PIN_CHART12_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
20 PIN_CHART13_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
21 PIN_CHART14_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
22 PIN_CHART15_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
23 PIN_CHART16_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
24 PIN_CHART17_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
25 PIN_CHART18_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
26 PIN_CHART19_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
27 PIN_CHART20_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
28 PIN_CHART21_VAL Character(15) VARCHAR2(15) NOT NULL pin chart field value
29 GPCH_RP_AMOUNT1 Signed Number(20,6) DECIMAL(18,6) NOT NULL Rate Result Value
30 GPCH_RP_AMOUNT2 Signed Number(20,6) DECIMAL(18,6) NOT NULL Rate Result Value