CM_INTERUNIT_VW(SQL View) |
Index Back |
---|---|
InterUnit viewGMG: 02/1999 R-CJOHNS-0E8DU 06/05/00 ST Added rel lang vw 06/27/00 RML Added DESTIN_BU - use to get to CUSTOMER table Old SQL - SELECT DISTINCT A.CUST_ID , A.EFFDT , A.BUSINESS_UNIT_GL , A.EFF_STATUS , C.CURRENCY_CD , C.NAME1 FROM PS_CUST_OPTION A , PS_CUSTOMER C , PS_DMD_IU_DEF_INV D WHERE A.SETID = C.SETID AND A.CUST_ID = C.CUST_ID AND A.SETID = ( SELECT SETID FROM PS_SET_CNTRL_REC WHERE SETCNTRLVALUE = D.BUSINESS_UNIT AND RECNAME = 'CUSTOMER' ) AND A.INTERUNIT_FLG = 'Y' AND C.SHIP_TO_FLG = 'Y' AND C.BILL_TO_FLG = 'Y' |
SELECT %Substring(C.SETCNTRLVALUE, 1, 5) , A.CUST_ID , A.EFFDT , A.BUSINESS_UNIT_GL , A.EFF_STATUS , B.CURRENCY_CD , B.NAME1 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 | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
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 | EFFDT | Date(10) | DATE | Effective Date |
4 | BUSINESS_UNIT_GL | Character(5) | VARCHAR2(5) NOT NULL | GL Business Unit |
5 | EFF_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Effective Status
A=Active I=Inactive |
6 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
7 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |