RF_AG_SV_PROD_V

(SQL View)
Index Back

View for Agreement Line

View combining the Agreement Line Service with the Agreement Line Product child table

SELECT A.SETID , A.AGREEMENT_CODE , A.AGR_RENEWAL_NUM , A.AGREEMENT_LINE , B.PRODUCT_ID , A.SERVICE_ID , B.QUANTITY_USED , B.BASE_PRICE , A.CURRENCY_CD , B.PURCHASE_OPTN FROM PS_RF_AGREEMENT_LN A , PS_RF_AG_LINE_PROD B WHERE A.SETID = B.SETID AND A.AGREEMENT_CODE = B.AGREEMENT_CODE AND A.AGR_RENEWAL_NUM = B.AGR_RENEWAL_NUM AND A.AGREEMENT_LINE = B.AGREEMENT_LINE

# 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.
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 AGREEMENT_LINE Character(10) VARCHAR2(10) NOT NULL This field records the value for the agreement line number
5 PRODUCT_ID Character(18) VARCHAR2(18) NOT NULL Product ID
6 SERVICE_ID Character(20) VARCHAR2(20) NOT NULL Service ID
7 QUANTITY_USED Number(10,0) DECIMAL(10) NOT NULL Used to store the product quantity on an installed product.
8 EXTENDED_PRICE Number(21,5) DECIMAL(20,5) NOT NULL Price Field for showing the extended price for the Agreement Line
9 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL This field stores the Currency Code value.
10 PURCHASE_OPTN Character(4) VARCHAR2(4) NOT NULL This field is used to represent the purchase option (used in agreement pricing)
FLAT=Flat Rate
PRPD=Prepaid Cases/Services
TM=Time & Material