SAC_PO_SHPTO_VW(SQL View) |
Index Back |
---|
SELECT P.BUSINESS_UNIT ,P.PO_ID ,P.LINE_NBR ,P.SCHED_NBR , 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.ATTN_TO ,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 H ,PS_PO_LINE L ,PS_PO_LINE_SHIP P WHERE A.SETCNTRLVALUE = H.BUSINESS_UNIT AND H.BUSINESS_UNIT = L.BUSINESS_UNIT AND H.PO_ID = L.PO_ID AND L.BUSINESS_UNIT = P.BUSINESS_UNIT AND L.PO_ID = P.PO_ID AND L.LINE_NBR = P.LINE_NBR AND A.RECNAME = 'LOCATION_TBL' AND B.SETID = A.SETID AND B.LOCATION = P.SHIPTO_ID 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 | LINE_NBR | Number(5,0) | INTEGER NOT NULL | Line Number: 11/24/08 - Added TARGET label [PC product] |
4 | SCHED_NBR | Number(3,0) | SMALLINT NOT NULL |
Schedule Number
Default Value: 1 |
5 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
6 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL | Country |
7 | ADDRESS1 | Character(55) | VARCHAR2(55) NOT NULL | Address 1 |
8 | ADDRESS2 | Character(55) | VARCHAR2(55) NOT NULL | Address 2 |
9 | ADDRESS3 | Character(55) | VARCHAR2(55) NOT NULL | Address 3 |
10 | ADDRESS4 | Character(55) | VARCHAR2(55) NOT NULL | Address 4 |
11 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City |
12 | NUM1 | Character(6) | VARCHAR2(6) NOT NULL | Number 1 |
13 | NUM2 | Character(6) | VARCHAR2(6) NOT NULL | Number 2 |
14 | HOUSE_TYPE | Character(2) | VARCHAR2(2) NOT NULL |
House Type
AB=House Boat WW=Trailer |
15 | COUNTY | Character(30) | VARCHAR2(30) NOT NULL | County |
16 | STATE | Character(6) | VARCHAR2(6) NOT NULL | State |
17 | POSTAL | Character(12) | VARCHAR2(12) NOT NULL | Postal |
18 | ATTN_TO | Character(30) | VARCHAR2(30) NOT NULL | Attention |
19 | BUILDING | Character(10) | VARCHAR2(10) NOT NULL | Building # |
20 | FLOOR | Character(10) | VARCHAR2(10) NOT NULL | Floor # |
21 | COUNTRY_CODE | Character(3) | VARCHAR2(3) NOT NULL | Int'l Prefix |
22 | PHONE | Character(24) | VARCHAR2(24) NOT NULL | Telephone |
23 | EXTENSION | Character(6) | VARCHAR2(6) NOT NULL | Phone Extension |
24 | FAX | Character(24) | VARCHAR2(24) NOT NULL | Fax Number |