CUST_AGECAT_VW

(SQL View)
Index Back

Available Aging Cats for Cust


SELECT C.SETID, A.CUST_ID, A.AGING_ID, A.AGING_CATEGORY, D.DESCR, D.DESCRSHORT FROM PS_SET_CNTRL_REC C, PS_CUST_AGING A, PS_AGING_CATEG_TBL D WHERE C.SETCNTRLVALUE = A.BUSINESS_UNIT AND C.RECNAME = 'CUSTOMER' AND D.SETID = (SELECT E.SETID FROM PS_SET_CNTRL_REC E WHERE E.SETCNTRLVALUE = A.BUSINESS_UNIT AND E.RECNAME = 'AGING_CATEG_TBL') AND D.AGING_ID = A.AGING_ID AND D.AGING_CATEGORY = A.AGING_CATEGORY AND D.EFFDT = (SELECT max(effdt) from ps_AGING_CATEG_TBL X where X.setid=D.setid and X.AGING_ID=D.AGING_ID AND X.AGING_CATEGORY = A.AGING_CATEGORY and X.effdt <= %currentdatein)

  • Related Language Record: CUST_AGECAT_LVW
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
    2 CUST_ID Character(15) VARCHAR2(15) NOT NULL Uniquely identifies an organizational entity that purchases goods or services from the enterprise. Represents the sold-to customer which is the customer organization that places orders. The CUST_ID may or may not be the same as the identifiers for the bill-to and ship-to locations.
    3 AGING_ID Character(5) VARCHAR2(5) NOT NULL Aging ID
    4 AGING_CATEGORY Character(2) VARCHAR2(2) NOT NULL Aging Category
    5 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    6 DESCRSHORT Character(10) VARCHAR2(10) NOT NULL Short Description