BO_CNTCT_CM_VW

(SQL View)
Index Back

Representative CMs

This is the record for the view that shows CMs of Contacts.

SELECT DISTINCT A.BO_ID_2 , A.ROLE_TYPE_ID_2 , A.BO_ID_1 , A.ROLE_TYPE_ID_1 , A.BO_REL_ID , D.BO_CM_START_DT , D.BO_CM_END_DT , C.CM_USE_START_DT , C.CM_USE_END_DT , D.CM_ID , D.CM_TYPE_ID , C.PRIMARY_IND , D.PROFILE_CM_SEQ , D.CM_NICKNAME , D.CM_PURPOSE_TYPE_ID , D.PHYSICAL_LOCATION FROM PS_BO_REL A , PS_BO_REL_CAT_ITEM B , PS_BO_CM_USE C , PS_BO_CM D WHERE A.REL_TYPE_ID = B.REL_TYPE_ID AND B.BO_REL_CATEGORY_ID IN (1, 2) AND A.START_DT <= %CurrentDateIn AND A.END_DT > %CurrentDateIn AND A.BO_ID_1 = D.BO_ID AND D.BO_CM_START_DT <= %CurrentDateIn AND D.BO_CM_END_DT > %CurrentDateIn AND C.BO_ID = D.BO_ID AND C.PROFILE_CM_SEQ = D.PROFILE_CM_SEQ AND C.CM_USE_START_DT <= %CurrentDateIn AND C.CM_USE_END_DT > %CurrentDateIn AND C.CM_USE_ID = 0 AND C.ROLE_TYPE_ID = 0 AND A.BO_REL_ID = C.BO_REL_ID AND C.BO_REL_POSITION = 'F'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BO_ID Signed Number(32,0) DECIMAL(31) NOT NULL Business Object ID
2 ROLE_TYPE_ID Number(12,0) DECIMAL(12) NOT NULL Role Type ID
3 BO_ID_CONTACT Number(31,0) DECIMAL(31) NOT NULL This field indicates the Business Object ID for the contact.
4 ROLE_TYPE_ID_CNTCT Number(12,0) DECIMAL(12) NOT NULL Stores ROLE_TYPE_ID for the contact
5 BO_REL_ID Signed Number(32,0) DECIMAL(31) NOT NULL Relationship ID of a Business Object
6 BO_CM_START_DT Date(10) DATE The date that a Contact Method of a Business Object takes effect.
7 BO_CM_END_DT Date(10) DATE End date of a Contact Method of a Business Object
8 CM_USE_START_DT Date(10) DATE Contact Method Use Start Date
9 CM_USE_END_DT Date(10) DATE End date of a Contact Method Use
10 CM_ID Number(31,0) DECIMAL(31) NOT NULL Contact Method ID
11 CM_TYPE_ID Number(6,0) INTEGER NOT NULL Contact Method Type ID

Prompt Table: CM_TYPE

12 PRIMARY_IND Character(1) VARCHAR2(1) NOT NULL Flag that indicates whether or not it is Primary
N=No
Y=Yes
13 PROFILE_CM_SEQ Number(31,0) DECIMAL(31) NOT NULL The Contact Method Profile ID is a key field that is used to reference the details of a Contact Method in various CM tables.
14 CM_NICKNAME Character(30) VARCHAR2(30) NOT NULL Nickname of a Contact Method
15 CM_PURPOSE_TYPE_ID Number(6,0) INTEGER NOT NULL Relationship Contact Method Purpose ID

Prompt Table: CM_PURP_TYPE

16 PHYSICAL_LOCATION Character(30) VARCHAR2(30) NOT NULL Physical Location (Free-Form)