GPCH_GL_ERN_VW(SQL View) |
Index Back |
---|---|
Bookings for selected emplidBookings for selected emplid in selected months |
SELECT G.EMPLID , G.EMPL_RCD , G.CAL_RUN_ID , G.CAL_ID ,G.ACCOUNT , A.DESCR , G.GROUPING_CODE , P.PIN_NM , P.DESCR , CC.HPYP_CC_ID , SUM (G.CALC_RSLT_VAL ) ,A.SETID FROM PS_GP_GL_DATA G , PS_GP_PIN P , PS_GL_ACCOUNT_TBL A , PS_GP_CC_MAP CC WHERE G.PIN_NUM = P.PIN_NUM AND G.ACCOUNT = A.ACCOUNT AND A.EFFDT = ( SELECT MAX(A1.EFFDT) FROM PS_GL_ACCOUNT_TBL A1 WHERE A.SETID = A1.SETID AND A1.EFFDT <= G.POSTING_DATE) AND CC.BUSINESS_UNIT = G.BUSINESS_UNIT AND CC.PIN_CHART2_VAL = G.PIN_CHART2_VAL AND CC.EFFDT = ( SELECT MAX (CC1.EFFDT) FROM PS_GP_CC_MAP CC1 WHERE CC.BUSINESS_UNIT = CC1.BUSINESS_UNIT AND CC.PAY_ENTITY = CC1.PAY_ENTITY AND CC.HPYP_CNTRL_AREA = CC1.HPYP_CNTRL_AREA AND CC.PIN_CHART2_VAL = CC1.PIN_CHART2_VAL AND CC1.EFFDT <= G.POSTING_DATE) GROUP BY G.EMPLID , G.EMPL_RCD , G.CAL_RUN_ID , G.CAL_ID ,G.ACCOUNT , A.DESCR , G.GROUPING_CODE , P.PIN_NM , P.DESCR , CC.HPYP_CC_ID ,A.SETID 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 | EMPL_RCD | Number(3,0) | SMALLINT NOT NULL | Empl Rcd Nbr |
3 | CAL_RUN_ID | Character(18) | VARCHAR2(18) NOT NULL | Calendar Run Id |
4 | CAL_ID | Character(18) | VARCHAR2(18) NOT NULL | calendar id |
5 | ACCOUNT | Character(10) | VARCHAR2(10) NOT NULL | Account |
6 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
7 | 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. |
8 | PIN_NM | Character(18) | VARCHAR2(18) NOT NULL | Element Name field |
9 | DESCR1 | Character(30) | VARCHAR2(30) NOT NULL | Descr |
10 | HPYP_CC_ID | Character(12) | VARCHAR2(12) NOT NULL | Cost Center ID. |
11 | CALC_RSLT_VAL | Signed Number(20,6) | DECIMAL(18,6) NOT NULL | Calculation Numeric Result |
12 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |