RC_IPRD_CA_VW(SQL View) |
Index Back |
---|---|
Product promptPrompt on all products defined in the agreement line for a customer. (Support) |
SELECT p.SETID , i.BO_ID_CUST , lnp.AGREEMENT_CODE , lnp.AGR_RENEWAL_NUM , lnp.AGREEMENT_LINE , p.PRODUCT_ID , i.INST_PROD_ID , i.SERIAL_ID , p.DESCR FROM %Table(RF_INST_PROD) i , %Table(PROD_ITEM) p , %Table(RF_AG_LINE_PROD) lnp , %Table(RF_AGREEMENT) ag WHERE p.SETID = ( SELECT sc.SETID FROM %Table(SET_CNTRL_REC) sc WHERE sc.SETCNTRLVALUE = lnp.SETID AND sc.RECNAME = 'PROD_ITEM') AND p.PRODUCT_ID = lnp.PRODUCT_ID AND lnp.SETID = ag.SETID AND lnp.AGREEMENT_CODE = ag.AGREEMENT_CODE AND lnp.AGR_RENEWAL_NUM = ag.AGR_RENEWAL_NUM AND ag.BO_ID_CUST = i.BO_ID_CUST AND i.SETID = ( SELECT sc2.SETID FROM %Table(SET_CNTRL_REC) sc2 WHERE sc2.SETCNTRLVALUE = p.SETID AND sc2.RECNAME = 'RF_INST_PROD') AND i.INST_PROD_TYPE IN ('001', '002') AND i.INST_PROD_ID IN ( SELECT s.INST_PROD_ID FROM %Table(RF_INST_PROD_ST) s WHERE i.SETID = s.SETID AND s.INST_PROD_STATUS <> 'UNI') AND i.PRODUCT_ID = p.PRODUCT_ID AND i.BO_ID_CUST <> 0 |
# | 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 | BO_ID_CUST | Number(31,0) | DECIMAL(31) NOT NULL | This field stores the Business Object ID for the customer. |
3 | AGREEMENT_CODE | Character(30) | VARCHAR2(30) NOT NULL | This field represents the agreement code (name) for an agreement |
4 | 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) |
5 | AGREEMENT_LINE | Character(10) | VARCHAR2(10) NOT NULL | This field records the value for the agreement line number |
6 | PRODUCT_ID | Character(18) | VARCHAR2(18) NOT NULL | Product ID |
7 | INST_PROD_ID | Character(20) | VARCHAR2(20) NOT NULL | This field is used to represent the installed product ID (key field) |
8 | SERIAL_ID | Character(20) | VARCHAR2(20) NOT NULL | This field is used to represent the Serial ID of an item or installed product |
9 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |