CUST_CONTACT_VW

(SQL View)
Index Back

Customer Contact Record

Customer Contact Record

SELECT A.CUSTOMER_SETID , A.CUST_ID , A.SETID , A.CONTACT_ID , A.EFFDT , A.EFF_STATUS , A.CONTACT_CODE , A.ADDRESS_SEQ_NUM , A.PRIMARY_CUST FROM PS_CONTACT_CUST A WHERE A.EFFDT = ( SELECT MAX(A_ED.EFFDT) FROM PS_CONTACT_CUST A_ED WHERE A.SETID = A_ED.SETID AND A.CONTACT_ID = A_ED.CONTACT_ID AND A_ED.EFFDT <= %CurrentDateIn AND A.CUSTOMER_SETID = A_ED.CUSTOMER_SETID AND A.CUST_ID = A_ED.CUST_ID) AND A.EFF_STATUS = 'A'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID

Default Value: OPR_DEF_TBL_FS.SETID

Prompt Table: SP_SETID_NONVW

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.

Prompt Table: FO_CUST_AL_SRCH

3 CONTACT_SETID Character(5) VARCHAR2(5) NOT NULL Contact SetID
4 CONTACT_ID Character(15) VARCHAR2(15) NOT NULL Contact Identifier for Treasury Contacts
5 EFFDT Date(10) DATE NOT NULL Effective Date
6 EFF_STATUS Character(1) VARCHAR2(1) NOT NULL Effective Status
A=Active
I=Inactive

Default Value: A

7 CONTACT_CODE Character(6) VARCHAR2(6) NOT NULL Contact Type Code
8 ADDRESS_SEQ_NUM Number(5,0) INTEGER NOT NULL Address Sequence Number
9 PRIMARY_CUST Character(1) VARCHAR2(1) NOT NULL Primary Customer

Y/N Table Edit

Default Value: N