VNR_SRCHADR_LNG(SQL View) |
Index Back |
---|---|
Supplier Address Search ViewCurrent and Future Addresses |
SELECT A.SETID , A.VENDOR_ID , B.ADDRESS_SEQ_NUM , B.EFFDT ,C.LANGUAGE_CD , A.VENDOR_NAME_SHORT , A.NAME1 , A.NAME2 , A.VENDOR_STATUS , A.VENDOR_CLASS , A.VENDOR_PERSISTENCE , A.CORPORATE_SETID , A.CORPORATE_VENDOR , A.CUST_SETID , A.CUST_ID , A.ENTERED_BY , A.AR_NUM , A.WTHD_SW , A.VAT_SW , A.VNDR_STATUS_PO , A.VNDR_TIN , C.ADDRESS1 , C.CITY , C.STATE , C.POSTAL , C.COUNTRY , C.NAME1_WTHD , A.CREATED_DTTM , A.CREATED_BY_USER , A.LAST_MODIFIED_DATE , A.LAST_ACTIVITY_DT FROM PS_VENDOR A , PS_VENDOR_ADDR B , PS_VENDOR_ADDR_LNG C WHERE A.SETID = B.SETID AND A.VENDOR_ID = B.VENDOR_ID AND B.SETID = C.SETID AND B.VENDOR_ID = C.VENDOR_ID AND B.ADDRESS_SEQ_NUM = C.ADDRESS_SEQ_NUM AND B.EFFDT = C.EFFDT AND B.EFFDT >= ( SELECT MAX(C.EFFDT) FROM PS_VENDOR_ADDR C WHERE C.SETID = B.SETID AND C.VENDOR_ID = B.VENDOR_ID AND C.ADDRESS_SEQ_NUM = B.ADDRESS_SEQ_NUM AND C.EFFDT <= %CurrentDateIn) AND B.EFF_STATUS = 'A' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL |
SetID
Default Value: OPR_DEF_TBL_FS.SETID Prompt Table: SETID_TBL |
2 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
3 | ADDRESS_SEQ_NUM | Number(5,0) | INTEGER NOT NULL | Address Sequence Number |
4 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %date |
5 | LANGUAGE_CD | Character(3) | VARCHAR2(3) NOT NULL | Language Code |
6 | VENDOR_NAME_SHORT | Character(14) | VARCHAR2(14) NOT NULL | Short Vendor Name |
7 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |
8 | NAME2 | Character(40) | VARCHAR2(40) NOT NULL | Name 2 |
9 | VENDOR_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Vendor Status
A=Approved D=Denied E=Unapproved I=Inactive X=To Be Archived |
10 | VENDOR_CLASS | Character(1) | VARCHAR2(1) NOT NULL |
Vendor Classification
A=Attorney E=Employee H=HCM R=Outside Party Default Value: R |
11 | VENDOR_PERSISTENCE | Character(1) | VARCHAR2(1) NOT NULL |
Persistence
O=One Time P=Permanent R=Regular S=Single Payment Supplier Default Value: R |
12 | CORPORATE_SETID | Character(5) | VARCHAR2(5) NOT NULL |
SetID
Default Value: VENDOR.SETID |
13 | CORPORATE_VENDOR | Character(10) | VARCHAR2(10) NOT NULL | Corporate Vendor |
14 | CUST_SETID | Character(5) | VARCHAR2(5) NOT NULL |
Customer SetID
Default Value: VENDOR.SETID Prompt Table: SETID_TBL |
15 | 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.
Prompt Table: CUSTOMER_FS |
16 | ENTERED_BY | Character(30) | VARCHAR2(30) NOT NULL | Entered by |
17 | AR_NUM | Character(15) | VARCHAR2(15) NOT NULL | Our Customer Number |
18 | WTHD_SW | Character(1) | VARCHAR2(1) NOT NULL |
Withholding Applicable Flag
B=Global and 1099 G=Global T=1099 Y/N Table Edit Default Value: N |
19 | VAT_SW | Character(1) | VARCHAR2(1) NOT NULL |
Display VAT Flag
H=Hide VAT checkbox N=Display VAT checkbox off Y=Display VAT checkbox on Y/N Table Edit Default Value: VENDOR_CONTROL.VAT_SW |
20 | VNDR_STATUS_PO | Character(1) | VARCHAR2(1) NOT NULL |
Open For Ordering
N=No Y=Yes Y/N Table Edit Default Value: Y |
21 | VNDR_TIN | Character(1) | VARCHAR2(1) NOT NULL | Vendor Tax Id Number |
22 | ADDRESS1 | Character(55) | VARCHAR2(55) NOT NULL | Address 1 |
23 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City |
24 | STATE | Character(6) | VARCHAR2(6) NOT NULL | State |
25 | POSTAL | Character(12) | VARCHAR2(12) NOT NULL | Postal |
26 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL | Country |
27 | NAME1_WTHD | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |
28 | CREATED_DTTM | DateTime(26) | TIMESTAMP | Created Date and time |
29 | CREATED_BY_USER | Character(30) | VARCHAR2(30) NOT NULL | Created By |
30 | LAST_MODIFIED_DATE | DateTime(26) | TIMESTAMP | Last modified date |
31 | LAST_ACTIVITY_DT | Date(10) | DATE | Last Activity Date |