RSF_OPP_UN_VW

(SQL View)
Index Back

Unassigned Opps

View of all Unassigned Opportunities

SELECT DISTINCT O.OPPORTUNITY_ID , O.OPPORTUNITY_NAME , O.OPPORTUNITY_STATUS , O.CUST_SETID , O.BUSINESS_UNIT , O.CUST_ID , O.BO_ID_CUST , O.ROLE_TYPE_ID_CUST , O.BO_ID_CONTACT , O.PROFILE_CM_SEQ , O.REGION_ID , O.TERRITORY_ID , O.CONTACT_ID , O.PHONE_TYPE , O.PHONE , O.NAME , O.SALES_MODEL , O.SALES_STAGE , O.SALES_TASK , O.INDUSTRY_ID , O.EST_REVENUE , O.ACT_REVENUE , O.CONFIDENCE_PCT , O.STAGE_PCT_CLOSE , O.ACT_CLOSE_DT , O.EST_CLOSE_DT , O.LEAD_SOURCE_ID , O.LEAD_ID , O.PRODUCT_GROUP , O.PROD_GRP_SETID , O.PRODUCT_ID , O.PROD_SETID , %subrec(ADDRESS_SBR, O) , %subrec(RB_MARKET_SBR, O) , %subrec(RB_AUDIT_SBR, O) FROM PS_RSF_OPPORTUNITY O WHERE NOT EXISTS ( SELECT 'X' FROM PS_RSF_OPP_SLSREP WHERE OPPORTUNITY_ID = O.OPPORTUNITY_ID)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 OPPORTUNITY_ID Character(15) VARCHAR2(15) NOT NULL Opportunity ID

Default Value: NEXT

2 OPPORTUNITY_NAME Character(50) VARCHAR2(50) NOT NULL Opportunity Name - User Enters this field in Mixed Case.
3 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

Default Value: 0

4 CUST_SETID Character(5) VARCHAR2(5) NOT NULL Customer Setid
5 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

Default Value: RSF_OPR_DEF_VW.BUSINESS_UNIT

Prompt Table: SP_BU_RSF_NONVW

6 CUST_ID Character(15) VARCHAR2(15) NOT NULL Customer ID
7 BO_ID_CUST Number(31,0) DECIMAL(31) NOT NULL This field stores the Business Object ID for the customer.
8 ROLE_TYPE_ID_CUST Number(12,0) DECIMAL(12) NOT NULL Stores ROLE_TYPE_ID for the customer

Default Value: 2

Prompt Table: RSF_BO_ROLTY_VW

9 BO_ID_CONTACT Number(31,0) DECIMAL(31) NOT NULL This field indicates the Business Object ID for the contact.
10 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.

Prompt Table: RSF_ROLE_ADR_VW

11 REGION_ID Character(15) VARCHAR2(15) NOT NULL This field stores the region id value.

Prompt Table: RSF_REGION_VW

12 TERRITORY_ID Character(20) VARCHAR2(20) NOT NULL Territory ID

Prompt Table: RSF_TERRITORY

13 CONTACT_ID Character(15) VARCHAR2(15) NOT NULL Contact Identifier for Treasury Contacts

Prompt Table: RSF_CNTCT_BC_VW

14 PHONE_TYPE Character(4) VARCHAR2(4) NOT NULL phone type field to store value of phone type.
BUSN=Business Phone
CAMP=Campus
CELL=Cellular Phone
DFLT=Default
DORM=Dormitory
FAX=FAX
HOME=Home Phone
MAIN=Main
OTR=Other
PGR1=Pager 1
PGR2=Pager 2
TELX=Telex
WORK=Work

Default Value: BUSN

15 PHONE Character(24) VARCHAR2(24) NOT NULL This field stores the Telephone number.
16 NAME Character(50) VARCHAR2(50) NOT NULL Name

Prompt Table: RD_PERSON

17 SALES_MODEL Character(18) VARCHAR2(18) NOT NULL Sales Model Id

Prompt Table: RSF_SLSMDL_A_VW

18 SALES_STAGE Character(24) VARCHAR2(24) NOT NULL Sales Stage Identifier

Prompt Table: RSF_SALES_STG_V

19 SALES_TASK Character(24) VARCHAR2(24) NOT NULL Sales Stage Task Identifier

Prompt Table: RSF_SALES_TSK_V

20 INDUSTRY_ID Character(30) VARCHAR2(30) NOT NULL Industry ID.

Prompt Table: RSF_INDUSTRY_VW

21 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.
22 ACT_REVENUE Number(27,3) DECIMAL(26,3) NOT NULL Actual Revenue
23 CONFIDENCE_PCT Number(3,0) SMALLINT NOT NULL Confidence Percentage
24 STAGE_PCT_CLOSE Number(3,0) SMALLINT NOT NULL To indicate a % of how much a stage is completed
25 ACT_CLOSE_DT Date(10) DATE Actual Close Date of an Opportunity
26 EST_CLOSE_DT Date(10) DATE Estimated Close Date of an Opportunity
27 LEAD_SOURCE_ID Character(15) VARCHAR2(15) NOT NULL Used by Sales Force Automation to identify the source of a Sales Lead.
28 LEAD_ID Character(15) VARCHAR2(15) NOT NULL Used by Sales Force Automation, this field uniquely identifies a Sales Lead.
29 PRODUCT_GROUP Character(10) VARCHAR2(10) NOT NULL PRoduct Group

Prompt Table: RSF_PRODGRP_VW

30 PROD_GRP_SETID Character(5) VARCHAR2(5) NOT NULL Product Group SetID
31 PRODUCT_ID Character(18) VARCHAR2(18) NOT NULL Product ID

Prompt Table: RSF_PROD_VW

32 PROD_SETID Character(5) VARCHAR2(5) NOT NULL Product SET ID
33 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country

Prompt Table: COUNTRY_TBL

34 ADDRESS1 Character(55) VARCHAR2(55) NOT NULL Address 1
35 ADDRESS2 Character(55) VARCHAR2(55) NOT NULL Address 2
36 ADDRESS3 Character(55) VARCHAR2(55) NOT NULL Address 3
37 ADDRESS4 Character(55) VARCHAR2(55) NOT NULL Address 4
38 CITY Character(30) VARCHAR2(30) NOT NULL City
39 NUM1 Character(6) VARCHAR2(6) NOT NULL Number 1
40 NUM2 Character(4) VARCHAR2(4) NOT NULL Number 2
41 HOUSE_TYPE Character(2) VARCHAR2(2) NOT NULL House Type
AB=House Boat Reference
WW=House Trailer Reference
42 ADDR_FIELD1 Character(2) VARCHAR2(2) NOT NULL Address Field 1
43 ADDR_FIELD2 Character(4) VARCHAR2(4) NOT NULL Address Field 2
44 ADDR_FIELD3 Character(4) VARCHAR2(4) NOT NULL Address Field 3
45 COUNTY Character(30) VARCHAR2(30) NOT NULL County
46 STATE Character(6) VARCHAR2(6) NOT NULL State

Prompt Table: %EDIT_STATE

47 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal
48 GEO_CODE Character(11) VARCHAR2(11) NOT NULL Geo Code
49 IN_CITY_LIMIT Character(1) VARCHAR2(1) NOT NULL In City Limit

Y/N Table Edit

Default Value: Y

50 MARKET Character(3) VARCHAR2(3) NOT NULL Market
51 ROW_ADDED_DTTM DateTime(26) TIMESTAMP This is a datetime field for record creation.
52 ROW_ADDED_OPRID Character(30) VARCHAR2(30) NOT NULL ID of user who added the row.
53 ROW_LASTMANT_DTTM DateTime(26) TIMESTAMP The date and time that the row was last updated.
54 ROW_LASTMANT_OPRID Character(30) VARCHAR2(30) NOT NULL ID of user who last modified the row.
55 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.
56 SYNCDTTM DateTime(26) TIMESTAMP Synchronization Last Update Date Time