SP_BUCSIT_OPRVW

(SQL View)
Index Back

Active BU's for a customer


SELECT S.OPRID , I.CUST_ID , B.BUSINESS_UNIT , B.DESCR , COUNT(*) FROM PS_ITEM I , PS_BUS_UNIT_TBL_FS B , PS_SEC_BU_OPR S WHERE I.BUSINESS_UNIT = B.BUSINESS_UNIT AND I.ITEM_STATUS = 'O' AND I.BUSINESS_UNIT = S.BUSINESS_UNIT GROUP BY S.OPRID, I.CUST_ID, B.BUSINESS_UNIT, B.DESCR

  • Related Language Record: BU_CUST_ITM_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 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

    Prompt Table: SP_BUARED_NONVW

    4 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    5 ITEMCOUNT Number(4,0) SMALLINT NOT NULL Item Count