RSF_OPP_APC_VW

(SQL View)
Index Back

Opps as Parent Account Member

This view is used as dataset to grant access to those opportunities where the user may not be assigned as a sales rep for that opportunity, but is the member of the parent account team for the child company assigned on that opportunity.

SELECT A.OPPORTUNITY_ID , OPPORTUNITY_NAME , A.BUSINESS_UNIT , A.BO_ID_CUST , F.BO_ID_PARENT , C.PERSON_ID , %subrec(RB_AUDIT_SBR, A) FROM PS_RSF_OPPORTUNITY A , PS_BO_REL B , PS_RD_PERSON C , PS_RB_CUST_FLAT F WHERE F.BO_ID_PARENT = B.BO_ID_2 AND B.BO_ID_1 = C.BO_ID AND F.BO_ID = A.BO_ID_CUST AND B.REL_TYPE_ID IN (31, 32) AND B.START_DT <= %CurrentDateIn AND B.END_DT > %CurrentDateIn

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 OPPORTUNITY_ID Character(15) VARCHAR2(15) NOT NULL Opportunity ID
2 OPPORTUNITY_NAME Character(50) VARCHAR2(50) NOT NULL Opportunity Name - User Enters this field in Mixed Case.
3 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
4 BO_ID_CUST Number(31,0) DECIMAL(31) NOT NULL This field stores the Business Object ID for the customer.
5 BO_ID_PARENT Number(31,0) DECIMAL(31) NOT NULL Business Object ID of the Parent Company.
6 PERSON_ID_ACCT Character(15) VARCHAR2(15) NOT NULL This field stores the Person ID of the account team owner or account team member.
7 ROW_ADDED_DTTM DateTime(26) TIMESTAMP This is a datetime field for record creation.
8 ROW_ADDED_OPRID Character(30) VARCHAR2(30) NOT NULL ID of user who added the row.
9 ROW_LASTMANT_DTTM DateTime(26) TIMESTAMP The date and time that the row was last updated.
10 ROW_LASTMANT_OPRID Character(30) VARCHAR2(30) NOT NULL ID of user who last modified the row.
11 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.
12 SYNCDTTM DateTime(26) TIMESTAMP Synchronization Last Update Date Time