SAE_LIS_ADDR_VW

(SQL View)
Index Back

SAIP Address View

SAIP View to get the Person Addresses for third party Integration

SELECT ADDR.EMPLID ,ADDR_MAP.SAE_TARGET_ID , ADDR_MAP.SAE_LIS_ADDR_TYPE , ADDR.ADDRESS_TYPE , XLAT.XLATLONGNAME SAE_LIS_ADDR_LNAME , ADDR.COUNTRY , ADDR.ADDRESS1 , ADDR.ADDRESS2 , ADDR.ADDRESS3 , ADDR.ADDRESS4 , ADDR.CITY , ADDR.NUM1 , ADDR.NUM2 , ADDR.HOUSE_TYPE , ADDR.ADDR_FIELD1 , ADDR.ADDR_FIELD2 , ADDR.ADDR_FIELD3 , ADDR.COUNTY , ADDR.STATE , ADDR.POSTAL , ADDR.GEO_CODE , ADDR.IN_CITY_LIMIT , ADDR.ADDRESS1_AC , ADDR.ADDRESS2_AC , ADDR.ADDRESS3_AC , ADDR.CITY_AC , ADDR.REG_REGION , 'A' SAE_MODE FROM %Table(SCC_EQADDR_VW) ADDR , %Table(SAE_LIS_ADDRMAP) ADDR_MAP , PSXLATITEM XLAT WHERE ADDR.ADDRESS_TYPE = ADDR_MAP.ADDRESS_TYPE AND XLAT.FIELDNAME = 'SAE_LIS_ADDR_TYPE' AND XLAT.FIELDVALUE = ADDR_MAP.SAE_LIS_ADDR_TYPE AND %EffdtCheck(PSXLATITEM XL, XLAT, %CurrentDateIn) AND XLAT.EFF_STATUS = 'A'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 SAE_TARGET_ID Character(50) VARCHAR2(50) NOT NULL SAIP Target ID
3 SAE_LIS_ADDR_TYPE Character(4) VARCHAR2(4) NOT NULL LIS Address Type
BP=Billing_Primary
BS=Billing_Secondary
CP=Campus_Primary
CS=Campus_Secondary
HP=Home_Primary
HS=Home_Secondary
MP=Mailing_Primary
MS=Mailing_Secondary
PP=Private_Primary
PRP=Permanent_Primary
PRS=Permanent_Secondary
PS=Private_Secondary
TP=Temporary_Primary
TS=Temporary_Secondary
WP=Work_Primary
WS=Work_Secondary
4 ADDRESS_TYPE Character(4) VARCHAR2(4) NOT NULL Address Type
5 SAE_LIS_ADDR_LNAME Character(30) VARCHAR2(30) NOT NULL LIS Address
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 Reference
WW=House Trailer Reference
15 ADDR_FIELD1 Character(2) VARCHAR2(2) NOT NULL Address Field 1
16 ADDR_FIELD2 Character(4) VARCHAR2(4) NOT NULL Address Field 2
17 ADDR_FIELD3 Character(4) VARCHAR2(4) NOT NULL Address Field 3
18 COUNTY Character(30) VARCHAR2(30) NOT NULL County
19 STATE Character(6) VARCHAR2(6) NOT NULL State
20 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal
21 GEO_CODE Character(11) VARCHAR2(11) NOT NULL Geo Code
22 IN_CITY_LIMIT Character(1) VARCHAR2(1) NOT NULL In City Limit
23 ADDRESS1_AC Character(55) VARCHAR2(55) NOT NULL Alternate Character Address 1
24 ADDRESS2_AC Character(55) VARCHAR2(55) NOT NULL Alternate Character Address 2
25 ADDRESS3_AC Character(55) VARCHAR2(55) NOT NULL Alternate Character Address 3
26 CITY_AC Character(30) VARCHAR2(30) NOT NULL Alternate Character City
27 REG_REGION Character(5) VARCHAR2(5) NOT NULL Regulatory Region
28 SAE_MODE Character(1) VARCHAR2(1) NOT NULL Operation Mode
A=Add
C=Change
D=Delete