CUST_BU_PP_VW

(SQL View)
Index Back

Cust Prompt by Bus Unit for PP


SELECT DISTINCT d.business_unit , C.cust_id , C.name1 , A.city , b.cr_analyst , b.collector , a.state FROM ps_customer C , PS_CUST_OPTION B , ps_cust_address A , ps_bus_unit_tbl_ar D WHERE c.cust_status = 'A' AND c.bill_to_flg = 'Y' AND c.cust_level <> 'P' AND c.setid IN ( SELECT SETID FROM PS_SET_CNTRL_REC WHERE SETCNTRLVALUE = d.business_unit AND RECNAME = 'CUSTOMER') AND C.SETID = B.SETID AND C.CUST_ID = B.CUST_ID AND %EffdtCheck(cust_option, B, %currentdatein) AND B.eff_status='A' AND C.setid = A.setid AND C.cust_id = A.cust_id AND %EffdtCheck(cust_address, A, %currentdatein) AND A.eff_status='A'

  • Related Language Record: CUST_BUPPVW_LNG
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 PP_MAIN_BU Character(5) VARCHAR2(5) NOT NULL Main Control Account BU
    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 CITY Character(30) VARCHAR2(30) NOT NULL City
    5 CR_ANALYST Character(8) VARCHAR2(8) NOT NULL Specifies the personnel code for the person who works with a customer to establish credit limits and payment terms. This field is required for a bill-to customer.

    Prompt Table: CR_ANALYST_TBL

    6 COLLECTOR Character(8) VARCHAR2(8) NOT NULL Specifies the personnel code for the person who works with a customer to collect overdue payments.

    Prompt Table: COLLECTOR_TBL

    7 STATE Character(6) VARCHAR2(6) NOT NULL State

    Prompt Table: STATE_TBL