C360_AR_BI_VW(SQL View) |
Index Back |
---|---|
Customer Docstatus Work ScrCustomer Docstatus Work Scroll record |
SELECT H.BUSINESS_UNIT ,C.SETID , H.BILL_TO_CUST_ID , L.INVOICE , L.INVOICE_LINE ,L.BUSINESS_UNIT_OM ,L.ORDER_NO ,L.BUSINESS_UNIT_CA ,L.CONTRACT_NUM ,L.BUSINESS_UNIT_RMA ,L.RMA_ID FROM PS_BI_HDR H ,PS_BI_LINE L ,PS_CUSTOMER C WHERE L.BUSINESS_UNIT = H.BUSINESS_UNIT AND L.INVOICE = H.INVOICE AND C.SETID = ( SELECT SETID FROM PS_SET_CNTRL_REC WHERE SETCNTRLVALUE = H.business_unit AND RECNAME = 'CUSTOMER') AND C.CUST_ID = H.BILL_TO_CUST_ID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
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. |
4 | INVOICE | Character(22) | VARCHAR2(22) NOT NULL | Invoice |
5 | INVOICE_LINE | Number(5,0) | INTEGER NOT NULL | Invoice Line |
6 | BUSINESS_UNIT_OM | Character(5) | VARCHAR2(5) NOT NULL | Order Management Business Unit |
7 | ORDER_NO | Character(10) | VARCHAR2(10) NOT NULL | Identifies a customer order number that appears as a reference on a receivables pending item. Date Initials Issue Description 022701 mv SP2 (F-CJORGENS-3) CSR Desktop |
8 | BUSINESS_UNIT_CA | Character(5) | VARCHAR2(5) NOT NULL | Contracts Business Unit |
9 | CONTRACT_NUM | Character(25) | VARCHAR2(25) NOT NULL | Contract |
10 | BUSINESS_UNIT_RMA | Character(5) | VARCHAR2(5) NOT NULL | RMA Business Unit |
11 | RMA_ID | Character(10) | VARCHAR2(10) NOT NULL | RMA Number |