RF_RMA_SITE_VW2

(SQL View)
Index Back

RMA Site Address View

Returns the site's address information.

SELECT A.SETID , A.SITE_ID , A.PROFILE_CM_SEQ , A.BO_ID_PARENT , A.CM_ID , A.PRIMARY_IND , A.ADDRESS1 , A.ADDRESS2 , A.ADDRESS3 , A.ADDRESS4 , A.CITY , A.ADDRESS1_AC , A.ADDRESS2_AC , A.ADDRESS3_AC , A.ADDRESS4_AC , A.CITY_AC , A.STATE , A.POSTAL , A.COUNTRY , %TrimSubstr(A.ADDRESS1,1,31) %Concat ' ' %Concat %TrimSubstr(A.CITY,1,10) %Concat ' ' %Concat %TrimSubstr(A.STATE,1,3) %Concat ' ' %Concat %TrimSubstr(A.COUNTRY,1,3) 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 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 ADDRESS1_AC Character(55) VARCHAR2(55) NOT NULL ADDRESS1_AC
13 ADDRESS2_AC Character(55) VARCHAR2(55) NOT NULL ADDRESS2_AC
14 ADDRESS3_AC Character(55) VARCHAR2(55) NOT NULL ADDRESS3_AC
15 ADDRESS4_AC Character(55) VARCHAR2(55) NOT NULL Alternate Character Address 4.
16 CITY_AC Character(30) VARCHAR2(30) NOT NULL CITY_AC
17 STATE Character(6) VARCHAR2(6) NOT NULL State
18 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal
19 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country
20 ADDRESS50 Character(50) VARCHAR2(50) NOT NULL Address