CWB_CUSTCONT_VW(SQL View) |
Index Back |
---|---|
CWB Customer ContactsCollections Workbench Customer Contacts View |
SELECT B.CUSTOMER_SETID , B.CUST_ID , B.CNTCT_SEQ_NUM , B.SETID , B.CONTACT_ID , B.EFF_STATUS , C.NAME1 , CASE WHEN A.CNTCT_SEQ_NUM = B.CNTCT_SEQ_NUM AND A.BILL_TO_FLG = 'Y' THEN 'Y' END , D.PHONE_TYPE , D.COUNTRY_CODE , D.PHONE , D.EXTENSION , D.PRIMARY_PHONE , E.FAX , E.ADDRESS_SEQ_NUM , C.EMAILID , C.COMM_METHOD FROM PS_CUSTOMER A , PS_CONTACT_CUST B , PS_CONTACT C , PS_CONTACT1_PHN D , PS_CUST_ADDRESS E WHERE A.SETID = B.CUSTOMER_SETID AND A.CUST_ID = B.CUST_ID AND %Join(COMMON_KEYS, CONTACT_CUST B, CONTACT C) AND %EffdtCheck(CONTACT_CUST X, B, %currentdatein) AND C.SETID = D.SETID AND C.CONTACT_ID = D.CONTACT_ID AND C.EFFDT = D.EFFDT AND %Join(COMMON_KEYS, CUST_ADDRESS E, CUSTOMER A) AND E.EFF_STATUS = 'A' AND B.EFF_STATUS = C.EFF_STATUS AND %EffdtCheck(CUST_ADDRESS Y, E, %CurrentDateIn) |
# | 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 | CNTCT_SEQ_NUM | Number(5,0) | INTEGER NOT NULL | Contact Sequence Number |
4 | CONTACT_SETID | Character(5) | VARCHAR2(5) NOT NULL | Contact SetID |
5 | CONTACT_ID | Character(15) | VARCHAR2(15) NOT NULL | Contact Identifier for Treasury Contacts |
6 | EFF_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Effective Status
A=Active I=Inactive |
7 | CONTACT_NAME | Character(50) | VARCHAR2(50) NOT NULL | The individual contact name associated with a given bank/counterparty. |
8 | PRIMARY_BILL_TO | Character(1) | VARCHAR2(1) NOT NULL |
Primary Bill To
Y/N Table Edit |
9 | PHONE_TYPE | Character(4) | VARCHAR2(4) NOT NULL |
Phone Type
BUSN=Business Phone CAMP=Campus Phone CELL=Cellular Phone DORM=Dormitory Phone FAX=FAX HOME=Home Phone MAIN=Main OTR=Other PGR1=Pager 1 PGR2=Pager 2 TELX=Telex |
10 | COUNTRY_CODE | Character(3) | VARCHAR2(3) NOT NULL | Int'l Prefix |
11 | PHONE | Character(24) | VARCHAR2(24) NOT NULL | Telephone |
12 | EXTENSION | Character(6) | VARCHAR2(6) NOT NULL | Phone Extension |
13 | PRIMARY_PHONE | Character(1) | VARCHAR2(1) NOT NULL |
Primary Phone
Y/N Table Edit |
14 | FAX | Character(24) | VARCHAR2(24) NOT NULL | Fax Number |
15 | ADDRESS_SEQ_NUM | Number(5,0) | INTEGER NOT NULL | Address Sequence Number |
16 | EMAILID | Character(70) | VARCHAR2(70) NOT NULL | A user's E-mail address |
17 | COMM_METHOD | Character(1) | VARCHAR2(1) NOT NULL |
Preferred Communication
A=Email Invoice as Attachment C=Call E=Email only F=Fax I=XML only M=Standard Mail N=Email Notification P=Email & Print R=XML & Print |