EX_EXC5701_VW2

(SQL View)
Index Back

Adv Aging BU View w/o pymnt


SELECT A.ADVANCE_ID, A.EMPLID, A.ADV_STATUS, A.BUSINESS_PURPOSE, C.BUSINESS_UNIT_GL, C.DEPTID, D.NAME, E.DESCR, F.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_PURPOSE_TBL F WHERE F.SETID = A.SETID AND F.BUSINESS_PURPOSE = A.BUSINESS_PURPOSE 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, E.DESCR, F.DESCR, A.CREATION_DT, B.CURRENCY_CD

  • Related Language Record: EX_EXC5701_L_V2
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 ADVANCE_ID Character(10) VARCHAR2(10) NOT NULL Advance ID
    2 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
    3 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
    4 BUSINESS_PURPOSE Character(5) VARCHAR2(5) NOT NULL Business Purpose
    5 BUSINESS_UNIT_GL Character(5) VARCHAR2(5) NOT NULL GL Business Unit
    6 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
    7 NAME Character(50) VARCHAR2(50) NOT NULL Name
    8 DESCR_BU Character(30) VARCHAR2(30) NOT NULL Business Unit Description
    9 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    10 PYMNT_DT Date(10) DATE Payment Date
    11 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
    12 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.