SUBC_AGE_CC_VW(SQL View) |
Index Back |
---|---|
SubCustomer Aging by Corp Cust |
SELECT C.CORPORATE_SETID , C.CORPORATE_CUST_ID , A.SUBCUST_QUAL1 , A.SUBCUST_QUAL2 , A.AGING_ID , A.AGING_CATEGORY , A.BUSINESS_UNIT , A.AGING_AMT , A.AGING_CNT , A.CURRENCY_CD FROM PS_CUSTOMER C , PS_SUBCUST_AGING A , PS_BUS_UNIT_OPT_AR O WHERE C.CUST_ID = A.CUST_ID AND C.SETID = ( SELECT SETID FROM PS_SET_CNTRL_REC WHERE SETCNTRLVALUE = A.BUSINESS_UNIT AND RECNAME = 'CUSTOMER') AND O.SETID = ( SELECT SETID FROM PS_SET_CNTRL_REC WHERE SETCNTRLVALUE = A.BUSINESS_UNIT AND RECNAME = 'CUSTOMER') AND A.AGING_ID = O.AGING_ID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | CORPORATE_SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
2 | CORPORATE_CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Corporate Customer |
3 | SUBCUST_QUAL1 | Character(15) | VARCHAR2(15) NOT NULL | Specifies a user-defined grouping of customer receivables activity. A subcustomer qualifier provides the ability to record and report receivables activity across multiple business units and/or multiple customers. For example a subcustomer qualifier could represent a sales region or a geographic area. There are two possible subcustomer qualifiers: SUBCUST_QUAL1 and SUBCUST_QUAL2. |
4 | SUBCUST_QUAL2 | Character(15) | VARCHAR2(15) NOT NULL | Specifies a user-defined grouping of customer receivables activity. A subcustomer qualifier provides the ability to record and report receivables activity across multiple business units and/or multiple customers. For example a subcustomer qualifier could represent a sales region or a geographic area. There are two possible subcustomer qualifiers: SUBCUST_QUAL1 and SUBCUST_QUAL2. |
5 | AGING_ID | Character(5) | VARCHAR2(5) NOT NULL | Aging ID |
6 | AGING_CATEGORY | Character(2) | VARCHAR2(2) NOT NULL | Aging Category |
7 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
8 | AGING_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Aging Amount |
9 | AGING_CNT | Number(6,0) | INTEGER NOT NULL | Aging Count |
10 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |