CUST_BU_VW(SQL View) |
Index Back |
---|---|
Customer List by Business Unit |
SELECT DISTINCT C.SETID , D.CUST_ID , D.BUSINESS_UNIT , B.DESCR FROM PS_CUSTOMER C , PS_CUST_DATA D , PS_BUS_UNIT_TBL_FS B WHERE C.CUST_STATUS = 'A' AND C.SETID = ( SELECT SETID FROM PS_SET_CNTRL_REC WHERE SETCNTRLVALUE = D.BUSINESS_UNIT AND RECNAME = 'CUSTOMER') AND C.CUST_ID = D.CUST_ID AND D.BUSINESS_UNIT=B.BUSINESS_UNIT |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
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 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
4 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |