RI_RF_AGRST_VW

(SQL View)
Index Back

Agreement

Agreements view used in 360-degree view node.

SELECT A.SETID , A.AGREEMENT_CODE , A.AGR_RENEWAL_NUM , 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 , 0 , 0 , A.SITE_ID , B.BO_ID , A.AGRT_STATUS , A.AGREEMENT_TYPE , A.START_DT , A.END_DT , A.AGRT_AMOUNT , %subrec(RB_AUDIT_SBR, A) FROM PS_RF_AGREEMENT A , PS_RF_AG_VAL_SITES C , PS_RF_SITE_360_VW B WHERE A.AGRT_STATUS <> 'OBS' AND C.SETID = B.SETCNTRLVALUE(+) AND C.SITE_ID = B.SITE_ID(+) AND A.SETID = C.SETID AND A.AGREEMENT_CODE = C.AGREEMENT_CODE AND A.AGR_RENEWAL_NUM = C.AGR_RENEWAL_NUM

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 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

2 AGREEMENT_CODE Character(30) VARCHAR2(30) NOT NULL This field represents the agreement code (name) for an agreement
3 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)
4 BO_ID_CUST Number(31,0) DECIMAL(31) NOT NULL This field stores the Business Object ID for the customer.
5 ROLE_TYPE_ID_CUST Number(12,0) DECIMAL(12) NOT NULL Stores ROLE_TYPE_ID for the customer
6 BO_ID_CONTACT Number(31,0) DECIMAL(31) NOT NULL This field indicates the Business Object ID for the contact.
7 ROLE_TYPE_ID_CNTCT Number(12,0) DECIMAL(12) NOT NULL Stores ROLE_TYPE_ID for the contact
8 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.
9 BO_ID_SITE Number(31,0) DECIMAL(31) NOT NULL Business Object ID
10 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
11 AGREEMENT_TYPE Number(9,0) DECIMAL(9) NOT NULL This field represents the type of the agreement.
12 START_DT Date(10) DATE Start date field to store start date value.
13 END_DT Date(10) DATE This field stores the end date values.
14 AGRT_AMOUNT Number(12,2) DECIMAL(11,2) NOT NULL This field represents the total amount (price) for an agreement
15 ROW_ADDED_DTTM DateTime(26) TIMESTAMP This is a datetime field for record creation.
16 ROW_ADDED_OPRID Character(30) VARCHAR2(30) NOT NULL ID of user who added the row.
17 ROW_LASTMANT_DTTM DateTime(26) TIMESTAMP The date and time that the row was last updated.
18 ROW_LASTMANT_OPRID Character(30) VARCHAR2(30) NOT NULL ID of user who last modified the row.
19 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.
20 SYNCDTTM DateTime(26) TIMESTAMP Synchronization Last Update Date Time