EX_EXC5701_L_V2(SQL View) |
Index Back |
---|---|
Adv Aging BU View w/o pymnt |
SELECT A.ADVANCE_ID , E1.LANGUAGE_CD , A.EMPLID , A.ADV_STATUS , A.BUSINESS_PURPOSE , C.BUSINESS_UNIT_GL , C.DEPTID , D.NAME , E1.DESCR , F1.DESCR , A.CREATION_DT , B.CURRENCY_CD , SUM(B.MONETARY_AMOUNT) FROM PS_EX_ADV_HDR A , PS_EX_ADV_LINE B , PS_EX_ADV_DIST C , PS_PERSONAL_DATA D , PS_EX_BU_PROMPT_VW E , PS_EX_BU_PMPT_L_VW E1 , PS_EX_PURPOSE_TBL F , PS_EX_PURPOSE_LNG F1 WHERE F.SETID = A.SETID AND F.BUSINESS_PURPOSE = A.BUSINESS_PURPOSE AND F1.SETID=A.SETID AND F1.BUSINESS_PURPOSE=A.BUSINESS_PURPOSE AND E1.BUSINESS_UNIT_GL=E.BUSINESS_UNIT_GL AND F.EFFDT = ( SELECT MAX(EFFDT) FROM PS_EX_PURPOSE_TBL WHERE F.SETID = SETID AND F.BUSINESS_PURPOSE = BUSINESS_PURPOSE AND EFFDT <= %CurrentDateIn) AND F.EFF_STATUS = 'A' AND A.ADVANCE_ID = B.ADVANCE_ID AND B.ADVANCE_ID = C.ADVANCE_ID AND B.LINE_NBR = C.LINE_NBR AND A.EMPLID = D.EMPLID AND C.BUSINESS_UNIT_GL = E.BUSINESS_UNIT_GL AND A.ADV_STATUS = 'PD' AND NOT EXISTS ( SELECT 'X' FROM PS_EX_ADVNCE_PYMNT X WHERE X.ADVANCE_ID = A.ADVANCE_ID) GROUP BY A.ADVANCE_ID, A.EMPLID, A.ADV_STATUS, A.BUSINESS_PURPOSE, C.BUSINESS_UNIT_GL, C.DEPTID, D.NAME, E1.DESCR, E1.LANGUAGE_CD, F1.DESCR, A.CREATION_DT, B.CURRENCY_CD |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | ADVANCE_ID | Character(10) | VARCHAR2(10) NOT NULL | Advance ID |
2 | LANGUAGE_CD | Character(3) | VARCHAR2(3) NOT NULL | Language Code |
3 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
4 | ADV_STATUS | Character(3) | VARCHAR2(3) NOT NULL |
Advance Status
APY=Approved for Payment CLS=Closed DEN=Denied DNA=Denied by Approver DNU=Denied by Auditor HDA=On Hold, with Approver HDU=On Hold, with Auditor HLD=On Hold PAR=Approvals in Process PD=Paid PND=Pending PRO=In Process PST=Past Due Balance RAP=Approved RCN=Reconciled RRT=Reroute Transaction SFA=Submission in Process STG=Staged SUB=Submitted for Approval XML=Submitted, Pending Validation |
5 | BUSINESS_PURPOSE | Character(5) | VARCHAR2(5) NOT NULL | Business Purpose |
6 | BUSINESS_UNIT_GL | Character(5) | VARCHAR2(5) NOT NULL | GL Business Unit |
7 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL | Department |
8 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |
9 | DESCR_BU | Character(30) | VARCHAR2(30) NOT NULL | Business Unit Description |
10 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
11 | PYMNT_DT | Date(10) | DATE | Payment Date |
12 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
13 | MONETARY_AMOUNT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Specifies the monetary amount of a debit or credit in the business unit base currency. Debit entries are positive and credit entries are negative. This amount is only zero if associated with a statistical account. |