FED_POC_CNTL_VW

(SQL View)
Index Back

FEDREG New Cust Master Info


SELECT X.CUSTOMER_SETID , X.CUST_ID , X.CONTACT_SETID , X.CONTACT_ID , X.DUNS_NUMBER , X.CCR_DUNS_PLUS4 FROM PS_CCR_VNDR_HDR H , PS_CCR_CUST_XREF X WHERE %Join(COMMON_KEYS, CCR_VNDR_HDR H, CCR_CUST_XREF X) AND H.SOURCE_SYSTEM = 'FED' AND H.FR_BUS_TYPE IN ('2','3') AND H.OM_COMPLETE = 'N' AND X.CUST_OBJ_TYPE = 'CAF' AND X.STATUS = 'A' UNION SELECT X.CUSTOMER_SETID , X.CUST_ID , X.CONTACT_SETID , X.CONTACT_ID , X.DUNS_NUMBER , X.CCR_DUNS_PLUS4 FROM PS_CCR_CUST_XREF X , PS_CCR_CUST_XREF X2 WHERE X.DUNS_NUMBER = X2.DUNS_NUMBER AND X.CCR_DUNS_PLUS4 = X2.CCR_DUNS_PLUS4 AND X.SOURCE_SYSTEM = X2.SOURCE_SYSTEM AND X.CUSTOMER_SETID = X2.CUSTOMER_SETID AND X.CUST_ID = X2.CUST_ID AND X.SOURCE_SYSTEM = 'FED' AND X.CUST_OBJ_TYPE = 'CUST' AND X2.CUST_OBJ_TYPE = 'LAF' AND X.STATUS = 'A' AND NOT EXISTS ( SELECT 'X' FROM PS_CCR_CUST_XREF X3 WHERE X3.DUNS_NUMBER = X.DUNS_NUMBER AND X3.CCR_DUNS_PLUS4 = X.CCR_DUNS_PLUS4 AND X3.SOURCE_SYSTEM = X.SOURCE_SYSTEM AND X3.CUSTOMER_SETID = X.CUSTOMER_SETID AND X3.CUST_ID = X.CUST_ID AND X3.CUST_OBJ_TYPE = 'CAF')

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 CUST_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.
3 CONTACT_SETID Character(5) VARCHAR2(5) NOT NULL Contact SetID
4 CONTACT_ID Character(15) VARCHAR2(15) NOT NULL Contact Identifier for Treasury Contacts
5 DUNS_NUMBER Character(9) VARCHAR2(9) NOT NULL DUNS Number
6 CCR_DUNS_PLUS4 Character(4) VARCHAR2(4) NOT NULL DUNS Suffix