RSFD_OP_COMP_V2(SQL View) |
Index Back |
---|---|
Dash Opportunity CompetitorThe view which bridges between opportunities and the corresponding Sales Rep and competitors for dashboard. No Close record. No Competitor |
SELECT DISTINCT O.OPPORTUNITY_ID , S.PERSON_ID , C.BO_ID_CUST , C.BO_ID_CUST , O.OPPORTUNITY_NAME , O.OPPORTUNITY_STATUS , O.EST_CLOSE_DT , O.CURRENCY_CD , %DateNull , O.SALES_MODEL , O.SALES_STAGE , O.STAGE_PCT_CLOSE , O.BO_ID_CUST , O.ROLE_TYPE_ID , O.BUSINESS_UNIT , O.SETID , O.BO_ID_PARTNER , O.CONFIDENCE_PCT , O.SALES_PRIORITY , O.BUSINESS_UNIT_RA , O.RA_CAMPAIGN_ID , O.REGION_ID , O.TREE_NAME , O.TERRITORY_ID , O.INDUSTRY_ID , O.LEAD_ID , ' ' , 0 , EA.TIMEFRAME_PERIOD , EQ.TIMEFRAME_PERIOD , EA.BEGIN_DT , EA.END_DT , EQ.BEGIN_DT , EQ.END_DT , O.ROW_LASTMANT_DTTM , UTFA.TIMEFRAME_PERIOD , UTFQ.TIMEFRAME_PERIOD , O.EST_REVENUE , O.ACT_REVENUE , S.PCT_ALLOC FROM PS_RSF_OPP_SLSREP S , PS_RSFD_OPPBASE_VW O , PS_RSF_OPP_CLOSE C , PS_RSFD_TFP_ANN_VW EA , PS_RSFD_TFP_QTR_VW EQ , PS_RSFD_TFP_ANN_VW UTFA , PS_RSFD_TFP_QTR_VW UTFQ WHERE O.OPPORTUNITY_ID = C.OPPORTUNITY_ID AND O.OPPORTUNITY_ID = S.OPPORTUNITY_ID AND O.OPPORTUNITY_STATUS = '1' AND C.BO_ID_CUST > 0 AND O.EST_CLOSE_DT BETWEEN EA.BEGIN_DT AND EA.END_DT AND O.EST_CLOSE_DT BETWEEN EQ.BEGIN_DT AND EQ.END_DT AND %DatePart(C.ROW_LASTMANT_DTTM) BETWEEN UTFA.BEGIN_DT AND UTFA.END_DT AND %DatePart(C.ROW_LASTMANT_DTTM) BETWEEN UTFQ.BEGIN_DT AND UTFQ.END_DT |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | OPPORTUNITY_ID | Character(15) | VARCHAR2(15) NOT NULL | Opportunity ID |
2 | PERSON_ID | Character(15) | VARCHAR2(15) NOT NULL | Person ID |
3 | BO_ID_2 | Signed Number(32,0) | DECIMAL(31) NOT NULL | Business Object ID 2 |
4 | BO_ID_3 | Number(31,0) | DECIMAL(31) NOT NULL | Business object ID 3rd version |
5 | OPPORTUNITY_NAME | Character(50) | VARCHAR2(50) NOT NULL | Opportunity Name - User Enters this field in Mixed Case. |
6 | OPPORTUNITY_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Opportunity Status. The values are XLat Values
0=Open 1=Closed - Lost 2=Closed - Won 3=Inactive |
7 | EST_CLOSE_DT | Date(10) | DATE | Estimated Close Date of an Opportunity |
8 | FROM_CUR | Character(3) | VARCHAR2(3) NOT NULL | From Currency Code |
9 | ACT_CLOSE_DT | Date(10) | DATE | Actual Close Date of an Opportunity |
10 | SALES_MODEL | Character(18) | VARCHAR2(18) NOT NULL | Sales Model Id |
11 | SALES_STAGE | Character(24) | VARCHAR2(24) NOT NULL | Sales Stage Identifier |
12 | STAGE_PCT_CLOSE | Number(3,0) | SMALLINT NOT NULL | To indicate a % of how much a stage is completed |
13 | BO_ID_CUST | Number(31,0) | DECIMAL(31) NOT NULL | This field stores the Business Object ID for the customer. |
14 | ROLE_TYPE_ID | Number(12,0) | DECIMAL(12) NOT NULL | Role Type ID |
15 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
16 | SETID | Character(5) | VARCHAR2(5) NOT NULL | This field is used to store the value of SetID on various setup tables. |
17 | BO_ID_PARTNER | Signed Number(32,0) | DECIMAL(31) NOT NULL | Business Object ID of Partner Company. |
18 | CONFIDENCE_PCT | Number(3,0) | SMALLINT NOT NULL | Confidence Percentage |
19 | SALES_PRIORITY | Character(3) | VARCHAR2(3) NOT NULL |
Priority of sales lead and opportunity
1=1-One 2=2-Two 3=3-Three 4=4-Four 5=5-Five 6=6-Six 7=7-Seven 8=8-Eight 9=9-Nine Default Value: 5 |
20 | BUSINESS_UNIT_RA | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Prompt Table: SP_BU_RA_NONVW |
21 | RA_CAMPAIGN_ID | Character(15) | VARCHAR2(15) NOT NULL |
Marketing - Campaign Identification field. Character field that will contain a generated campaign or free form entered campaign id.
Prompt Table: RSF_CAMPAIGN_VW |
22 | REGION_ID | Character(15) | VARCHAR2(15) NOT NULL | This field stores the region id value. |
23 | TREE_NAME | Character(18) | VARCHAR2(18) NOT NULL |
Tree Name
Default Value: RSF_OPR_DEF_VW.TREE_NAME Prompt Table: RSF_OPR_TREE_VW |
24 | TERRITORY_ID | Character(20) | VARCHAR2(20) NOT NULL | Territory ID |
25 | INDUSTRY_ID | Character(30) | VARCHAR2(30) NOT NULL | Industry ID. |
26 | LEAD_ID | Character(15) | VARCHAR2(15) NOT NULL | Used by Sales Force Automation, this field uniquely identifies a Sales Lead. |
27 | FALLOUT_RSN_CD | Character(10) | VARCHAR2(10) NOT NULL |
Fall Out Reason code
Prompt Table: RSF_FALLOUT_RSN |
28 | BO_ID1 | Number(31,0) | DECIMAL(31) NOT NULL | Business Object ID |
29 | EST_TF_ANNUAL | Character(32) | VARCHAR2(32) NOT NULL | Timeframe period used in dashboard for estimated close date range |
30 | EST_TF_QTR | Character(32) | VARCHAR2(32) NOT NULL | Timeframe period used in dashboard for estimated close date range |
31 | BEGIN_DT_ANN_EST | Date(10) | DATE | Timeframe dates for dashboard: annual begin |
32 | END_DT_ANN_EST | Date(10) | DATE | Timeframe dates for dashboard: annual end |
33 | BEGIN_DT_QTR_EST | Date(10) | DATE | Timeframe dates for dashboard: quarter begin |
34 | END_DT_QTR_EST | Date(10) | DATE | Timeframe dates for dashboard: quarter end |
35 | ROW_LASTMANT_DTTM | DateTime(26) | TIMESTAMP | The date and time that the row was last updated. |
36 | RSD_UPD_TF_ANN | Character(32) | VARCHAR2(32) NOT NULL | Timeframe period used in dashboard for the annual period enclosing date when the record was updated. |
37 | RSD_UPD_TF_QTR | Character(32) | VARCHAR2(32) NOT NULL | Timeframe period used in dashboard for the quarterly period enclosing date when the record was updated. |
38 | EST_REVENUE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | The expected revenue (amount) associated with an Opportunity. This is particularly used for forecasting. |
39 | ACT_REVENUE | Number(27,3) | DECIMAL(26,3) NOT NULL | Actual Revenue |
40 | PCT_ALLOC | Number(3,0) | SMALLINT NOT NULL | Allocation Percentage |