USF_CST_PHN_VW(SQL View) |
Index Back |
---|---|
USF New Cust Address |
SELECT X.USF_UEID , X.USF_EFT_IND , X.CUSTOMER_SETID , X.CUST_ID ,X.DUNS_NUMBER , %DateNull , 'A' , X.CUST_OBJ_TYPE , 'BUSN' , %Substring(A.PHONE_SUFFIX, 1, 3) , %Substring(A.CPARTY_PHONE_NBR, 1, 24) , %Substring(%NumToChar(A.USF_EXT_REF_NBR), 1, 6) , 'Y' FROM PS_USF_CUST_XREF X , PS_USF_VNDR_ADDR A WHERE %Join(COMMON_KEYS, USF_CUST_XREF X, USF_VNDR_ADDR A) AND X.CUST_OBJ_TYPE = 'LAP' AND A.USF_ADDR_TYPE = 'AP' UNION SELECT X.USF_UEID , X.USF_EFT_IND , X.CUSTOMER_SETID , X.CUST_ID ,X.DUNS_NUMBER , %DateNull , 'A' , X.CUST_OBJ_TYPE , 'FAX' , ' ' , %Substring(A.CPARTY_FAX_NBR, 1, 24) , ' ' , 'N' FROM PS_USF_CUST_XREF X , PS_USF_VNDR_ADDR A WHERE %Join(COMMON_KEYS, USF_CUST_XREF X, USF_VNDR_ADDR A) AND X.CUST_OBJ_TYPE = 'LAP' AND A.USF_ADDR_TYPE = 'AP' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | USF_UEID | Character(12) | VARCHAR2(12) NOT NULL | Unique Entity Identifier |
2 | USF_EFT_IND | Character(4) | VARCHAR2(4) NOT NULL | Entity EFT Indicator |
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 | DUNS_NUMBER | Character(9) | VARCHAR2(9) NOT NULL | DUNS Number |
6 | EFFDT | Date(10) | DATE | Effective Date |
7 | EFF_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Effective Status
A=Active I=Inactive |
8 | 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 |
9 | 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 |
10 | COUNTRY_CODE | Character(3) | VARCHAR2(3) NOT NULL | Int'l Prefix |
11 | PHONE | Character(24) | VARCHAR2(24) NOT NULL | Telephone |
12 | EXTENSION | Character(6) | VARCHAR2(6) NOT NULL | Phone Extension |
13 | PRIMARY_PHONE | Character(1) | VARCHAR2(1) NOT NULL | Primary Phone |