RC_INST_CSA_VW

(SQL View)
Index Back

Installed Product prompt

Prompt on all installed products defined in the agreement line, plus all installed product taht only have product defined in the agreement line. Filter by customer and site.

SELECT i.SETID , i.BO_ID_CUST , s.BO_ID , ln.AGREEMENT_CODE , ln.AGR_RENEWAL_NUM , ln.AGREEMENT_LINE , i.INST_PROD_ID , i.SERIAL_ID , i.DESCR FROM %Table(RC_INST_PROD_VW) i , %Table(RF_AGREEMENT_LN) ln , %Table(SET_CNTRL_REC) sc , %Table(RD_SITE) s WHERE i.INST_PROD_TYPE IN ('002', '003') AND s.SETID = ( SELECT sc2.SETID FROM %Table(SET_CNTRL_REC) sc2 WHERE sc2.SETCNTRLVALUE = i.SETID AND sc2.RECNAME = 'RD_SITE') AND s.SITE_ID = i.SITE_ID AND ln.SETID = sc.SETID AND sc.SETCNTRLVALUE = i.SETID AND sc.RECNAME = 'RF_AGREEMENT_LN' AND ((i.PRODUCT_ID IN ( SELECT lnp.PRODUCT_ID FROM %Table(RF_AG_LINE_PROD) lnp , %Table(RF_AGREEMENT) ag WHERE i.BO_ID_CUST = ag.BO_ID_CUST AND lnp.SETID = ln.SETID AND lnp.AGREEMENT_CODE = ln.AGREEMENT_CODE AND lnp.AGR_RENEWAL_NUM = ln.AGR_RENEWAL_NUM AND lnp.AGREEMENT_LINE = ln.AGREEMENT_LINE AND lnp.SETID = ag.SETID AND lnp.AGREEMENT_CODE = ag.AGREEMENT_CODE AND lnp.AGR_RENEWAL_NUM = ag.AGR_RENEWAL_NUM AND (ag.AGR_SCOPE <> 'SITE' OR i.SITE_ID IN ( SELECT lns.SITE_ID FROM %Table(RF_AG_LINE_SITE) lns WHERE lnp.SETID = lns.SETID AND lnp.AGREEMENT_CODE = lns.AGREEMENT_CODE AND lnp.AGR_RENEWAL_NUM = lns.AGR_RENEWAL_NUM AND lnp.AGREEMENT_LINE = lns.AGREEMENT_LINE)) AND lnp.PRODUCT_ID NOT IN ( SELECT i2.PRODUCT_ID FROM %Table(RF_INST_PROD) i2 , %Table(RF_UNDER_SVC) lni2 WHERE i2.SETID = i.SETID AND lni2.INST_PROD_ID = i2.INST_PROD_ID AND lni2.SETID = ln.SETID AND lni2.AGREEMENT_CODE = ln.AGREEMENT_CODE AND lni2.AGR_RENEWAL_NUM = ln.AGR_RENEWAL_NUM AND lni2.AGREEMENT_LINE = ln.AGREEMENT_LINE))) OR (i.INST_PROD_ID IN ( SELECT lni.INST_PROD_ID FROM %Table(RF_UNDER_SVC) lni WHERE lni.SETID = ln.SETID AND lni.AGREEMENT_CODE = ln.AGREEMENT_CODE AND lni.AGR_RENEWAL_NUM = ln.AGR_RENEWAL_NUM AND lni.AGREEMENT_LINE = ln.AGREEMENT_LINE))) AND i.BO_ID_CUST <> 0

  • Related Language Record: RC_INST_CSALVW
  • # 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 BO_ID_SITE Number(31,0) DECIMAL(31) NOT NULL Business Object ID
    4 AGREEMENT_CODE Character(30) VARCHAR2(30) NOT NULL This field represents the agreement code (name) for an agreement
    5 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)
    6 AGREEMENT_LINE Character(10) VARCHAR2(10) NOT NULL This field records the value for the agreement line number
    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