SHIPTO_ADDR_VW2

(SQL View)
Index Back

Shipping Address View


SELECT D.BUSINESS_UNIT , A.setid , A.shipto_id , B.LOCATION , A.effdt , A.eff_status , A.descrshort , B.descr , B.address1 , B.address2 , B.address3 , B.address4 , B.city , B.state , B.postal , B.country FROM PS_SHIPTO_TBL A , PS_LOCATION_TBL B , PS_SET_CNTRL_REC C , PS_BUS_UNIT_TBL_AP D , PS_SET_CNTRL_REC E WHERE D.BUSINESS_UNIT = C.SETCNTRLVALUE AND C.REC_GROUP_ID = 'FS_26' AND C.RECNAME = 'LOCATION_TBL' AND C.SETID = B.SETID AND D.BUSINESS_UNIT = E.SETCNTRLVALUE AND E.REC_GROUP_ID = 'PO_04' AND E.RECNAME = 'SHIPTO_TBL' AND E.SETID = A.SETID AND A.EFFDT = ( SELECT MAX(EE.EFFDT) FROM PS_SHIPTO_TBL EE WHERE EE.SETID = A.SETID AND EE.SHIPTO_ID = A.SHIPTO_ID AND EE.EFF_STATUS = 'A' AND EE.EFFDT <= %CurrentDateIn) AND B.EFFDT = ( SELECT MAX(BB.EFFDT) FROM PS_LOCATION_TBL BB WHERE BB.SETID = B.SETID AND BB.LOCATION = B.LOCATION AND BB.EFF_STATUS = 'A' AND BB.EFFDT <= %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 SETID Character(5) VARCHAR2(5) NOT NULL SetID

Default Value: OPR_DEF_TBL_FS.SETID

Prompt Table: SETID_TBL

3 SHIPTO_ID Character(10) VARCHAR2(10) NOT NULL Ship To Location
4 LOCATION Character(10) VARCHAR2(10) NOT NULL Location Code
5 EFFDT Date(10) DATE NOT NULL Effective Date

Default Value: %date

6 EFF_STATUS Character(1) VARCHAR2(1) NOT NULL Effective Status
A=Active
I=Inactive

Default Value: A

7 DESCRSHORT Character(10) VARCHAR2(10) NOT NULL Short Description
8 DESCR Character(30) VARCHAR2(30) NOT NULL Description
9 ADDRESS1 Character(55) VARCHAR2(55) NOT NULL Address 1
10 ADDRESS2 Character(55) VARCHAR2(55) NOT NULL Address 2
11 ADDRESS3 Character(55) VARCHAR2(55) NOT NULL Address 3
12 ADDRESS4 Character(55) VARCHAR2(55) NOT NULL Address 4
13 CITY Character(30) VARCHAR2(30) NOT NULL City
14 STATE Character(6) VARCHAR2(6) NOT NULL State

Prompt Table: STATE_TBL

15 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal
16 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country

Default Value: USA

Prompt Table: COUNTRY_TBL