TD_PROMO_ORD

(SQL View)
Index Back

View of all promotion orders

View of all distinct records from ORD_PRICE_ADJST with a promotion code.

SELECT DISTINCT %Substring(D.SETCNTRLVALUE,1,5) , A.PPRC_PROMO_CD , B.SOLD_TO_CUST_ID , A.MERCH_TYPE , A.ORDER_NO , A.ORDER_INT_LINE_NO , A.SCHED_LINE_NBR , C.BUSINESS_UNIT , F.QTY_ORDERED , C.PRODUCT_ID , B.ORDER_DATE , A.OM_ADJST_AMT , A.OM_PRC_ADJAMT , C.CURRENCY_CD , A.EOEP_RULE_ID , A.EOEP_ARB_ID , A.PRICE_ADJST_REASON , C.UNIT_OF_MEASURE , F.PRC_SCHED_NBR , A.SEQ_NUM , ' ' , 0 , F.NET_UNIT_PRICE , 0 , A.OM_ADJST_FLG , A.OM_AMOUNT FROM PS_ORD_PRICE_ADJST A , PS_ORD_HEADER B , PS_ORD_LINE C , PS_SET_CNTRL_REC D , PS_PPRC_PROMO_TBL E , PS_ORD_PRICE_SCHED F WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.ORDER_NO = B.ORDER_NO AND D.RECNAME = 'PPRC_PROMO_TBL' AND D.SETCNTRLVALUE = E.SETID AND A.PPRC_PROMO_CD = E.PPRC_PROMO_CD AND A.PPRC_PROMO_CD <> ' ' AND A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.ORDER_NO = C.ORDER_NO AND A.ORDER_INT_LINE_NO = C.ORDER_INT_LINE_NO AND A.BUSINESS_UNIT = F.BUSINESS_UNIT AND A.ORDER_NO = F.ORDER_NO AND A.ORDER_INT_LINE_NO = F.ORDER_INT_LINE_NO AND A.SCHED_LINE_NBR = F.SCHED_LINE_NBR AND A.PRC_SCHED_NBR = F.PRC_SCHED_NBR

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 PPRC_PROMO_CD Character(20) VARCHAR2(20) NOT NULL Price Promotion Code
3 SOLD_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Sold To Customer
4 MERCH_TYPE Character(10) VARCHAR2(10) NOT NULL Merchandising Type
5 ORDER_NO Character(10) VARCHAR2(10) NOT NULL Identifies a customer order number that appears as a reference on a receivables pending item. Date Initials Issue Description 022701 mv SP2 (F-CJORGENS-3) CSR Desktop
6 ORDER_INT_LINE_NO Number(5,0) INTEGER NOT NULL Order Line
7 SCHED_LINE_NBR Number(6,0) INTEGER NOT NULL Schedule Line Number
8 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

Prompt Table: BUS_UNIT_TBL_OM

9 QTY_ORDERED Signed Number(16,4) DECIMAL(14,4) NOT NULL Order Qty
10 PRODUCT_ID Character(18) VARCHAR2(18) NOT NULL Product ID

Prompt Table: %EDITTABLE

11 ORDER_DATE Date(10) DATE Date Initials Issue Description 022701 mv SP2 (F-CJORGENS-3) CSR Desktop
12 OM_ADJST_AMT Signed Number(19,4) DECIMAL(17,4) NOT NULL Order Adjustment Amount
13 OM_PRC_ADJAMT Signed Number(19,4) DECIMAL(17,4) NOT NULL Adjust Amount/Percentage/Price
14 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
15 EOEP_RULE_ID Character(30) VARCHAR2(30) NOT NULL Price Rule ID
16 EOEP_ARB_ID Character(10) VARCHAR2(10) NOT NULL Arbitration Plan
17 PRICE_ADJST_REASON Character(10) VARCHAR2(10) NOT NULL Price Adjustment Reason
18 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage
19 PRC_SCHED_NBR Number(6,0) INTEGER NOT NULL Pricing Schedule Number
20 SEQ_NUM Number(3,0) SMALLINT NOT NULL Sequence
21 FLAG6 Character(1) VARCHAR2(1) NOT NULL Flag 6
22 COST Signed Number(28,3) DECIMAL(26,3) NOT NULL Total Cost
23 NET_UNIT_PRICE Signed Number(16,4) DECIMAL(14,4) NOT NULL Net Unit Price
24 EXTENDED_PRICE Signed Number(29,4) DECIMAL(27,4) NOT NULL Extended Price
25 OM_ADJST_FLG Character(2) VARCHAR2(2) NOT NULL Adjustment Flag
1=Adjustment Percentage
2=Adjustment Amount
3=Replace Price
26 OM_AMOUNT Signed Number(19,4) DECIMAL(17,4) NOT NULL Amount