CUST_ADDRESS

(SQL View)
Index Back

Customer Address Detail

CUST_ADDRESS - Used by CDM EIP for CRM/SCM Integration to handle Customer Address.

SELECT A.SETID , A.CUST_ID , A.ADDRESS_SEQ_NUM , B.BO_CM_START_DT , CASE WHEN B.BO_CM_END_DT > %CurrentDateIn THEN 'A' ELSE 'I' END , D.TAX_CD ,%subrec(ADDRESS_SBR,D) , E.COUNTRY_CODE , E.PHONE , E.EXTENSION , ' ' , B.ROW_LASTMANT_OPRID , B.ROW_LASTMANT_DTTM FROM PS_RB_INT_CUST_ADS A , PS_BO_CM B , PS_CM_ADDRESS D , PS_CM_PHONE E WHERE A.BO_ID=B.BO_ID AND A.PROFILE_CM_SEQ = B.PROFILE_CM_SEQ AND B.CM_ID = D.CM_ID (+) AND D.CM_ID_PHONE = E.CM_ID (+)

  • Parent record: CUST_ADDR_SEQ
  • # 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.

    Default Value: OPR_DEF_TBL_FS.SETID

    Prompt Table: SP_SETID_NONVW

    2 CUST_ID Character(15) VARCHAR2(15) NOT NULL Customer ID
    3 ADDRESS_SEQ_NUM Number(5,0) INTEGER NOT NULL Address Sequence Number from Supply Chain Management. Field size increased from 3 to 5 in CRM 8.95, as Supply Chain Management has increased the size to 5 in SCM 8.9 release.
    4 EFFDT Date(10) DATE NOT NULL Effective Date

    Default Value: %date

    5 EFF_STATUS Character(1) VARCHAR2(1) NOT NULL Effective Status
    A=Active
    I=Inactive

    Default Value: A

    6 TAX_CD Character(8) VARCHAR2(8) NOT NULL Tax Code
    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 COUNTRY_CODE Character(3) VARCHAR2(3) NOT NULL This field stores the Country Code values.
    25 PHONE Character(24) VARCHAR2(24) NOT NULL This field stores the Telephone number.
    26 EXTENSION Character(6) VARCHAR2(6) NOT NULL This field stores the Phone extension.
    27 FAX Character(24) VARCHAR2(24) NOT NULL This is the fax number field.
    28 LAST_MAINT_OPRID Character(30) VARCHAR2(30) NOT NULL This field determines the last user or operator that last changed this item.
    29 DATE_LAST_MAINT Date(10) DATE This field determines the date of last maintenance.