GP_AUD_INDX_VW2(SQL View) |
Index Back |
---|---|
ERC Main index element vwERC Main view to fill index element list details table |
SELECT A.EMPLID , A.EMPL_RCD , A.GP_PAYGROUP , A.CAL_RUN_ID , A.ORIG_CAL_RUN_ID , A.CAL_ID , A.AUDIT_SORT_KEY , A.PIN_CHAIN_SEQ_NUM , A.PIN_CHAIN_LVL_NUM , A.PIN_CHAIN_RSLT_NUM , B.FLD_FMT , A.EXPANDED_FLAG , 'Y' , rpad(' ' ,A.PIN_CHAIN_LVL_NUM ,' ') || B.PIN_NM , CASE WHEN B.FLD_FMT='1' THEN A.CHR_PIN_VAL WHEN B.FLD_FMT='2' THEN CASE WHEN A.DATE_PIN_VAL IS NOT NULL THEN to_char(A.DATE_PIN_VAL,'MM/DD/YYYY') ELSE 'NULL' END WHEN B.FLD_FMT='3' OR B.FLD_FMT='4' THEN CASE WHEN (A.CALC_RSLT_VAL < 1 AND A.CALC_RSLT_VAL > -1 AND A.CALC_RSLT_VAL <> 0) THEN to_char(A.CALC_RSLT_VAL ,'FM999999999990D099999') ELSE to_char(A.CALC_RSLT_VAL-A.CALC_ADJ_VAL) END WHEN B.FLD_FMT='5' THEN to_char(A.PIN_VAL_NUM) END , A.SLICE_BGN_DT , A.SLICE_END_DT , A.DIFF_SECONDS , A.SUM_INSTANCE_IND , b.descr , a.pin_num , B.PIN_TYPE , A.GP_PARENT_SEQ_NUM , A.PIN_PRC_NUM , A.PIN_SECT_NUM , A.SEQ_NUM8 , A.PIN_STATUS_IND , A.RSLT_SEG_NUM , A.CALC_ADJ_VAL FROM PS_GP_AUDIT_TBL A ,PS_GP_PIN B WHERE A.PIN_NUM=B.PIN_NUM AND A.PIN_STATUS_IND <> (CASE WHEN B.PIN_TYPE='FM' OR B.PIN_TYPE='AR' THEN '1' ELSE '9' END) |
# | 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 Record |
3 | GP_PAYGROUP | Character(10) | VARCHAR2(10) NOT NULL | Global Payroll pay group |
4 | CAL_RUN_ID | Character(18) | VARCHAR2(18) NOT NULL | Calendar Run Id |
5 | ORIG_CAL_RUN_ID | Character(18) | VARCHAR2(18) NOT NULL | Original Calendar Group ID |
6 | CAL_ID | Character(18) | VARCHAR2(18) NOT NULL | calendar id |
7 | AUDIT_SORT_KEY | Number(8,0) | INTEGER NOT NULL | Chain Sort Key |
8 | PIN_CHAIN_SEQ_NUM | Number(4,0) | SMALLINT NOT NULL | Processing Sequence of an Element in an Audit Chain |
9 | PIN_CHAIN_LVL_NUM | Number(4,0) | SMALLINT NOT NULL | Depth Level of Element Resolution in an Audit Chain |
10 | PIN_CHAIN_RSLT_NUM | Number(4,0) | SMALLINT NOT NULL | Resolution Sequence of an Element in an Audit Chain |
11 | FLD_FMT | Character(1) | VARCHAR2(1) NOT NULL |
Field format for Global Payroll elements
1=Character 2=Date 3=Monetary 4=Decimal 5=Element Pointer 6=Not Applicable |
12 | EXPANDED_FLAG | Character(1) | VARCHAR2(1) NOT NULL | Expanded Flag |
13 | COLLAPSE_ALL_FLAG | Character(1) | VARCHAR2(1) NOT NULL |
Collapse All
Default Value: Y |
14 | GP_AUD_TXT80 | Character(80) | VARCHAR2(80) NOT NULL | Element description names |
15 | CHAR_VAL | Character(50) | VARCHAR2(50) NOT NULL | Character Value |
16 | SLICE_BGN_DT | Date(10) | DATE | Element Slice Begin Date |
17 | SLICE_END_DT | Date(10) | DATE | Element Slice End Date |
18 | DIFF_SECONDS | Number(19,6) | DECIMAL(18,6) NOT NULL | Resolution Duration in Seconds |
19 | SUM_INSTANCE_IND | Character(1) | VARCHAR2(1) NOT NULL | Indicates which lines to sum for the first Element Chain view |
20 | TEXT80_1 | Character(80) | VARCHAR2(80) NOT NULL | 80 Char text field |
21 | PIN_NUM | Number(8,0) | INTEGER NOT NULL | PIN Number |
22 | PIN_TYPE | Character(2) | VARCHAR2(2) NOT NULL | Element Type |
23 | GP_PARENT_SEQ_NUM | Number(6,0) | INTEGER NOT NULL | Parent sequence number |
24 | PIN_PRC_NUM | Number(8,0) | INTEGER NOT NULL | Process Element |
25 | PIN_SECT_NUM | Number(8,0) | INTEGER NOT NULL | Element number field |
26 | SEQ_NUM8 | Number(8,0) | INTEGER NOT NULL | Sequence Number |
27 | PIN_STATUS_IND | Character(1) | VARCHAR2(1) NOT NULL |
Element Resolution Status
0=PIN Successfully Resolved 1=PIN Skipped 2=PIN could not be Resolved 3=PIN in Error |
28 | RSLT_SEG_NUM | Number(4,0) | SMALLINT NOT NULL | Result Segment Number |
29 | GP_AUD_ADJ_VAL | Signed Number(16,2) | DECIMAL(14,2) NOT NULL | Calculation Adjustment Value |