DEMAND_PHYS_VW3(SQL View) |
Index Back |
---|---|
DEMAND_PHYS_INV ViewUsed for updating STAGED_ITEMS_INV. Replaced DEMAND_PO_VW in 7.5. /* mmt 05/18/04 Sched_line_no becomes sched_line_nbr - data model change */ |
SELECT 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 , 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 , A.QTY_SHIP_BASE , A.QTY_SHIPPED , A.LAST_QTY_SHIP , A.ZERO_SHIPPED_FLAG FROM PS_DEMAND_PHYS_INV A , PS_IN_DEMAND B , PS_ORD_SCHEDULE C WHERE 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.DEMAND_LINE_NO = B.DEMAND_LINE_NO AND A.INV_ITEM_ID = B.INV_ITEM_ID AND A.SOURCE_BUS_UNIT = C.BUSINESS_UNIT AND A.ORDER_NO = C.ORDER_NO AND A.ORDER_INT_LINE_NO = C.ORDER_INT_LINE_NO AND A.SCHED_LINE_NBR = C.SCHED_LINE_NBR AND B.IN_FULFILL_STATE BETWEEN '20' AND '40' AND B.PEG_STATUS > '10' AND C.CUST_PICKUP = 'Y' AND C.CS_STATUS NOT IN ('S','PS') AND NOT EXISTS( SELECT 'X' FROM PS_ORD_SHIP_OVRD C WHERE A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.DEMAND_SOURCE = C.DEMAND_SOURCE AND A.SOURCE_BUS_UNIT = C.SOURCE_BUS_UNIT AND A.ORDER_NO = C.ORDER_NO AND A.ORDER_INT_LINE_NO = C.ORDER_INT_LINE_NO AND A.SCHED_LINE_NBR = C.SCHED_LINE_NBR AND A.INV_ITEM_ID = C.INV_ITEM_ID AND A.DEMAND_LINE_NO = C.DEMAND_LINE_NO ) |
# | 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 | SEQ_NBR | Number(15,0) | DECIMAL(15) NOT NULL | Sequence Number |
10 | INV_LOT_ID | Character(15) | VARCHAR2(15) NOT NULL | Lot ID |
11 | SERIAL_ID | Character(20) | VARCHAR2(20) NOT NULL | Serial ID |
12 | STORAGE_AREA | Character(5) | VARCHAR2(5) NOT NULL | Storage Area |
13 | STOR_LEVEL_1 | Character(4) | VARCHAR2(4) NOT NULL | Storage Level 1 |
14 | STOR_LEVEL_2 | Character(4) | VARCHAR2(4) NOT NULL | Storage Level 2 |
15 | STOR_LEVEL_3 | Character(4) | VARCHAR2(4) NOT NULL | Storage Level 3 |
16 | STOR_LEVEL_4 | Character(4) | VARCHAR2(4) NOT NULL | Storage Level 4 |
17 | CONTAINER_ID | Character(10) | VARCHAR2(10) NOT NULL | Container ID |
18 | STAGED_DATE | Date(10) | DATE | Staged Date |
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 |
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 | DISTRIB_TYPE | Character(10) | VARCHAR2(10) NOT NULL | Distrib. Type |
26 | 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 |
27 | AVAIL_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Availability Status
1=Open 2=Restricted 3=Hold 4=Rejected |
28 | TRANSFER_YIELD | Number(5,1) | DECIMAL(4,1) NOT NULL | Transfer Yield |
29 | PICK_DATE | Date(10) | DATE | Picked Date |
30 | QTY_SHIPPED_CONV | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Shipped |
31 | 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'. |
32 | PROCESS_INSTANCE | Number(10,0) | DECIMAL(10) NOT NULL | Process Instance |
33 | DT_TIMESTAMP | DateTime(26) | TIMESTAMP | Date Timestamp |
34 | QTY_SHIP_BASE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Ship Base |
35 | QTY_SHIPPED | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Shipped |
36 | LAST_QTY_SHIP | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Quantity Last Shipped |
37 | ZERO_SHIPPED_FLAG | Character(1) | VARCHAR2(1) NOT NULL |
Zero Shipped
Y/N Table Edit Default Value: N |