RDE_C_SITE_VW_1

(SQL View)
Index Back

Customer Site View

Energy specific customer Site View

SELECT A.BO_ID , R.BO_ID_2 , R.ROLE_TYPE_ID_2 ,CAST(0 AS DECIMAL(31,0)) ,0 ,A.SETID ,A.SITE_ID ,B.BO_NAME , A.BO_ID ,CAST(0 AS DECIMAL(31,0)) ,0 ,CAST(0 AS DECIMAL(31,0)) ,0 ,%subrec(RB_AUDIT_SBR,A) FROM PS_RD_SITE A , PS_BO_REL R , PS_BO_NAME B WHERE R.BO_ID_1 = A.BO_ID AND A.BO_ID = B.BO_ID AND R.ROLE_TYPE_ID_1 = 3 AND R.ROLE_TYPE_ID_2 IN (2,9,65,66,67) AND R.START_DT <= %CurrentDateIn AND R.END_DT > %CurrentDateIn AND B.PRIMARY_IND ='Y'

# 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 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 BO_ID_CONTACT Number(31,0) DECIMAL(31) NOT NULL This field indicates the Business Object ID for the contact.
5 ROLE_TYPE_ID_CNTCT Number(12,0) DECIMAL(12) NOT NULL Stores ROLE_TYPE_ID for the contact
6 SETID Character(5) VARCHAR2(5) NOT NULL This field is used to store the value of SetID on various setup tables.

Default Value: OPR_DEF_TBL_RB.SETID

Prompt Table: SP_SETID_NONVW

7 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.

Default Value: NEXT

8 BO_NAME Character(50) VARCHAR2(50) NOT NULL Name Description of Business Object
9 BO_ID_SITE Number(31,0) DECIMAL(31) NOT NULL Business Object ID
10 BO_ID_PARTNER Signed Number(32,0) DECIMAL(31) NOT NULL Business Object ID of Partner Company.
11 ROLE_TYPE_ID_PART Number(12,0) DECIMAL(12) NOT NULL Stores ROLE_TYPE_ID for the partner
12 BO_ID_PART_CONT Signed Number(32,0) DECIMAL(31) NOT NULL This is the business object identifier for the partner contact.
13 ROLE_TYPE_ID_PARTC Number(12,0) DECIMAL(12) NOT NULL Stores ROLE_TYPE_ID for the partner contact
14 ROW_ADDED_DTTM DateTime(26) TIMESTAMP This is a datetime field for record creation.
15 ROW_ADDED_OPRID Character(30) VARCHAR2(30) NOT NULL ID of user who added the row.
16 ROW_LASTMANT_DTTM DateTime(26) TIMESTAMP The date and time that the row was last updated.
17 ROW_LASTMANT_OPRID Character(30) VARCHAR2(30) NOT NULL ID of user who last modified the row.
18 SYNCID Number(10,0) DECIMAL(10) NOT NULL The Synchronization ID field stores a value generated by the sync processor. The value is used to identify the type of object that the sync processor is about to handle.
19 SYNCDTTM DateTime(26) TIMESTAMP Synchronization Last Update Date Time