RF_BO_SOLD_ADDR

(SQL View)
Index Back

View to obtain Sold Addresses

View to obtain the Sold to Addresses of a Sold to Customer

SELECT BO_ID , PROFILE_CM_SEQ , CM_ID , ADDRESS1 , ADDRESS2 , ADDRESS3 , ADDRESS4 , CITY , STATE , POSTAL , COUNTRY , PRIMARY_IND FROM PS_BO_SRCH_ADD WHERE (ROLE_TYPE_ID = 42 OR ROLE_TYPE_ID = 46) AND BO_CM_START_DT <= %CurrentDateIn AND BO_CM_END_DT > %CurrentDateIn

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BO_ID Signed Number(32,0) DECIMAL(31) NOT NULL Business Object ID
2 PROFILE_CM_SEQ Number(31,0) DECIMAL(31) NOT NULL The Contact Method Profile ID is a key field that is used to reference the details of a Contact Method in various CM tables.
3 CM_ID Number(31,0) DECIMAL(31) NOT NULL Contact Method ID
4 ADDRESS1 Character(55) VARCHAR2(55) NOT NULL Address 1
5 ADDRESS2 Character(55) VARCHAR2(55) NOT NULL Address 2
6 ADDRESS3 Character(55) VARCHAR2(55) NOT NULL Address 3
7 ADDRESS4 Character(55) VARCHAR2(55) NOT NULL Address 4
8 CITY Character(30) VARCHAR2(30) NOT NULL City
9 STATE Character(6) VARCHAR2(6) NOT NULL State
10 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal
11 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country
12 PRIMARY_IND Character(1) VARCHAR2(1) NOT NULL Flag that indicates whether or not it is Primary
N=No
Y=Yes