TD_CUSTPROMO_VW

(SQL View)
Index Back

Active Customer Promotion view

Active Customer Promotion view

SELECT DISTINCT B.OPRID , A.SETID , A.PPRC_PROMO_CD , A.CUST_ID , C.DESCRSHORT , A.STATUS_TD , A.FIRST_ORDER_DATE , A.LAST_ORDER_DATE , A.FIRST_SHIP_DATE , A.LAST_SHIP_DATE , A.FIRST_DELIVERY_DT , A.LAST_DELIVERY_DT , A.FIRST_PERFORM_DT , A.LAST_PERFORM_DT FROM PS_TD_PROMO_CUST A , PS_TD_PRO_CUS_SEVW B , PS_PPRC_PROMO_TBL C WHERE A.SETID = B.SETID AND A.PPRC_PROMO_CD = B.PPRC_PROMO_CD AND A.CUST_ID = B.CUST_ID AND A.SETID = C.SETID AND A.PPRC_PROMO_CD = C.PPRC_PROMO_CD

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

    Prompt Table: SP_SETID_NONVW

    3 PPRC_PROMO_CD Character(20) VARCHAR2(20) NOT NULL Price Promotion Code
    4 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.
    5 DESCRSHORT Character(10) VARCHAR2(10) NOT NULL Short Description
    6 STATUS_TD Character(2) VARCHAR2(2) NOT NULL Promotion Status
    CA=Customer Approved
    CE=Customer Cancelled
    CL=Closed
    CR=Customer Rejected
    MA=Management Approved
    MR=Management Rejected
    PA=Pending Approval
    PL=Planned
    RE=Recalled
    RL=Released
    7 FIRST_ORDER_DATE Date(10) DATE First Order Date
    8 LAST_ORDER_DATE Date(10) DATE Last Order Date
    9 FIRST_SHIP_DATE Date(10) DATE First Scheduled Ship Date
    10 LAST_SHIP_DATE Date(10) DATE Last Scheduled Ship Date
    11 FIRST_DELIVERY_DT Date(10) DATE Physical date of position.
    12 LAST_DELIVERY_DT Date(10) DATE Last delivery date for a contract .
    13 FIRST_PERFORM_DT Date(10) DATE First Peformance Date
    14 LAST_PERFORM_DT Date(10) DATE Last Performance Date