FED_CST_PHN_VW

(SQL View)
Index Back

FEDREG New Cust Address


SELECT X.DUNS_NUMBER , X.CCR_DUNS_PLUS4 , X.CUSTOMER_SETID , X.CUST_ID , %DateNull , 'A' , X.CUST_OBJ_TYPE , 'BUSN' , %Substring(A.PHONE_SUFFIX, 1, 3) , %Substring(A.CPARTY_PHONE_NBR, 1, 24) , %Substring(%NumToChar(A.EXT_REF_NBR), 1, 6) , 'Y' FROM PS_CCR_CUST_XREF X , PS_CCR_VNDR_ADDR A WHERE %Join(COMMON_KEYS, CCR_CUST_XREF X, CCR_VNDR_ADDR A) AND X.SOURCE_SYSTEM = 'FED' AND X.CUST_OBJ_TYPE = 'LAF' AND A.CCR_ADDR_TYPE = 'AF' UNION SELECT X.DUNS_NUMBER , X.CCR_DUNS_PLUS4 , X.CUSTOMER_SETID , X.CUST_ID , %DateNull , 'A' , X.CUST_OBJ_TYPE , 'FAX' , ' ' , %Substring(A.CPARTY_FAX_NBR, 1, 24) , ' ' , 'N' FROM PS_CCR_CUST_XREF X , PS_CCR_VNDR_ADDR A WHERE %Join(COMMON_KEYS, CCR_CUST_XREF X, CCR_VNDR_ADDR A) AND X.SOURCE_SYSTEM = 'FED' AND X.CUST_OBJ_TYPE = 'LAF' AND A.CCR_ADDR_TYPE = 'AF'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 DUNS_NUMBER Character(9) VARCHAR2(9) NOT NULL DUNS Number
2 CCR_DUNS_PLUS4 Character(4) VARCHAR2(4) NOT NULL DUNS Suffix
3 CUSTOMER_SETID Character(5) VARCHAR2(5) NOT NULL Customer SetID
4 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.
5 EFFDT Date(10) DATE Effective Date
6 EFF_STATUS Character(1) VARCHAR2(1) NOT NULL Effective Status
A=Active
I=Inactive
7 CUST_OBJ_TYPE Character(4) VARCHAR2(4) NOT NULL Customer Object Type
BUSN=Business Phone
CAF=AP Point of Contact -obsolete
CAP=AP Point of Contact
CUST=Customer
DNS=DUNS Number
DOD=DODAAC Code
DP4=DUNS Plus 4
EIN=Employer ID Number
FAX=Fax Phone
FSC=Federal Supply Class
LAF=Accounts Receivable Address
LAP=Accounts Payable Address
LAR=Accounts Receivable Address
LCN=Corporate Address
LFE=Mailing Address
LRI=Remit Address Contact
LSL=Sales Address Contact
PSC=Public Service Code
SBA=SBA Business Types
SSN=Social Security Number
TIN=Tax Identification Number
USA=NAICS SIC Code
USE=Exception NAICS SIC Code
USP=Primary NAICS SIC Code
8 PHONE_TYPE Character(4) VARCHAR2(4) NOT NULL Phone Type
BUSN=Business Phone
CAMP=Campus Phone
CELL=Cellular Phone
DORM=Dormitory Phone
FAX=FAX
HOME=Home Phone
MAIN=Main
OTR=Other
PGR1=Pager 1
PGR2=Pager 2
TELX=Telex
9 COUNTRY_CODE Character(3) VARCHAR2(3) NOT NULL Int'l Prefix
10 PHONE Character(24) VARCHAR2(24) NOT NULL Telephone
11 EXTENSION Character(6) VARCHAR2(6) NOT NULL Phone Extension
12 PRIMARY_PHONE Character(1) VARCHAR2(1) NOT NULL Primary Phone