RF_SO_SADDR_VW2(SQL View) |
Index Back |
---|---|
Site Current AddressesUsed to display the address on a service order when there is a site, but no customer. |
SELECT A.SETID , A.SITE_ID , B.PROFILE_CM_SEQ , %TrimSubstr(B.ADDRESS1,1,37) %Concat ', ' %Concat %TrimSubstr(B.CITY,1,20) %Concat ', ' %Concat %TrimSubstr(B.STATE,1,6) %Concat '-' %Concat %TrimSubstr(B.POSTAL,1,12) , B.CM_ID , A.BO_ID , B.PRIMARY_IND , B.ADDRESS1 , B.ADDRESS2 , B.ADDRESS3 , B.ADDRESS4 , B.CITY , B.ADDRESS1_AC , B.ADDRESS2_AC , B.ADDRESS3_AC , B.ADDRESS4_AC , B.CITY_AC , B.STATE , B.POSTAL , B.COUNTRY FROM PS_RD_SITE A , PS_BO_ROLECM_ADDR B WHERE A.BO_ID = B.BO_ID AND B.ROLE_TYPE_ID = 3 AND B.BO_CM_START_DT <= %CurrentDateIn AND B.BO_CM_END_DT > %CurrentDateIn AND B.CM_USE_START_DT <= %CurrentDateIn AND B.CM_USE_END_DT > %CurrentDateIn |
# | 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 | 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. |
4 | ADDRESS80 | Character(80) | VARCHAR2(80) NOT NULL | Address |
5 | CM_ID | Number(31,0) | DECIMAL(31) NOT NULL | Contact Method ID |
6 | BO_ID | Signed Number(32,0) | DECIMAL(31) NOT NULL | Business Object ID |
7 | PRIMARY_IND | Character(1) | VARCHAR2(1) NOT NULL |
Flag that indicates whether or not it is Primary
N=No Y=Yes |
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 | ADDRESS1_AC | Character(55) | VARCHAR2(55) NOT NULL | ADDRESS1_AC |
14 | ADDRESS2_AC | Character(55) | VARCHAR2(55) NOT NULL | ADDRESS2_AC |
15 | ADDRESS3_AC | Character(55) | VARCHAR2(55) NOT NULL | ADDRESS3_AC |
16 | ADDRESS4_AC | Character(55) | VARCHAR2(55) NOT NULL | Alternate Character Address 4. |
17 | CITY_AC | Character(30) | VARCHAR2(30) NOT NULL | CITY_AC |
18 | STATE | Character(6) | VARCHAR2(6) NOT NULL | State |
19 | POSTAL | Character(12) | VARCHAR2(12) NOT NULL | Postal |
20 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL | Country |