PROD_SASLS_VW

(SQL View)
Index Back

Product & Group Sales View


SELECT oh.business_unit , oh.sold_to_cust_id , %DatePart(sh.ship_dttm) , %TimePart(sh.ship_dttm) , oh.order_no , ol.order_int_line_no , pg.product_group , ol.product_id , ol.price , sh.qty_shipped , sh.unit_of_measure FROM PS_SET_CNTRL_REC sc , PS_ORD_HEADER oh , PS_ORD_LINE ol , PS_IN_DEMAND sh , PS_PROD_RPTGP_VW pg WHERE sc.recname = 'PROD_RPTGP_VW' AND sc.setid = pg.setid AND sc.setcntrlvalue = ol.business_unit AND ol.business_unit = sh.source_bus_unit AND ol.business_unit = oh.business_unit AND ol.order_no = oh.order_no AND ol.order_no = sh.order_no AND ol.order_int_line_no = sh.order_int_line_no AND ol.product_id = pg.product_id AND sh.demand_source = 'OM' AND sh.in_fulfill_state IN ('50', '60', '70') AND pg.primary_flag = 'Y'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

Prompt Table: SP_BU_OM_NONVW

2 SOLD_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Sold To Customer

Prompt Table: CUST_SLD_VW

3 SHIP_DATE Date(10) DATE Item Shipping Date
4 SHIP_TIME Time(15) TIMESTAMP Ship Time
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 PRODUCT_GROUP Character(10) VARCHAR2(10) NOT NULL Product Group

Prompt Table: PROD_RPTGP_VW

8 PRODUCT_ID Character(18) VARCHAR2(18) NOT NULL Product ID

Prompt Table: PROD_ITEM

9 PRICE Signed Number(16,4) DECIMAL(14,4) NOT NULL This is price per unit for calculating the service charge.
10 QTY_SHIPPED Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Shipped
11 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage

Prompt Table: PROD_UOM