RI_AGRLN_STLVW(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 , D.LANGUAGE_CD , 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 , PSXLATITEMLANG D , PSXLATITEMLANG E , PSXLATITEM G , PSXLATITEM H ,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 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 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 | LANGUAGE_CD | Character(3) | VARCHAR2(3) NOT NULL | Language Code |
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 | AGR_SETID | Character(5) | VARCHAR2(5) NOT NULL |
Used to temporarily store the setid for the agreement or entitlements.
Prompt Table: SP_SETID_NONVW |
12 | 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. |
13 | STATUS_DESCR | Character(50) | VARCHAR2(50) NOT NULL | Field used to show the status description. Field used as edit box. |
14 | AGREEMENT_TYPE | Number(9,0) | DECIMAL(9) NOT NULL | This field represents the type of the agreement. |
15 | START_DT | Date(10) | DATE | Start date field to store start date value. |
16 | END_DT | Date(10) | DATE | This field stores the end date values. |
17 | AGRT_AMOUNT | Number(12,2) | DECIMAL(11,2) NOT NULL | This field represents the total amount (price) for an agreement |
18 | AGR_SCOPE | Character(4) | VARCHAR2(4) NOT NULL |
This field denotes the scope for the agreement (site, contact, etc.)
CONT=Contact SITE=Site |
19 | DESCR50 | Character(50) | VARCHAR2(50) NOT NULL | Description of length 50 |
20 | AGREEMENT_LINE | Character(10) | VARCHAR2(10) NOT NULL | This field records the value for the agreement line number |
21 | SERVICE_ID | Character(20) | VARCHAR2(20) NOT NULL | Service ID |
22 | PRODUCT_ID | Character(18) | VARCHAR2(18) NOT NULL | Product ID |
23 | 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 |
24 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
25 | BO_ID_PARTNER | Signed Number(32,0) | DECIMAL(31) NOT NULL | Business Object ID of Partner Company. |
26 | ROLE_TYPE_ID_PART | Number(12,0) | DECIMAL(12) NOT NULL | Stores ROLE_TYPE_ID for the partner |
27 | BO_ID_PART_CONT | Signed Number(32,0) | DECIMAL(31) NOT NULL | This is the business object identifier for the partner contact. |
28 | ROLE_TYPE_ID_PARTC | Number(12,0) | DECIMAL(12) NOT NULL | Stores ROLE_TYPE_ID for the partner contact |
29 | ROW_ADDED_DTTM | DateTime(26) | TIMESTAMP | This is a datetime field for record creation. |
30 | ROW_ADDED_OPRID | Character(30) | VARCHAR2(30) NOT NULL | ID of user who added the row. |
31 | ROW_LASTMANT_DTTM | DateTime(26) | TIMESTAMP | The date and time that the row was last updated. |
32 | ROW_LASTMANT_OPRID | Character(30) | VARCHAR2(30) NOT NULL | ID of user who last modified the row. |
33 | 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. |
34 | SYNCDTTM | DateTime(26) | TIMESTAMP | Synchronization Last Update Date Time |