CA_MYCA_SLD_VW

(SQL View)
Index Back

Sold To Customers


SELECT DISTINCT CA.OPRID ,A.CUST_ID ,A.NAME1 ,A.ADDRESS_SEQ_SOLD ,A.CNTCT_SEQ_SOLD ,A.CURRENCY_CD ,A.CUST_LEVEL ,A.PHONE ,A.CITY ,A.STATE ,A.POSTAL FROM PS_CA_CONTR_HDR HDR , PS_CA_OPRID_CONTR CA , PS_CUST_SLD_VW A , PS_SET_CNTRL_REC REC WHERE CA.CONTRACT_NUM = HDR.CONTRACT_NUM AND HDR.SOLD_TO_CUST_ID = A.CUST_ID AND REC.SETCNTRLVALUE = HDR.BUSINESS_UNIT AND REC.RECNAME = 'CUSTOMER' AND REC.SETID = A.SETID

  • Related Language Record: CA_MYCA_SLD_LVW
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
    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 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
    4 ADDRESS_SEQ_SOLD Number(5,0) INTEGER NOT NULL Primary Address - Sold To
    5 CNTCT_SEQ_SOLD Number(5,0) INTEGER NOT NULL Primary Contact - Sold To
    6 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
    7 CUST_LEVEL Character(1) VARCHAR2(1) NOT NULL Customer Level
    N=New
    P=Prospect
    R=Regular
    S=Short-Term
    T=Temporary
    8 PHONE Character(24) VARCHAR2(24) NOT NULL Telephone
    9 CITY Character(30) VARCHAR2(30) NOT NULL City
    10 STATE Character(6) VARCHAR2(6) NOT NULL State
    11 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal