TD_PRM_PGLT_VW

(SQL View)
Index Back

customer promotions by custome


SELECT DISTINCT A.SETID , A.PPRC_PROMO_CD , B.CUST_ID , C.OPRID , A.PROMO_TYPE , A.DESCR , A.DESCRSHORT , A.ALLOW_STATUS , B.STATUS_TD , B.PROMO_PERIOD , B.FIRST_ORDER_DATE , B.LAST_ORDER_DATE , B.FIRST_SHIP_DATE , B.LAST_SHIP_DATE , B.FIRST_DELIVERY_DT , B.LAST_DELIVERY_DT , B.FIRST_PERFORM_DT , B.LAST_PERFORM_DT , B.OPRID_ENTERED_BY , B.OPRID_MODIFIED_BY , B.ENTERED_DT , B.CONTACT_ID , A.TD_TREE_ID_CUST , A.CALENDAR_ID FROM PS_PPRC_PROMO_TBL A , PS_TD_PROMO_CUST B , PS_TD_PRO_CUS_SEVW C WHERE A.PROMO_TYPE = 'P' AND B.SETID = A.SETID AND B.PPRC_PROMO_CD = A.PPRC_PROMO_CD AND B.SETID = C.SETID AND B.PPRC_PROMO_CD = C.PPRC_PROMO_CD AND B.CUST_ID = C.CUST_ID

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID

Prompt Table: SP_SETID_NONVW

2 PPRC_PROMO_CD Character(20) VARCHAR2(20) NOT NULL Price Promotion Code
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.
4 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
5 PROMO_TYPE Character(1) VARCHAR2(1) NOT NULL Promotion Type
A=National Allowance
P=Promotion Event
6 DESCR Character(30) VARCHAR2(30) NOT NULL Description
7 DESCRSHORT Character(10) VARCHAR2(10) NOT NULL Short Description
8 ALLOW_STATUS Character(1) VARCHAR2(1) NOT NULL Allowance Status
1=Planned
2=Released
3=Pending Approval
4=Approved
5=Rejected
6=Closed
7=Recalled
9 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
10 PROMO_PERIOD Character(10) VARCHAR2(10) NOT NULL Promotion Period
11 FIRST_ORDER_DATE Date(10) DATE First Order Date
12 LAST_ORDER_DATE Date(10) DATE Last Order Date
13 FIRST_SHIP_DATE Date(10) DATE First Scheduled Ship Date
14 LAST_SHIP_DATE Date(10) DATE Last Scheduled Ship Date
15 FIRST_DELIVERY_DT Date(10) DATE Physical date of position.
16 LAST_DELIVERY_DT Date(10) DATE Last delivery date for a contract .
17 FIRST_PERFORM_DT Date(10) DATE First Peformance Date
18 LAST_PERFORM_DT Date(10) DATE Last Performance Date
19 OPRID_ENTERED_BY Character(30) VARCHAR2(30) NOT NULL Entered By 07/25/2011 MRAD 12383033 :Ensured that OPRID_ENTERED_BY is set with format type of MixedCase. 03/22/2013 GL 16482301: Switched OPRID_ENTERED_BY back to MixedCase again. Please don't change it to UpperCase!!! FYI - The alternatives to use a User ID as uppercase: 1) Create your own User ID, add comments in the Field Properties, and fill out the Owner ID 2) Use %Upper meta-SQL in SQL statements 3) Use Upper function in peoplecodes
20 OPRID_MODIFIED_BY Character(30) VARCHAR2(30) NOT NULL Last User to Modify Entered By 07/25/2011:Ensured that OPRID_MODIFIED_BY is set with format type of MixedCase.
21 ENTERED_DT Date(10) DATE Entered on
22 CONTACT_ID Character(15) VARCHAR2(15) NOT NULL Contact Identifier for Treasury Contacts
23 TD_TREE_ID_CUST Character(8) VARCHAR2(8) NOT NULL Customer Tree ID
24 CALENDAR_ID Character(2) VARCHAR2(2) NOT NULL Calendar ID