RF_RMA_SITE_VW3

(SQL View)
Index Back

RMA Site Address View

Returns the site's address information, including region and timezone.

SELECT A.SETID , A.SITE_ID , A.PROFILE_CM_SEQ , A.BO_ID_PARENT , A.CM_ID , A.PRIMARY_IND , %subrec(ADDRESS_SBR, A) , A.ADDRESS1_AC , A.ADDRESS2_AC , A.ADDRESS3_AC , A.ADDRESS4_AC , A.CITY_AC , A.REGION_ID , A.TIMEZONE FROM PS_BO_SITECM_CADDR A WHERE EXISTS ( SELECT 'X' FROM PS_BO_CM_USE B WHERE B.BO_ID = A.BO_ID AND B.PROFILE_CM_SEQ = A.PROFILE_CM_SEQ AND B.CM_USE_START_DT <= %CurrentDateIn AND B.CM_USE_END_DT > %CurrentDateIn AND B.ROLE_TYPE_ID IN (41,45))

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL This field is used to store the value of SetID on various setup tables.
2 SITE_ID Character(15) VARCHAR2(15) NOT NULL Uniquely identifies an organizational entity that purchases goods or services from the enterprise. Represents the sold-to customer which is the customer organization that places orders. The CUST_ID may or may not be the same as the identifiers for the bill-to and ship-to locations.
3 PROFILE_CM_SEQ_ADD Number(31,0) DECIMAL(31) NOT NULL This field is used to store the profile contact method sequence number for an address.
4 BO_ID_CUST Number(31,0) DECIMAL(31) NOT NULL This field stores the Business Object ID for the customer.
5 CM_ID Number(31,0) DECIMAL(31) NOT NULL Contact Method ID
6 PRIMARY_IND Character(1) VARCHAR2(1) NOT NULL Flag that indicates whether or not it is Primary
N=No
Y=Yes
7 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country

Prompt Table: COUNTRY_TBL

8 ADDRESS1 Character(55) VARCHAR2(55) NOT NULL Address 1
9 ADDRESS2 Character(55) VARCHAR2(55) NOT NULL Address 2
10 ADDRESS3 Character(55) VARCHAR2(55) NOT NULL Address 3
11 ADDRESS4 Character(55) VARCHAR2(55) NOT NULL Address 4
12 CITY Character(30) VARCHAR2(30) NOT NULL City
13 NUM1 Character(6) VARCHAR2(6) NOT NULL Number 1
14 NUM2 Character(4) VARCHAR2(4) NOT NULL Number 2
15 HOUSE_TYPE Character(2) VARCHAR2(2) NOT NULL House Type
AB=House Boat Reference
WW=House Trailer Reference
16 ADDR_FIELD1 Character(2) VARCHAR2(2) NOT NULL Address Field 1
17 ADDR_FIELD2 Character(4) VARCHAR2(4) NOT NULL Address Field 2
18 ADDR_FIELD3 Character(4) VARCHAR2(4) NOT NULL Address Field 3
19 COUNTY Character(30) VARCHAR2(30) NOT NULL County
20 STATE Character(6) VARCHAR2(6) NOT NULL State

Prompt Table: %EDIT_STATE

21 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal
22 GEO_CODE Character(11) VARCHAR2(11) NOT NULL Geo Code
23 IN_CITY_LIMIT Character(1) VARCHAR2(1) NOT NULL In City Limit

Y/N Table Edit

Default Value: Y

24 ADDRESS1_AC Character(55) VARCHAR2(55) NOT NULL ADDRESS1_AC
25 ADDRESS2_AC Character(55) VARCHAR2(55) NOT NULL ADDRESS2_AC
26 ADDRESS3_AC Character(55) VARCHAR2(55) NOT NULL ADDRESS3_AC
27 ADDRESS4_AC Character(55) VARCHAR2(55) NOT NULL Alternate Character Address 4.
28 CITY_AC Character(30) VARCHAR2(30) NOT NULL CITY_AC
29 REGION_ID Character(15) VARCHAR2(15) NOT NULL This field stores the region id value.
30 TIMEZONE Character(9) VARCHAR2(9) NOT NULL Time Zone