AB_CONVER_VW

(SQL View)
Index Back

Action List Conversation View


SELECT A.SETID , A.CUST_ID , A.NAME1 ,A.ROLEUSER , A.CNTCT_SEQ_NUM , C.NAME1 , E.PHONE ,B.CONVER_DT , B.CONVER_SEQ_NUM ,X.REVIEW_NEXT_DT ,X.DESCR FROM PS_CUSTOMER A , PS_CUST_CONVER B , PS_CUST_CONVER_HDR X , PS_CUST_CONTACT C , PS_CUST_CNTCT_PHN E , PS_CUST_DATA D , PS_SET_CNTRL_REC S WHERE A.cust_status = 'A' AND A.bill_to_flg = 'Y' AND A.cust_level <> 'P' AND B.SETID = A.SETID AND B.CUST_ID = A.CUST_ID AND X.SETID = B.SETID AND X.CUST_ID = B.CUST_ID AND X.CONVER_DTTM_INIT = B.CONVER_DTTM_INIT AND D.BUSINESS_UNIT = S.SETCNTRLVALUE AND S.SETID = A.SETID AND S.RECNAME = 'CUSTOMER' AND A.CUST_ID = D.CUST_ID AND A.SETID = C.SETID AND A.CUST_ID = C.CUST_ID AND A.CNTCT_SEQ_NUM = C.CNTCT_SEQ_NUM AND C.EFFDT = ( SELECT MAX(EFFDT) FROM PS_CUST_CONTACT WHERE SETID = A.SETID AND CUST_ID = A.CUST_ID AND CNTCT_SEQ_NUM = A.CNTCT_SEQ_NUM AND EFFDT <= %CurrentDateIn AND EFF_STATUS = 'A') AND A.SETID = E.SETID AND A.CUST_ID = E.CUST_ID AND A.CNTCT_SEQ_NUM = E.CNTCT_SEQ_NUM AND E.EFFDT = ( SELECT MAX(EFFDT) FROM PS_CUST_CNTCT_PHN WHERE SETID = A.SETID AND CUST_ID = A.CUST_ID AND CNTCT_SEQ_NUM = A.CNTCT_SEQ_NUM AND EFFDT <= %CurrentDateIn) AND E.PHONE_TYPE = 'BUSN'

  • Related Language Record: AB_CONVER_LVW
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 SETID Character(5) VARCHAR2(5) NOT NULL SetID

    Prompt Table: SP_SETID_NONVW

    2 CUST_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.

    Prompt Table: CUST_SRCH_VW

    3 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
    4 ROLEUSER Character(30) VARCHAR2(30) NOT NULL Role User
    5 CNTCT_SEQ_NUM Number(5,0) INTEGER NOT NULL Contact Sequence Number

    Default Value: 1

    6 CNTCT_NAME1 Character(40) VARCHAR2(40) NOT NULL Contact Name1
    7 CNTCT_PHONE Character(24) VARCHAR2(24) NOT NULL Contact Phone Number
    8 CONVER_DT Date(10) DATE NOT NULL Conversation Date
    9 CONVER_SEQ_NUM Number(6,0) INTEGER NOT NULL Conversation Sequence Number

    Prompt Table: CUST_CONVER

    10 REVIEW_NEXT_DT Date(10) DATE Next Review Date
    11 DESCR Character(30) VARCHAR2(30) NOT NULL Description