CUST_AGBASFO_VW

(SQL View)
Index Back

Customer Aging

AR Financial Operations - Customer Aging informantion view

SELECT U.OPRID , A.BUSINESS_UNIT , A.CUST_ID , A.AGING_ID , A.AGING_CATEGORY , C.DESCRSHORT , C.DESCR , A.AGED_DT , A.AGING_CNT , A.AGING_AMT , A.CURRENCY_CD , U.DISPLAY_CURRENCY , U.DSP_RT_TYPE FROM PS_CUST_AG_ALL_VW A , PS_AGING_CATEG_TBL C , PS_ARFO_PRF_AGING U WHERE C.SETID = ( SELECT RC.SETID FROM PS_SET_CNTRL_REC RC WHERE RC.SETCNTRLVALUE = A.BUSINESS_UNIT AND RC.RECNAME = 'AGING_CATEG_TBL') AND C.AGING_ID = A.AGING_ID AND C.AGING_CATEGORY = A.AGING_CATEGORY AND C.EFFDT = ( SELECT MAX(CS.EFFDT) FROM PS_AGING_CATEG_TBL CS WHERE C.SETID = CS.SETID AND C.AGING_ID = CS.AGING_ID AND C.AGING_CATEGORY = CS.AGING_CATEGORY AND CS.EFFDT <= %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
2 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

Default Value: OPR_DEF_TBL_FS.BUSINESS_UNIT

Prompt Table: SP_BUARDS_NONVW

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 AGING_ID Character(5) VARCHAR2(5) NOT NULL Aging ID

Prompt Table: AGING_TBL

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

Prompt Table: AGING_CATEG_TBL

6 DESCRSHORT Character(10) VARCHAR2(10) NOT NULL Short Description
7 DESCR Character(30) VARCHAR2(30) NOT NULL Description
8 AGED_DT Date(10) DATE Aged Date
9 AGING_CNT Number(6,0) INTEGER NOT NULL Aging Count
10 AGING_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Aging Amount
11 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
12 DISPLAY_CURRENCY Character(3) VARCHAR2(3) NOT NULL Display Currency
13 DSP_RT_TYPE Character(5) VARCHAR2(5) NOT NULL Rate Type