EX_EXC5700_VW2

(SQL View)
Index Back

Adv Aging Dept. Vw w/o pymnt


SELECT DISTINCT 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 , A.CURRENCY_CD , A.BALANCE FROM PS_EX_ADV_HDR A , PS_EX_ADV_LINE B , PS_EX_ADV_DIST C , PS_PERSONAL_DATA D , PS_DEPT_TBL E , PS_SET_CNTRL_REC E2 , PS_EX_PURPOSE_TBL F WHERE E.DEPTID = C.DEPTID AND E2.SETCNTRLVALUE = C.BUSINESS_UNIT_GL AND E2.RECNAME = 'DEPT_TBL' AND E2.SETID = E.SETID AND F.BUSINESS_PURPOSE = A.BUSINESS_PURPOSE AND F.SETID = A.SETID AND A.ADVANCE_ID = B.ADVANCE_ID AND B.ADVANCE_ID = C.ADVANCE_ID AND B.LINE_NBR = C.LINE_NBR AND A.ADV_STATUS = 'PD' AND A.EMPLID = D.EMPLID AND E.EFFDT = ( SELECT MAX(EFFDT) FROM PS_DEPT_TBL WHERE E.SETID = SETID AND E.DEPTID = DEPTID AND EFFDT <= %CurrentDateIn) AND E.EFF_STATUS = 'A' 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 NOT EXISTS ( SELECT 'X' FROM PS_EX_ADVNCE_PYMNT X WHERE X.ADVANCE_ID = A.ADVANCE_ID) AND A.BALANCE > 0

  • Related Language Record: EX_EXC5700_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_DEPTID Character(30) VARCHAR2(30) NOT NULL (Department Name)
    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.