RO_BC_REL_VW

(SQL View)
Index Back

Business Contact - Contact Vw.

This view returns all the Business Contact - Contacts. The Business Contact will be returned to the BO_ID_CUST field and the Contact will be returned to the BO_ID field.

SELECT 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_BC_CNTCT_SLD_VW D , PS_BC_FLAGS_VW B WHERE C.REL_TYPE_ID = A.REL_TYPE_ID AND C.BO_REL_CATEGORY_ID IN (1) AND A.BO_ID_2 = B.BO_ID AND A.BO_ID_2 = D.BO_ID AND A.BO_ID_1 = D.BO_ID_CNTCT

# 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