AR_DSO_FLU_VW(SQL View) |
Index Back |
---|---|
Customer DSO TrendView for DSO Trend |
SELECT DISTINCT A.BUSINESS_UNIT , A.CUST_ID , A.FISCAL_YEAR , A.ACCOUNTING_PERIOD , SUM(DAYS)/COUNT(HIST_COUNT) , A.HIST_COUNT , A.HIST_WEIGHT , A.CURRENCY_CD , A.PERIOD_NAME , B.SUBCUST_QUAL1 , B.SUBCUST_QUAL2 FROM PS_AR_DSO_FLU_MVW A , PS_ITEM_BASE_MVW B , PS_CUSTOMER C WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.CUST_ID = B.CUST_ID AND A.CURRENCY_CD = B.CURRENCY_CD AND A.SETID = C.SETID AND A.CUST_ID = C.CUST_ID AND C.SUBCUST_QUAL1 = B.SUBCUST_QUAL1 AND C.SUBCUST_QUAL2 = B.SUBCUST_QUAL2 GROUP BY A.BUSINESS_UNIT, A.CUST_ID, A.FISCAL_YEAR , A.ACCOUNTING_PERIOD, A.HIST_COUNT, A.HIST_WEIGHT, A.CURRENCY_CD, A.PERIOD_NAME , B.SUBCUST_QUAL1 , B.SUBCUST_QUAL2 |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Prompt Table: SP_BUARDS_NONVW |
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 | FISCAL_YEAR | Number(4,0) | SMALLINT NOT NULL | Fiscal Year |
4 | ACCOUNTING_PERIOD | Number(3,0) | SMALLINT NOT NULL | Identifies a time period to which you post transactions. Typically, an accounting period represents a month, but it can also represent a week, a day, or any user-defined interval. An accounting period has a beginning date and an ending date, and is defined in the calendar table. |
5 | DAYS | Number(6,0) | INTEGER NOT NULL | Days |
6 | HIST_COUNT | Signed Number(6,0) | DECIMAL(5) NOT NULL | History Count |
7 | HIST_WEIGHT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Weighting Amt |
8 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
9 | PERIOD_NAME | Character(30) | VARCHAR2(30) NOT NULL | Period Name |
10 | 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. |
11 | 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. |