EB_CNT_CUST_VW

(SQL View)
Index Back

Contact Customer View


SELECT C.CUSTOMER_SETID , C.CUST_ID , D.NAME1 , A.OPRID FROM PSOPRALIAS A , PS_CONTACT B , PS_CONTACT_CUST C , PS_CUSTOMER D WHERE A.SETID = B.SETID AND A.CONTACT_ID = B.CONTACT_ID AND A.OPRALIASTYPE = 'CNT' AND %EffdtCheck(CONTACT, B, %currentdatein) AND B.EFF_STATUS = 'A' AND B.SETID = C.SETID AND B.CONTACT_ID = C.CONTACT_ID AND B.EFFDT = C.EFFDT AND C.CUSTOMER_SETID = D.SETID AND C.CUST_ID = D.CUST_ID AND C.BILL_TO_FLG = 'Y'

# 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: CUST_BI_A2_VW

3 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
4 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).