RI_RFAGRSTLOVW

(SQL View)
Index Back

Agreement Status View

Agreement Status View used in 360-degree view

SELECT A.BO_ID_CUST , CASE WHEN A.ROLE_TYPE_ID_CUST = 42 THEN 2 WHEN A.ROLE_TYPE_ID_CUST = 46 THEN 9 ELSE A.ROLE_TYPE_ID_CUST END , A.BO_ID_CONTACT , A.ROLE_TYPE_ID_CNTCT , B.BO_ID , A.AGRT_STATUS , D.LANGUAGE_CD , A.SETID , A.AGREEMENT_CODE , A.AGR_RENEWAL_NUM , A.SITE_ID , D.XLATLONGNAME , A.AGREEMENT_TYPE , A.START_DT , A.END_DT , A.AGRT_AMOUNT , A.AGR_SCOPE , E.XLATLONGNAME , O.OPRID ,0 ,0 ,0 ,0 , %subrec(RB_AUDIT_SBR, A) FROM PS_RF_AGREEMENT A , PS_RF_SITE_360_VW B , PSXLATITEMLANG D , PSXLATITEMLANG E , PSXLATITEM G , PSXLATITEM H ,PS_SEC_SETID_OPR O WHERE A.AGRT_STATUS <> 'OBS' AND D.FIELDVALUE = A.AGRT_STATUS AND D.FIELDNAME = 'AGRT_STATUS' AND G.EFF_STATUS = 'A' AND D.EFFDT <= %CurrentDateIn AND D.FIELDNAME = G.FIELDNAME AND D.FIELDVALUE = G.FIELDVALUE AND G.EFFDT <= %CurrentDateIn AND E.FIELDVALUE = A.AGR_SCOPE AND E.FIELDNAME = 'AGR_SCOPE' AND H.EFF_STATUS = 'A' AND E.EFFDT <= %CurrentDateIn AND E.FIELDNAME = H.FIELDNAME AND E.FIELDVALUE = H.FIELDVALUE AND H.EFFDT <= %CurrentDateIn AND O.SETID = A.SETID AND B.SETCNTRLVALUE = A.SETID (+) AND B.SITE_ID = A.SITE_ID (+) AND E.LANGUAGE_CD = D.LANGUAGE_CD

  • Related Language Record for RI_RFAGRI_STOVW RI_RFAGR_STOVW
  • # 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 AGRT_STATUS Character(3) VARCHAR2(3) NOT NULL This field represents the agreement status value.
    001=Pending
    002=Pending Activation
    003=Action Required
    005=Active
    009=Closed
    7 LANGUAGE_CD Character(3) VARCHAR2(3) NOT NULL Language Code
    8 SETID Character(5) VARCHAR2(5) NOT NULL This field is used to store the value of SetID on various setup tables.

    Default Value: OPR_DEF_TBL_RB.SETID

    Prompt Table: SP_SETID_NONVW

    9 AGREEMENT_CODE Character(30) VARCHAR2(30) NOT NULL This field represents the agreement code (name) for an agreement
    10 AGR_RENEWAL_NUM Number(4,0) SMALLINT NOT NULL This field represents the agreement renewal number (agreements begin at a value of one and the number is incremented with every renewal)
    11 SITE_ID Character(15) VARCHAR2(15) NOT NULL Uniquely identifies an organizational entity that purchases goods or services from the enterprise. Represents the sold-to customer which is the customer organization that places orders. The CUST_ID may or may not be the same as the identifiers for the bill-to and ship-to locations.
    12 STATUS_DESCR Character(50) VARCHAR2(50) NOT NULL Field used to show the status description. Field used as edit box.
    13 AGREEMENT_TYPE Number(9,0) DECIMAL(9) NOT NULL This field represents the type of the agreement.
    14 START_DT Date(10) DATE Start date field to store start date value.
    15 END_DT Date(10) DATE This field stores the end date values.
    16 AGRT_AMOUNT Number(12,2) DECIMAL(11,2) NOT NULL This field represents the total amount (price) for an agreement
    17 AGR_SCOPE Character(4) VARCHAR2(4) NOT NULL This field denotes the scope for the agreement (site, contact, etc.)
    CONT=Contact
    SITE=Site
    18 DESCR50 Character(50) VARCHAR2(50) NOT NULL Description of length 50
    19 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
    20 BO_ID_PARTNER Signed Number(32,0) DECIMAL(31) NOT NULL Business Object ID of Partner Company.
    21 ROLE_TYPE_ID_PART Number(12,0) DECIMAL(12) NOT NULL Stores ROLE_TYPE_ID for the partner
    22 BO_ID_PART_CONT Signed Number(32,0) DECIMAL(31) NOT NULL This is the business object identifier for the partner contact.
    23 ROLE_TYPE_ID_PARTC Number(12,0) DECIMAL(12) NOT NULL Stores ROLE_TYPE_ID for the partner contact
    24 ROW_ADDED_DTTM DateTime(26) TIMESTAMP This is a datetime field for record creation.
    25 ROW_ADDED_OPRID Character(30) VARCHAR2(30) NOT NULL ID of user who added the row.
    26 ROW_LASTMANT_DTTM DateTime(26) TIMESTAMP The date and time that the row was last updated.
    27 ROW_LASTMANT_OPRID Character(30) VARCHAR2(30) NOT NULL ID of user who last modified the row.
    28 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.
    29 SYNCDTTM DateTime(26) TIMESTAMP Synchronization Last Update Date Time