AR_IPACCNTCT_VW

(SQL View)
Index Back

AR IPAC Customer Contacts

AR IPAC Customer Contacts View - retrieves customer contact info for IPAC customers.

SELECT B.CUSTOMER_SETID , B.CUST_ID , A.CNTCT_SEQ_NUM , B.SETID , B.CONTACT_ID , C.NAME1 , B.BILL_TO_FLG , 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_CONTACT_PHN D , PS_CUST_ADDRESS E WHERE A.SETID = B.CUSTOMER_SETID AND A.CUST_ID = B.CUST_ID AND A.CNTCT_SEQ_IPAC = B.CNTCT_SEQ_NUM AND %Join(COMMON_KEYS, CONTACT_CUST B, CONTACT C) AND %EffdtCheck(CONTACT_CUST X, B, %currentdatein) AND %Join(COMMON_KEYS, CONTACT C, CONTACT_PHN D) AND %Join(COMMON_KEYS, CUST_ADDRESS E, CUSTOMER A) AND E.EFF_STATUS = 'A' AND D.PRIMARY_PHONE = 'Y' 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 CONTACT_NAME Character(50) VARCHAR2(50) NOT NULL The individual contact name associated with a given bank/counterparty.
7 PRIMARY_BILL_TO Character(1) VARCHAR2(1) NOT NULL Primary Bill To

Y/N Table Edit

8 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
9 COUNTRY_CODE Character(3) VARCHAR2(3) NOT NULL Int'l Prefix
10 PHONE Character(24) VARCHAR2(24) NOT NULL Telephone
11 EXTENSION Character(6) VARCHAR2(6) NOT NULL Phone Extension
12 PRIMARY_PHONE Character(1) VARCHAR2(1) NOT NULL Primary Phone

Y/N Table Edit

13 FAX Character(24) VARCHAR2(24) NOT NULL Fax Number
14 ADDRESS_SEQ_NUM Number(5,0) INTEGER NOT NULL Address Sequence Number
15 EMAILID Character(70) VARCHAR2(70) NOT NULL A user's E-mail address
16 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