CUST_BU_LVW(SQL View) |
Index Back |
|---|---|
Customer List by Business Unit |
| SELECT DISTINCT C.setid , D.cust_id , D.business_unit , B.language_cd , B.descr FROM ps_customer C , PS_CUST_DATA D , ps_bus_unit_lang 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 | Character(5) | VARCHAR2(5) NOT NULL | SetID | |
| 2 | 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 | Character(5) | VARCHAR2(5) NOT NULL | Business Unit | |
| 4 | Character(3) | VARCHAR2(3) NOT NULL | Language Code | |
| 5 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |