CRED_HIST_VW8B

(SQL View)
Index Back

Credit History View


SELECT A.BUSINESS_UNIT , A.EXT_ORG_ID , A.AGING_SET , A.AGE_CATEGORY , B.DESCRSHORT , SUM(A.AMOUNT) FROM PS_CREDIT_HISTORY A ,PS_AGING_CAT_TBL B WHERE A.EXT_ORG_ID > ' ' AND B.SETID =( SELECT C.SETID FROM PS_SET_CNTRL_REC C WHERE C.SETCNTRLVALUE=A.BUSINESS_UNIT AND C.REC_GROUP_ID = 'AGING' AND C.RECNAME='AGING_CAT_TBL') AND A.AGING_SET = B.AGING_SET AND A.AGE_CATEGORY = B.AGE_CATEGORY AND A.EFFDT = ( SELECT MAX(D.EFFDT) FROM PS_CREDIT_HISTORY D WHERE D.BUSINESS_UNIT = A.BUSINESS_UNIT AND D.EXT_ORG_ID = A.EXT_ORG_ID AND D.EFFDT <= %CurrentDateIn) AND B.EFFDT = ( SELECT MAX(E.EFFDT) FROM PS_AGING_CAT_TBL E WHERE E.SETID = B.SETID AND E.AGING_SET = B.AGING_SET AND E.EFFDT <= %CurrentDateIn) GROUP BY A.BUSINESS_UNIT, A.EXT_ORG_ID , A.AGING_SET, A.AGE_CATEGORY, B.DESCRSHORT

  • Related Language Record: CREDHISTVW8BLNG
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
    2 EXT_ORG_ID Character(11) VARCHAR2(11) NOT NULL External Org ID
    3 AGING_SET Character(5) VARCHAR2(5) NOT NULL Aging Set
    4 AGE_CATEGORY Character(2) VARCHAR2(2) NOT NULL Aging Category
    5 DESCRSHORT Character(10) VARCHAR2(10) NOT NULL Short Description
    6 AMOUNT Signed Number(20,3) DECIMAL(18,3) NOT NULL Commuting Allowance Paid Per Cycle.