RF_GOPAO_GRP_VW

(SQL View)
Index Back

Group Offer Product as Owner

View used for getting Group Offer Products as Owner

SELECT DISTINCT instgroup.BO_ID_CUST , instgroup.ROLE_TYPE_ID_CUST , instgroup.BO_ID_CONTACT , instgroup.ROLE_TYPE_ID_CNTCT , SITEVW.BO_ID , stat.inst_prod_status , instgroup.SETID , instgroup.INST_PROD_ID , instgroup.INST_PROD_TYPE , groupproduct.offer_type , ' ' , ' ' , ' ' , %subrec(RB_AUDIT_SBR,instgroup) FROM ps_rf_inst_link link1 JOIN ps_rf_inst_link link2 ON link1.rel_inst_prod_id = link2.inst_prod_id AND link2.setid = link1.setid AND link1.prod_rel_type = 'SLLS' AND link1.inst_link_status = 'INS' AND link2.prod_rel_type = 'RLON' AND link2.inst_link_status = 'INS' JOIN ps_rf_inst_link link3 ON link3.setid = link2.setid AND link2.rel_inst_prod_id = link3.rel_inst_prod_id AND link3.prod_rel_type = 'SLLS' AND link3.inst_link_status = 'INS' JOIN PS_RF_INST_PROD inst1 ON inst1.setid = link1.setid AND inst1.inst_prod_id = link1.inst_prod_id JOIN PS_RF_INST_PROD instparent ON inst1.setid = instparent.setid AND inst1.parent_inst_prodid = instparent.inst_prod_id JOIN PS_RF_INST_PROD instgroup ON instparent.SETID = instgroup.setid AND instparent.toplvl_instprod_id = instgroup.toplvl_instprod_id JOIN ps_prod_mlpb_item groupproduct ON instgroup.setid = groupproduct.setid AND instgroup.product_id = groupproduct.product_id AND groupproduct.offer_type = 'GRP' JOIN PS_RF_INST_PROD_st stat ON stat.setid = instgroup.setid AND stat.inst_prod_id = instgroup.inst_prod_id LEFT JOIN PS_RF_SITE_360_VW SITEVW ON SITEVW.SETCNTRLVALUE = instgroup.SETID AND SITEVW.SITE_ID = instgroup.SITE_ID

# 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 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_ID_SITE Number(31,0) DECIMAL(31) NOT NULL Business Object ID
6 INST_PROD_STATUS Character(4) VARCHAR2(4) NOT NULL Status of an installed product.
7 SETID Character(5) VARCHAR2(5) NOT NULL This field is used to store the value of SetID on various setup tables.
8 INST_PROD_ID Character(20) VARCHAR2(20) NOT NULL This field is used to represent the installed product ID (key field)
9 INST_PROD_TYPE Character(3) VARCHAR2(3) NOT NULL This field is used by the Installed Product component to determine the type of product that is being registered for the Customer, Site, Department or Employee. There are four allowable types: 1) Product, which designates a product assigned to an external customer; 2) Service 3) Asset, which designates a product assigned to an internal employee or department; and 4)Agreement, which designates an Installed Agreement Product (used in Order Capture integration with Agreements).
001=Asset
002=Product
003=Service
004=Agreement
005=Commitment
10 OFFER_TYPE Character(3) VARCHAR2(3) NOT NULL New Field added to PROD_MLPB_ITEM table to store information about offer type for given product
GRP=Group
SHR=Shared
11 DESCR Character(30) VARCHAR2(30) NOT NULL Description
12 DESCR1 Character(30) VARCHAR2(30) NOT NULL Descr
13 DESCRIPTION Character(35) VARCHAR2(35) NOT NULL Description
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