IU_CUST_VW(SQL View) |
Index Back |
---|---|
InterUnit customer viewCustomers for interunit transfers |
SELECT %Substring(C.SETCNTRLVALUE,1,5) , C.SETID , A.CUST_ID FROM PS_CUST_OPTION A , PS_CUSTOMER B , PS_SET_CNTRL_REC C WHERE A.SETID = B.SETID AND A.CUST_ID = B.CUST_ID AND A.INTERUNIT_FLG = 'Y' AND B.SHIP_TO_FLG = 'Y' AND B.BILL_TO_FLG = 'Y' AND A.SETID = C.SETID AND C.RECNAME = 'CUSTOMER' AND B.CUST_STATUS IN ('A', 'I') |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT_BI | Character(5) | VARCHAR2(5) NOT NULL | Billing 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. |