RC_RMA_PHON_VW2(SQL View) |
Index Back |
---|---|
RMA Phone Prompt ViewRetrieves the customer contact's Phone numbers. |
SELECT DISTINCT A.BO_ID , A.PROFILE_CM_SEQ , A.CM_CONCAT , COUNTRY_CODE , PHONE , EXTENSION FROM PS_BO_SRCH_PHN A WHERE A.ROLE_TYPE_ID = 8 AND (A.PRIMARY_IND = 'Y' OR (A.PRIMARY_IND <> 'Y' AND A.BO_CM_START_DT = ( SELECT MAX(B.BO_CM_START_DT) FROM PS_BO_SRCH_PHN B WHERE A.BO_ID = B.BO_ID AND A.CM_CONCAT = B.CM_CONCAT AND B.BO_CM_START_DT <= %CurrentDateIn))) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BO_ID_CNTCT | Number(31,0) | DECIMAL(31) NOT NULL | This field represents the business object ID for a Contact |
2 | PROFILE_CM_SEQ_PHN | Number(31,0) | DECIMAL(31) NOT NULL | Used to store the contact method sequence number for a phone number. |
3 | CM_CONCAT | Character(100) | VARCHAR2(100) NOT NULL | Concatenated Contact Method |
4 | COUNTRY_CODE | Character(3) | VARCHAR2(3) NOT NULL | This field stores the Country Code values. |
5 | PHONE | Character(24) | VARCHAR2(24) NOT NULL | This field stores the Telephone number. |
6 | EXTENSION | Character(6) | VARCHAR2(6) NOT NULL | This field stores the Phone extension. |