SAC_PO_BUDAT_VW

(SQL View)
Index Back

PO and BU view


SELECT H.BUSINESS_UNIT ,H.PO_ID , A.DESCR , C.SETID , C.COUNTRY , C.ADDRESS1 , C.ADDRESS2 , C.ADDRESS3 , C.ADDRESS4 , C.CITY , C.NUM1 , C.NUM2 , C.HOUSE_TYPE , C.COUNTY , C.STATE , C.POSTAL , C.BUILDING ,C.FLOOR ,COUNTRY_CODE , C.PHONE ,C.EXTENSION , C.FAX FROM PS_BUS_UNIT_TBL_FS A , PS_BUS_UNIT_TBL_PM B , PS_LOCATION_TBL C , PS_SET_CNTRL_REC D , PS_PO_HDR H WHERE B.BUSINESS_UNIT = H.BUSINESS_UNIT AND A.BUSINESS_UNIT = H.BUSINESS_UNIT AND D.SETCNTRLVALUE = H.BUSINESS_UNIT AND C.LOCATION = B.LOCATION AND D.RECNAME = 'LOCATION_TBL' AND C.SETID = D.SETID AND C.EFFDT = ( SELECT MAX(EFFDT) FROM PS_LOCATION_TBL WHERE C.SETID = SETID AND C.LOCATION = LOCATION AND EFFDT <= %CurrentDateIn)

# 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 SETID Character(5) VARCHAR2(5) NOT NULL SetID
5 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country
6 ADDRESS1 Character(55) VARCHAR2(55) NOT NULL Address 1
7 ADDRESS2 Character(55) VARCHAR2(55) NOT NULL Address 2
8 ADDRESS3 Character(55) VARCHAR2(55) NOT NULL Address 3
9 ADDRESS4 Character(55) VARCHAR2(55) NOT NULL Address 4
10 CITY Character(30) VARCHAR2(30) NOT NULL City
11 NUM1 Character(6) VARCHAR2(6) NOT NULL Number 1
12 NUM2 Character(6) VARCHAR2(6) NOT NULL Number 2
13 HOUSE_TYPE Character(2) VARCHAR2(2) NOT NULL House Type
AB=House Boat
WW=Trailer
14 COUNTY Character(30) VARCHAR2(30) NOT NULL County
15 STATE Character(6) VARCHAR2(6) NOT NULL State
16 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal
17 BUILDING Character(10) VARCHAR2(10) NOT NULL Building #
18 FLOOR Character(10) VARCHAR2(10) NOT NULL Floor #
19 COUNTRY_CODE Character(3) VARCHAR2(3) NOT NULL Int'l Prefix
20 PHONE Character(24) VARCHAR2(24) NOT NULL Telephone
21 EXTENSION Character(6) VARCHAR2(6) NOT NULL Phone Extension
22 FAX Character(24) VARCHAR2(24) NOT NULL Fax Number