SPA_EXP_LC_VW(SQL View) |
Index Back |
---|---|
Expense Life Cycle ViewExpense Life Cycle View |
SELECT B.BUSINESS_UNIT , B.WORK_ORDER_ID , W.WO_NAME , A.PERSON_ID , A.SHEET_ID , A.SHEET_NAME , SUM(L.MONETARY_AMOUNT) , L.CURRENCY_CD , A.EXP_HDR_STATUS FROM PS_SPA_SHEET_HDR A , PS_SPA_EXP_XREF B , PS_SPA_SHEET_LINE L , PS_SPF_WORDERREC W WHERE A.SHEET_ID = B.SHEET_ID AND A.SHEET_ID = L.SHEET_ID AND W.BUSINESS_UNIT = B.BUSINESS_UNIT AND W.WORK_ORDER_ID = B.WORK_ORDER_ID GROUP BY B.BUSINESS_UNIT , B.WORK_ORDER_ID , W.WO_NAME, A.SHEET_ID , A.SHEET_NAME , A.PERSON_ID , L.CURRENCY_CD,A.EXP_HDR_STATUS |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | WORK_ORDER_ID | Character(15) | VARCHAR2(15) NOT NULL | Work Order ID |
3 | WO_NAME | Character(30) | VARCHAR2(30) NOT NULL | Work Order Name |
4 | PERSON_ID | Character(15) | VARCHAR2(15) NOT NULL | Person ID |
5 | SHEET_ID | Character(10) | VARCHAR2(10) NOT NULL | Report ID |
6 | SHEET_NAME | Character(30) | VARCHAR2(30) NOT NULL | Report Description |
7 | TOTAL_SHEET_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Total Employee Expenses |
8 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
9 | EXP_HDR_STATUS | Character(3) | VARCHAR2(3) NOT NULL |
Expense Header Status
ADJ=Adjusted APY=Approved for Payment APZ=Approved for zero Payment DEN=Denied DNA=Denied by Approver DNU=Denied by Auditor OPN=Open PD=Paid PND=Pending RAP=Approved SUB=Submitted |