SAC_PO_BILTO_VW(SQL View) |
Index Back |
---|---|
PO and BILL TO information |
SELECT C.BUSINESS_UNIT ,C.PO_ID , B.DESCR , B.COUNTRY , B.ADDRESS1 , B.ADDRESS2 , B.ADDRESS3 , B.ADDRESS4 , B.CITY , B.NUM1 , B.NUM2 , B.HOUSE_TYPE , B.COUNTY , B.STATE , B.POSTAL ,B.BUILDING ,B.FLOOR ,B.COUNTRY_CODE ,B.PHONE ,B.EXTENSION ,B.FAX FROM PS_SET_CNTRL_REC A , PS_LOCATION_TBL B , PS_PO_HDR C WHERE A.SETCNTRLVALUE = C.BUSINESS_UNIT AND A.RECNAME = 'LOCATION_TBL' AND B.SETID = A.SETID AND B.LOCATION = C.BILL_LOCATION AND B.EFFDT = ( SELECT MAX(EFFDT) FROM PS_LOCATION_TBL WHERE B.SETID = SETID AND B.LOCATION = LOCATION AND EFFDT <= %CurrentDateIn) AND B.EFF_STATUS = 'A' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | PO_ID | Character(10) | VARCHAR2(10) NOT NULL | Purchase Order |
3 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
4 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL | Country |
5 | ADDRESS1 | Character(55) | VARCHAR2(55) NOT NULL | Address 1 |
6 | ADDRESS2 | Character(55) | VARCHAR2(55) NOT NULL | Address 2 |
7 | ADDRESS3 | Character(55) | VARCHAR2(55) NOT NULL | Address 3 |
8 | ADDRESS4 | Character(55) | VARCHAR2(55) NOT NULL | Address 4 |
9 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City |
10 | NUM1 | Character(6) | VARCHAR2(6) NOT NULL | Number 1 |
11 | NUM2 | Character(6) | VARCHAR2(6) NOT NULL | Number 2 |
12 | HOUSE_TYPE | Character(2) | VARCHAR2(2) NOT NULL |
House Type
AB=House Boat WW=Trailer |
13 | COUNTY | Character(30) | VARCHAR2(30) NOT NULL | County |
14 | STATE | Character(6) | VARCHAR2(6) NOT NULL | State |
15 | POSTAL | Character(12) | VARCHAR2(12) NOT NULL | Postal |
16 | BUILDING | Character(10) | VARCHAR2(10) NOT NULL | Building # |
17 | FLOOR | Character(10) | VARCHAR2(10) NOT NULL | Floor # |
18 | COUNTRY_CODE | Character(3) | VARCHAR2(3) NOT NULL | Int'l Prefix |
19 | PHONE | Character(24) | VARCHAR2(24) NOT NULL | Telephone |
20 | EXTENSION | Character(6) | VARCHAR2(6) NOT NULL | Phone Extension |
21 | FAX | Character(24) | VARCHAR2(24) NOT NULL | Fax Number |