RECV_PHYS_VW(SQL View) |
Index Back |
---|---|
Demand Picking Locations05/27/04 PWF Change reference from sched_line_no to sched_line_nbr 29/03/2013 VID PRJ16387113 - Non own flag value populates from ps_demand_phys_inv instead of ps_bu_items_inv. |
SELECT phys.business_unit , phys.demand_source , phys.source_bus_unit , phys.order_no , phys.order_int_line_no , phys.sched_line_nbr , phys.inv_item_id , phys.demand_line_no , phys.non_own_flag , SUM(phys.qty_shipped_conv) , SUM(phys.qty_ship_base) , SUM(phys.qty_picked) , inv.interunit_id , inv.interunit_line FROM ps_demand_phys_inv phys , PS_IN_DEMAND inv WHERE phys.business_unit = inv.business_unit AND phys.demand_source = inv.demand_source AND phys.source_bus_unit = inv.source_bus_unit AND phys.order_no = inv.order_no AND phys.order_int_line_no = inv.order_int_line_no AND phys.sched_line_nbr = inv.sched_line_nbr AND phys.demand_line_no = inv.demand_line_no AND phys.inv_item_id = inv.inv_item_id AND phys.qty_picked > 0 AND inv.interunit_id <> ' ' AND INV.IN_FULFILL_STATE BETWEEN '60' AND '70' AND inv.interunit_flg = 'Y' AND inv.interunit_stat = 'I' GROUP BY phys.business_unit , phys.demand_source , phys.source_bus_unit , phys.order_no , phys.order_int_line_no , phys.sched_line_nbr , phys.inv_item_id , phys.demand_line_no , phys.non_own_flag, inv.interunit_id , inv.interunit_line |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | DEMAND_SOURCE | Character(2) | VARCHAR2(2) NOT NULL |
Demand Source
IN=Material Request OM=Sales Order PL=Planning Requisition PO=Purchase Order PR=Purchasing Requisition RT=Material Return SF=Production Request WM=Work Order |
3 | SOURCE_BUS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Source Bus Unit |
4 | 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 |
5 | ORDER_INT_LINE_NO | Number(5,0) | INTEGER NOT NULL | Order Line |
6 | SCHED_LINE_NBR | Number(6,0) | INTEGER NOT NULL | Schedule Line Number |
7 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |
8 | DEMAND_LINE_NO | Number(4,0) | SMALLINT NOT NULL | Demand Line No |
9 | NON_OWN_FLAG | Character(1) | VARCHAR2(1) NOT NULL |
07/30/1998 WHS CN#ENH8.0: Created Translate Values 'Y'es and 'N'o
N=No Y=Yes Y/N Table Edit Default Value: N |
10 | QTY_SHIPPED_CONV | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Shipped |
11 | QTY_SHIP_BASE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Ship Base |
12 | QTY_PICKED | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Picked |
13 | INTERUNIT_ID | Character(10) | VARCHAR2(10) NOT NULL | InterUnit Order ID |
14 | INTERUNIT_LINE | Number(5,0) | INTEGER NOT NULL | InterUnit Order Line |