AB_CONVER_LVW(SQL View) |
Index Back |
---|---|
Action List Conversation View |
SELECT A1.SETID , A1.CUST_ID , A1.LANGUAGE_CD , A1.NAME1 , X.DESCR FROM PS_CUSTOMER_LANG A1 , PS_CUSTOMER A , PS_CUST_CONVER B , PS_CUS_CNV_HDR_LNG X , PS_CUST_CONTACT C , PS_CUST_CNTCT_PHN E , PS_CUST_DATA D , PS_SET_CNTRL_REC S WHERE A.SETID = A1.SETID AND A.CUST_ID = A1.CUST_ID AND 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' |
# | 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. |
3 | LANGUAGE_CD | Character(3) | VARCHAR2(3) NOT NULL | Language Code |
4 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |
5 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |