BO_CST_CNTCT_DR

(SQL View)
Index Back

Customer Contact Directory

This view returns all the Contacts for a Customer and descibes what Contact Type they are.

SELECT DISTINCT A.REL_TYPE_ID , A.BO_ID_2 , A.ROLE_TYPE_ID_2 , B.SETID , B.CUST_ID , B.CUST_STATUS , B.SHIP_TO_FLG , B.SOLD_TO_FLG , A.BO_ID_1 , A.ROLE_TYPE_ID_1 FROM PS_BO_REL_CUR_VW A , PS_BO_REL_CAT_ITEM C , PS_BO_SRCH_GRP_TYP D , PS_BC_FLAGS_VW B WHERE C.REL_TYPE_ID = A.REL_TYPE_ID AND C.BO_REL_CATEGORY_ID IN (5) AND A.ROLE_TYPE_ID_2 = D.ROLE_TYPE_ID AND D.SRCH_GROUP_ID IN (2, 23) AND A.BO_ID_2 = B.BO_ID

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 REL_TYPE_ID Number(12,0) DECIMAL(12) NOT NULL Relationship Type ID
2 BO_ID_CUST Number(31,0) DECIMAL(31) NOT NULL This field stores the Business Object ID for the customer.
3 ROLE_TYPE_ID_CUST Number(12,0) DECIMAL(12) NOT NULL Stores ROLE_TYPE_ID for the customer
4 SETID Character(5) VARCHAR2(5) NOT NULL This field is used to store the value of SetID on various setup tables.
5 CUST_ID Character(15) VARCHAR2(15) NOT NULL Customer ID
6 CUST_STATUS Character(1) VARCHAR2(1) NOT NULL Customer Status Indicator. BC.CUST_STATUS
A=Active
I=Inactive
7 SHIP_TO_FLG Character(1) VARCHAR2(1) NOT NULL A flag indicating that the customer or address is a valid Ship To customer or address.
8 SOLD_TO_FLG Character(1) VARCHAR2(1) NOT NULL A boolean that flags whether or not the customer is a valid Sold To customer.
9 BO_ID Signed Number(32,0) DECIMAL(31) NOT NULL Business Object ID
10 ROLE_TYPE_ID_CNTCT Number(12,0) DECIMAL(12) NOT NULL Stores ROLE_TYPE_ID for the contact