RF_COMPSITE3_VW

(SQL View)
Index Back

Sites for a Business Contact

This view returns all of the sites for a business contact.

SELECT DISTINCT A.SETID , B.BO_ID , A.SITE_ID , C.BO_NAME_DISPLAY , C.BO_NAME_AC , E.BO_NAME_DISPLAY , E.BO_NAME_AC FROM PS_RD_SITE A , PS_BC B , PS_BO_NAME C , PS_BO_REL D , PS_BO_NAME E , PS_BO F WHERE D.REL_TYPE_ID IN (4, 17,516,517,518) AND D.BO_ID_1 = B.BO_ID AND D.BO_ID_2 = A.BO_ID AND D.BO_ID_1 = C.BO_ID AND D.START_DT <= %CurrentDateIn AND D.END_DT > %CurrentDateIn AND B.CUST_STATUS = 'A' AND A.BO_ID = E.BO_ID AND C.PRIMARY_IND = 'Y' AND E.PRIMARY_IND = 'Y' AND F.BO_ID = B.BO_ID AND F.MERGE_STATUS <> 'I'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL This field is used to store the value of SetID on various setup tables.
2 BO_ID_CUST Number(31,0) DECIMAL(31) NOT NULL This field stores the Business Object ID for the customer.
3 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.

Prompt Table: RD_SITE

4 BO_NAME_DISPLAY Character(80) VARCHAR2(80) NOT NULL Full name of the Business Object
5 BO_NAME_AC Character(50) VARCHAR2(50) NOT NULL Name Description of Business Object
6 BO_NAME_DISPLAY_1 Character(80) VARCHAR2(80) NOT NULL This field represents the Display Name for a business object
7 BO_NAME_PARENT_AC Character(50) VARCHAR2(50) NOT NULL Name Description of Business Object