AR_SRCH_AGE_VW

(SQL View)
Index Back

Customer Aging


SELECT S.SETID , A.BUSINESS_UNIT , A.CUST_ID , B.NAME1 , A.AGING_ID , A.AGING_CATEGORY , A.AGING_AMT , A.AGING_CNT , A.CURRENCY_CD , O.COLLECTOR , %Dttm(D.AGED_DT, %TimeNull) FROM PS_CUSTOMER B , PS_CUST_OPTION O , PS_CUST_AGING A , PS_CUST_DATA D , PS_SET_CNTRL_REC S WHERE S.SETCNTRLVALUE = A.BUSINESS_UNIT AND S.RECNAME = 'CUSTOMER' AND S.SETID = B.SETID AND A.CUST_ID = B.CUST_ID AND B.SETID = O.SETID AND A.CUST_ID = O.CUST_ID AND O.EFFDT = ( SELECT MAX(EFFDT) FROM PS_CUST_OPTION WHERE SETID = O.SETID AND CUST_ID = O.CUST_ID AND EFF_STATUS = 'A' AND EFFDT <= %CurrentDateIn) AND A.BUSINESS_UNIT = D.BUSINESS_UNIT AND A.CUST_ID = D.CUST_ID

  • Parent record: CUST_DATA
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
    2 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

    Default Value: OPR_DEF_TBL_FS.BUSINESS_UNIT

    Prompt Table: BUS_UNIT_TBL_FS

    3 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.

    Prompt Table: CUST_SRCH_VW

    4 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
    5 AGING_ID Character(5) VARCHAR2(5) NOT NULL Aging ID

    Prompt Table: AGING_TBL

    6 AGING_CATEGORY Character(2) VARCHAR2(2) NOT NULL Aging Category

    Prompt Table: AGING_CATEG_TBL

    7 AGING_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Aging Amount
    8 AGING_CNT Number(6,0) INTEGER NOT NULL Aging Count
    9 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
    10 COLLECTOR Character(8) VARCHAR2(8) NOT NULL Specifies the personnel code for the person who works with a customer to collect overdue payments.
    11 LAST_UPDATE_DTTM DateTime(26) TIMESTAMP Specifies the date and time of the last update to an entry. This field is maintained by PeopleSoft and is used in a variety of contexts.