DMND_PHYS_VW2

(SQL View)
Index Back

DEMAND_PHYS_INV View - Picking

Used to retrieve storage level picking information for a demand line from the Material Picking Feedback Panel when wave code is used as a selection criteria. 04/27/04 MEG CN#IN890 Data Model Changes - Replaced demand_inv with in_demand, sched_line_no with sched_line_nbr, and cancel_flag with in_fulfill_state. Removed phone, extension, country_code.

SELECT DISTINCT a.business_unit , a.demand_source , a.source_bus_unit , a.order_no , a.order_int_line_no , a.sched_line_nbr , a.inv_item_id , a.demand_line_no , a.seq_nbr , a.inv_lot_id , a.serial_id , a.storage_area , a.stor_level_1 , a.stor_level_2 , a.stor_level_3 , a.stor_level_4 , a.container_id , a.staged_date , a.qty_picked , a.qty_picked_conv , a.unit_measure_pick , a.qty_base , a.reprint_sorter , a.pick_batch_id , b.picklist_line_no , a.distrib_type , a.non_own_flag , a.avail_status , a.transfer_yield , a.pick_date , a.qty_shipped_conv , a.last_qty_ship_base , a.process_instance , a.dt_timestamp , b.ship_to_cust_id , b.load_id , b.location , b.carrier_id , b.route_cd , c.wave_cd , a.qty_ship_base , a.qty_shipped , a.last_qty_ship , a.zero_shipped_flag , a.release_instance , a.in_pick_rule , a.in_pick_rule_dtl , a.allocate_source , b.delivery_id FROM ps_demand_phys_inv a , PS_IN_DEMAND b , ps_wave_route_inv c WHERE b.in_fulfill_state IN ('30','40') AND b.fulfill_flag = 'Y' AND a.business_unit = b.business_unit AND a.demand_source = b.demand_source AND a.source_bus_unit = b.source_bus_unit AND a.order_no = b.order_no AND a.order_int_line_no = b.order_int_line_no AND a.sched_line_nbr = b.sched_line_nbr AND a.inv_item_id = b.inv_item_id AND a.demand_line_no = b.demand_line_no AND EXISTS ( SELECT 'X' FROM ps_wave_route_inv d WHERE b.business_unit = c.business_unit AND c.business_unit = d.business_unit AND c.wave_cd = d.wave_cd AND b.route_cd = c.route_cd AND c.route_cd = d.route_cd)

# 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

Default Value: DEMAND_PICK_VW.INV_ITEM_ID

8 DEMAND_LINE_NO Number(4,0) SMALLINT NOT NULL Demand Line No
9 SEQ_NBR Number(15,0) DECIMAL(15) NOT NULL Sequence Number
10 INV_LOT_ID Character(15) VARCHAR2(15) NOT NULL Lot ID

Prompt Table: %EDITTABLE

11 SERIAL_ID Character(20) VARCHAR2(20) NOT NULL Serial ID

Prompt Table: %EDITTABLE7

12 STORAGE_AREA Character(5) VARCHAR2(5) NOT NULL Storage Area

Prompt Table: %EDITTABLE2

13 STOR_LEVEL_1 Character(4) VARCHAR2(4) NOT NULL Storage Level 1

Prompt Table: %EDITTABLE3

14 STOR_LEVEL_2 Character(4) VARCHAR2(4) NOT NULL Storage Level 2

Prompt Table: %EDITTABLE4

15 STOR_LEVEL_3 Character(4) VARCHAR2(4) NOT NULL Storage Level 3

Prompt Table: %EDITTABLE5

16 STOR_LEVEL_4 Character(4) VARCHAR2(4) NOT NULL Storage Level 4

Prompt Table: %EDITTABLE6

17 CONTAINER_ID Character(10) VARCHAR2(10) NOT NULL Container ID

Prompt Table: %EDITTABLE8

18 STAGED_DATE Date(10) DATE Staged Date

Prompt Table: %EDITTABLE9

19 QTY_PICKED Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Picked
20 QTY_PICKED_CONV Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Picked in Phys Loc UOM
21 UNIT_MEASURE_PICK Character(3) VARCHAR2(3) NOT NULL Phys Location Unit of Measure

Prompt Table: %EDITTABLE10

22 QTY_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Base Quantity
23 REPRINT_SORTER Number(10,0) DECIMAL(10) NOT NULL Reprint Sort Order
24 PICK_BATCH_ID Number(10,0) DECIMAL(10) NOT NULL Pick Batch ID
25 PICKLIST_LINE_NO Number(7,0) INTEGER NOT NULL Pick List Sorting Line Number
26 DISTRIB_TYPE Character(10) VARCHAR2(10) NOT NULL Distrib. Type
27 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
28 AVAIL_STATUS Character(1) VARCHAR2(1) NOT NULL Availability Status
1=Open
2=Restricted
3=Hold
4=Rejected
29 TRANSFER_YIELD Number(5,1) DECIMAL(4,1) NOT NULL Transfer Yield
30 PICK_DATE Date(10) DATE Picked Date
31 QTY_SHIPPED_CONV Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Shipped
32 LAST_QTY_SHIP_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Used to save the last value of quantity shipped from the Shipping Issues Panel in Standard UOM at the DEMAND_PHYS_INV and SHIP_INF_INV level. Default to the quantity picked from the Express Issues Panel or for cases where auto ship equals 'Y'.
33 PROCESS_INSTANCE Number(10,0) DECIMAL(10) NOT NULL Process Instance
34 DT_TIMESTAMP DateTime(26) TIMESTAMP Date Timestamp
35 SHIP_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Ship To Customer
36 LOAD_ID Character(10) VARCHAR2(10) NOT NULL Load ID
37 LOCATION Character(10) VARCHAR2(10) NOT NULL Location Code
38 CARRIER_ID Character(10) VARCHAR2(10) NOT NULL Carrier ID
39 ROUTE_CD Character(6) VARCHAR2(6) NOT NULL A unique identifier assigned to a delivery route. Route codes can be associated with customer addresses for external orders or locations for internal orders. Route codes can be used to identify the appropriate delivery schedule for a customer/location if you are managing product shipments with your own vehicles.
40 WAVE_CD Character(6) VARCHAR2(6) NOT NULL A unique identifier used to group together one or more delivery route codes.
41 QTY_SHIP_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Ship Base
42 QTY_SHIPPED Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Shipped
43 LAST_QTY_SHIP Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity Last Shipped
44 ZERO_SHIPPED_FLAG Character(1) VARCHAR2(1) NOT NULL Zero Shipped

Y/N Table Edit

Default Value: N

45 RELEASE_INSTANCE Number(10,0) DECIMAL(10) NOT NULL 08/2004 rcw: Order Release Instance
46 IN_PICK_RULE Character(3) VARCHAR2(3) NOT NULL Picking Rule Used

Default Value: 993

47 IN_PICK_RULE_DTL Character(2) VARCHAR2(2) NOT NULL Pick Rule Detail
00=Not Applicable
01=By UOM, In Location
02=By UOM, In Zone, out of Loc
03=By UOM, Remaining Locations
04=Diff UOM, In Location
05=Diff UOM, In Zone
06=Diff UOM, Remaining Locations
07=Any UOM, In Location
08=Any UOM, In Zone
09=Any UOM, Remaining Locations
10=In Zone
11=Out of Zone

Default Value: 00

48 ALLOCATE_SOURCE Character(2) VARCHAR2(2) NOT NULL Allocation Source - Why was the allocation created
LT=Lot Allocation
PR=Pre-allocation
SA=Standard Allocation

Default Value: SA

49 DELIVERY_ID Character(10) VARCHAR2(10) NOT NULL Delivery ID