RC_SITE_VW

(SQL View)
Index Back

Sites for a Business Contact

This view lists all the sites for a selected Customer.

SELECT A.BO_ID_1 , A.ROLE_TYPE_ID_1 , C.SETID , C.SITE_ID , D.BO_NAME , A.START_DT , A.END_DT , A.BO_REL_ID FROM PS_BO_REL A , PS_BO_REL_CAT_ITEM B , PS_RD_SITE C , PS_BO_NAME D WHERE A.REL_TYPE_ID = B.REL_TYPE_ID AND B.BO_REL_CATEGORY_ID = 4 AND A.BO_ID_2 = C.BO_ID AND A.START_DT <= %CurrentDateIn AND A.END_DT > %CurrentDateIn AND D.PRIMARY_IND ='Y'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BO_ID_CUST Number(31,0) DECIMAL(31) NOT NULL This field stores the Business Object ID for the customer.
2 ROLE_TYPE_ID_CUST Number(12,0) DECIMAL(12) NOT NULL Stores ROLE_TYPE_ID for the customer
3 SETID Character(5) VARCHAR2(5) NOT NULL This field is used to store the value of SetID on various setup tables.
4 SITE_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.
5 BO_NAME Character(50) VARCHAR2(50) NOT NULL Name Description of Business Object
6 START_DT Date(10) DATE Start date field to store start date value.
7 END_DT Date(10) DATE This field stores the end date values.
8 BO_REL_ID Signed Number(32,0) DECIMAL(31) NOT NULL Relationship ID of a Business Object