RF_AG_SIN_VW

(SQL View)
Index Back

Valid SIN's by Customer View

Valid Agreement Site Identification Numbers by Customer

SELECT A.SETID , B.BO_ID_CUST , B.ROLE_TYPE_ID_CUST , A.SIN , A.SITE_ID , D.BO_NAME , B.AGREEMENT_CODE FROM PS_RF_AG_VAL_SITES A , PS_RF_AGREEMENT B , PS_RD_SITE C , PS_BO_NAME D WHERE A.SETID = B.SETID AND C.BO_ID = D.BO_ID AND A.AGREEMENT_CODE = B.AGREEMENT_CODE AND A.AGR_RENEWAL_NUM = B.AGR_RENEWAL_NUM AND B.AGRT_STATUS = '005' AND B.START_DT <= %CurrentDateIn AND B.END_DT >= %CurrentDateIn AND C.SITE_ID = A.SITE_ID AND C.SETID = ( SELECT R.SETID FROM PS_SET_CNTRL_REC R WHERE R.RECNAME = 'RD_SITE' AND A.SETID = R.SETCNTRLVALUE) AND D.PRIMARY_IND = 'Y'

# 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 ROLE_TYPE_ID_CUST Number(12,0) DECIMAL(12) NOT NULL Stores ROLE_TYPE_ID for the customer
4 SIN Character(40) VARCHAR2(40) NOT NULL This field is used to represent the Site Identification Number

Default Value: NEXT

5 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.
6 BO_NAME Character(50) VARCHAR2(50) NOT NULL Name Description of Business Object
7 AGREEMENT_CODE Character(30) VARCHAR2(30) NOT NULL This field represents the agreement code (name) for an agreement