RI_AGRLN_ST_VW(SQL View) |
Index Back |
---|---|
Agreement Status ViewAgreement 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 , A.SETID , A.AGREEMENT_CODE , A.AGR_RENEWAL_NUM , A.SETID , A.SITE_ID , D.XLATLONGNAME , A.AGREEMENT_TYPE , A.START_DT , A.END_DT , A.AGRT_AMOUNT , A.AGR_SCOPE , E.XLATLONGNAME , L.AGREEMENT_LINE , L.SERVICE_ID ,L.PRODUCT_ID ,L.AGRT_LN_STATUS ,L.DESCR ,0 ,0 ,0 ,0 , %subrec(RB_AUDIT_SBR, A) FROM PS_RF_AGREEMENT A , PS_RF_SITE_360_VW B , PSXLATITEM D , PSXLATITEM E , PS_RF_AGREEMENT_LN L WHERE A.SETID = L.SETID AND A.AGREEMENT_CODE = L.AGREEMENT_CODE AND A.AGR_RENEWAL_NUM = L.AGR_RENEWAL_NUM AND A.AGRT_STATUS <> 'OBS' AND D.FIELDVALUE = A.AGRT_STATUS AND D.FIELDNAME = 'AGRT_STATUS' AND D.EFF_STATUS = 'A' AND D.EFFDT <= %CurrentDateIn AND E.FIELDVALUE = A.AGR_SCOPE AND E.FIELDNAME = 'AGR_SCOPE' AND E.EFF_STATUS = 'A' AND E.EFFDT <= %CurrentDateIn AND B.SETCNTRLVALUE = A.SETID (+) AND B.SITE_ID = A.SITE_ID (+) |
# | 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 | SETID | Character(5) | VARCHAR2(5) NOT NULL | This field is used to store the value of SetID on various setup tables. |
8 | AGREEMENT_CODE | Character(30) | VARCHAR2(30) NOT NULL | This field represents the agreement code (name) for an agreement |
9 | 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) |
10 | AGR_SETID | Character(5) | VARCHAR2(5) NOT NULL |
Used to temporarily store the setid for the agreement or entitlements.
Prompt Table: SP_SETID_NONVW |
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 | AGREEMENT_LINE | Character(10) | VARCHAR2(10) NOT NULL | This field records the value for the agreement line number |
20 | SERVICE_ID | Character(20) | VARCHAR2(20) NOT NULL | Service ID |
21 | PRODUCT_ID | Character(18) | VARCHAR2(18) NOT NULL | Product ID |
22 | AGRT_LN_STATUS | Character(3) | VARCHAR2(3) NOT NULL |
Field for Storing the Agreement Line Status
001=1-Pending 005=2-Active 009=3-Closed |
23 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
24 | BO_ID_PARTNER | Signed Number(32,0) | DECIMAL(31) NOT NULL | Business Object ID of Partner Company. |
25 | ROLE_TYPE_ID_PART | Number(12,0) | DECIMAL(12) NOT NULL | Stores ROLE_TYPE_ID for the partner |
26 | BO_ID_PART_CONT | Signed Number(32,0) | DECIMAL(31) NOT NULL | This is the business object identifier for the partner contact. |
27 | ROLE_TYPE_ID_PARTC | Number(12,0) | DECIMAL(12) NOT NULL | Stores ROLE_TYPE_ID for the partner contact |
28 | ROW_ADDED_DTTM | DateTime(26) | TIMESTAMP | This is a datetime field for record creation. |
29 | ROW_ADDED_OPRID | Character(30) | VARCHAR2(30) NOT NULL | ID of user who added the row. |
30 | ROW_LASTMANT_DTTM | DateTime(26) | TIMESTAMP | The date and time that the row was last updated. |
31 | ROW_LASTMANT_OPRID | Character(30) | VARCHAR2(30) NOT NULL | ID of user who last modified the row. |
32 | 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. |
33 | SYNCDTTM | DateTime(26) | TIMESTAMP | Synchronization Last Update Date Time |