AR_SSCUSTAL_LVW

(SQL View)
Index Back

All Customers


SELECT DISTINCT OPRID , A.SETID , B.CUST_ID , C.LANGUAGE_CD , C.NAME1 FROM PSOPRALIAS A , PS_CONTACT_CUST B , PS_CUSTOMER_LANG C WHERE A.SETID = B.SETID AND A.CONTACT_ID = B.CONTACT_ID AND B.CUSTOMER_SETID = C.SETID AND B.CUST_ID = C.CUST_ID AND A.OPRALIASTYPE = 'CNT' AND B.EFFDT = ( SELECT MAX(X.EFFDT) FROM PS_CONTACT_CUST X WHERE X.SETID = B.SETID AND X.CONTACT_ID = B.CONTACT_ID AND X.CUSTOMER_SETID = B.CUSTOMER_SETID AND X.CUST_ID = B.CUST_ID AND X.EFFDT <= %CurrentDateIn AND X.EFF_STATUS = 'A') AND B.BILL_TO_FLG = 'Y'

  • Related Language Record for AR_SSCUST_AL_VW
  • # 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 SETID Character(5) VARCHAR2(5) NOT NULL SetID

    Default Value: OPR_DEF_TBL_FS.SETID

    Prompt Table: SP_SETID_NONVW

    3 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_ALL_VW

    4 LANGUAGE_CD Character(3) VARCHAR2(3) NOT NULL Language Code
    5 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1