RO_RSF_LOPPY_VW

(SQL View)
Index Back

SFA Lead/Oppy OC View

Get all Captures related to a Lead/Oppy

SELECT DISTINCT B.LEAD_ID ,B.OPPORTUNITY_ID ,A.CAPTURE_ID ,A.BUSINESS_UNIT ,A.REVISION_NUMBER ,A.DESCR50 ,A.STATUS_CODE ,A.CAPTURE_TYPE_CD ,A.CURRENCY_CD ,A.TOTAL_PRICE ,A.CAPTURE_DATE ,A.QUOTE_DUE_DATE ,A.QUOTE_EXPIRE_DT ,B.TYPE ,B.CAPTURE_ID_REL ,%subrec(RB_AUDIT_SBR,A) FROM PS_RO_HEADER A , PS_RO_ASSOCIATION B WHERE A.CAPTURE_ID=B.CAPTURE_ID AND B.TYPE IN ('SL','ROPP')

  • Related Language Record: RO_RSF_LOPP_LVW
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 LEAD_ID Character(15) VARCHAR2(15) NOT NULL Used by Sales Force Automation, this field uniquely identifies a Sales Lead.
    2 OPPORTUNITY_ID Character(15) VARCHAR2(15) NOT NULL Opportunity ID
    3 CAPTURE_ID Character(20) VARCHAR2(20) NOT NULL Field use to store the capture ID in order capture.
    4 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
    5 REVISION_NUMBER Number(3,0) SMALLINT NOT NULL Revision
    6 DESCR50 Character(50) VARCHAR2(50) NOT NULL Description of length 50
    7 STATUS_CODE Number(5,0) INTEGER NOT NULL Status Code

    Prompt Table: RO_DEFN_HDSTAT

    8 CAPTURE_TYPE_CD Character(4) VARCHAR2(4) NOT NULL Capture Type
    QUO=Quote
    SO=Order

    Prompt Table: RO_TYPE

    9 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL This field stores the Currency Code value.
    10 TOTAL_PRICE Signed Number(30,4) DECIMAL(28,4) NOT NULL Total Price
    11 CAPTURE_DATE Date(10) DATE Order capture date used for orders and quotes
    12 QUOTE_DUE_DATE Date(10) DATE This field is used to show the quotes due date and the order scheduled fulfillment date
    13 QUOTE_EXPIRE_DT Date(10) DATE Quote Expire Date
    14 TYPE Character(4) VARCHAR2(4) NOT NULL Association Types
    15 EXTERNAL_ID Character(20) VARCHAR2(20) NOT NULL External ID
    16 ROW_ADDED_DTTM DateTime(26) TIMESTAMP This is a datetime field for record creation.
    17 ROW_ADDED_OPRID Character(30) VARCHAR2(30) NOT NULL ID of user who added the row.
    18 ROW_LASTMANT_DTTM DateTime(26) TIMESTAMP The date and time that the row was last updated.
    19 ROW_LASTMANT_OPRID Character(30) VARCHAR2(30) NOT NULL ID of user who last modified the row.
    20 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.
    21 SYNCDTTM DateTime(26) TIMESTAMP Synchronization Last Update Date Time