RBT_ORDERI_VW

(SQL View)
Index Back

SELECT h.business_unit , s.invoice , h.sold_to_cust_id , l.product_id , l.cntrct_id , l.cntrct_line_nbr , l.unit_of_measure , s.net_unit_price_bse , %Round(SUM(%DecMult(s.net_unit_price_bse,f.qty_shipped)), 4) , SUM(f.qty_shipped) FROM ps_ord_header H , ps_ord_line L , ps_ord_schedule S , PS_IN_DEMAND F , PS_IN_DEMAND_bi B WHERE B.demand_source = 'OM' AND B.invoice <> ' ' AND L.cntrct_id <> ' ' AND cntrct_line_nbr <> 0 AND h.business_unit = l.business_unit AND h.business_unit = s.business_unit AND h.business_unit = B.source_bus_unit AND h.order_no = l.order_no AND h.order_no = s.order_no AND h.order_no = B.order_no AND l.order_int_line_no = s.order_int_line_no AND l.order_int_line_no = B.order_int_line_no AND F.in_fulfill_state IN ('50', '60', '70') AND %Join(COMMON_KEYS, in_demand F, in_demand_bi B) GROUP BY h.business_unit, s.invoice, h.sold_to_cust_id, l.product_id, l.cntrct_id, l.cntrct_line_nbr, s.net_unit_price_bse, l.unit_of_measure

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 INVOICE Character(22) VARCHAR2(22) NOT NULL Invoice
3 SOLD_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Sold To Customer
4 PRODUCT_ID Character(18) VARCHAR2(18) NOT NULL Product ID
5 CNTRCT_ID Character(25) VARCHAR2(25) NOT NULL Buying Agreement ID
6 LINE_NBR Number(5,0) INTEGER NOT NULL Line Number: 11/24/08 - Added TARGET label [PC product]
7 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage
8 NET_UNIT_PRICE_BSE Signed Number(16,4) DECIMAL(14,4) NOT NULL Net Unit Price (base)
9 EXT_NET_PRC_BASE Signed Number(29,4) DECIMAL(27,4) NOT NULL Extended Net Price (base)
10 QTY_SCHEDULED Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity Scheduled