VNDR_SRCHADR_VW(SQL View) |
Index Back |
---|---|
Supplier Address Search ViewCurrent and Future Addresses |
SELECT A.SETID , A.VENDOR_ID , B.ADDRESS_SEQ_NUM , B.EFFDT , 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 , B.ADDRESS1 , B.CITY , B.STATE , B.POSTAL , B.COUNTRY , B.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 WHERE A.SETID = B.SETID AND A.VENDOR_ID = B.VENDOR_ID 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 | VENDOR_NAME_SHORT | Character(14) | VARCHAR2(14) NOT NULL | Short Vendor Name |
6 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |
7 | NAME2 | Character(40) | VARCHAR2(40) NOT NULL | Name 2 |
8 | VENDOR_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Vendor Status
A=Approved D=Denied E=Unapproved I=Inactive X=To Be Archived |
9 | VENDOR_CLASS | Character(1) | VARCHAR2(1) NOT NULL |
Vendor Classification
A=Attorney E=Employee H=HCM R=Outside Party Default Value: R |
10 | VENDOR_PERSISTENCE | Character(1) | VARCHAR2(1) NOT NULL |
Persistence
O=One Time P=Permanent R=Regular S=Single Payment Supplier Default Value: R |
11 | CORPORATE_SETID | Character(5) | VARCHAR2(5) NOT NULL |
SetID
Default Value: VENDOR.SETID |
12 | CORPORATE_VENDOR | Character(10) | VARCHAR2(10) NOT NULL | Corporate Vendor |
13 | CUST_SETID | Character(5) | VARCHAR2(5) NOT NULL |
Customer SetID
Default Value: VENDOR.SETID Prompt Table: SETID_TBL |
14 | 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 |
15 | ENTERED_BY | Character(30) | VARCHAR2(30) NOT NULL | Entered by |
16 | AR_NUM | Character(15) | VARCHAR2(15) NOT NULL | Our Customer Number |
17 | 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 |
18 | 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 |
19 | VNDR_STATUS_PO | Character(1) | VARCHAR2(1) NOT NULL |
Open For Ordering
N=No Y=Yes Y/N Table Edit Default Value: Y |
20 | VNDR_TIN | Character(1) | VARCHAR2(1) NOT NULL | Vendor Tax Id Number |
21 | ADDRESS1 | Character(55) | VARCHAR2(55) NOT NULL | Address 1 |
22 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City |
23 | STATE | Character(6) | VARCHAR2(6) NOT NULL | State |
24 | POSTAL | Character(12) | VARCHAR2(12) NOT NULL | Postal |
25 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL | Country |
26 | NAME1_WTHD | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |
27 | CREATED_DTTM | DateTime(26) | TIMESTAMP | Created Date and time |
28 | CREATED_BY_USER | Character(30) | VARCHAR2(30) NOT NULL | Created By |
29 | LAST_MODIFIED_DATE | DateTime(26) | TIMESTAMP | Last modified date |
30 | LAST_ACTIVITY_DT | Date(10) | DATE | Last Activity Date |