OM_DMDPHYINV_VW(SQL View) |
Index Back |
---|---|
Demand Physical Inv |
SELECT B.BUSINESS_UNIT , B.DEMAND_SOURCE , B.SOURCE_BUS_UNIT , B.ORDER_NO , B.ORDER_INT_LINE_NO , B.SCHED_LINE_NBR , B.INV_ITEM_ID , B.DEMAND_LINE_NO , MAX(A.INV_LOT_ID) , MAX(A.SERIAL_ID) , MAX(A.STORAGE_AREA) , MAX(A.STOR_LEVEL_1) , MAX(A.STOR_LEVEL_2) , MAX(A.STOR_LEVEL_3) , MAX(A.STOR_LEVEL_4) , MAX(A.CONTAINER_ID) , MAX(A.UNIT_OF_MEASURE) , SUM(A.QTY) , SUM(B.QTY_PICKED_CONV) , SUM(B.QTY_BASE) FROM %Table(PHYSICAL_INV) A , %Table(DEMAND_PHYS_INV) B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.INV_LOT_ID = B.INV_LOT_ID AND A.SERIAL_ID = B.SERIAL_ID AND A.INV_ITEM_ID = B.INV_ITEM_ID AND A.STORAGE_AREA = B.STORAGE_AREA AND A.STOR_LEVEL_1 = B.STOR_LEVEL_1 AND A.STOR_LEVEL_2 = B.STOR_LEVEL_2 AND A.STOR_LEVEL_3 = B.STOR_LEVEL_3 AND A.STOR_LEVEL_4 = B.STOR_LEVEL_4 AND A.CONTAINER_ID = B.CONTAINER_ID AND A.UNIT_OF_MEASURE = B.UNIT_MEASURE_PICK GROUP BY B.BUSINESS_UNIT , B.DEMAND_SOURCE , B.SOURCE_BUS_UNIT , B.ORDER_NO , B.ORDER_INT_LINE_NO , B.SCHED_LINE_NBR , B.INV_ITEM_ID , B.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 | INV_LOT_ID | Character(15) | VARCHAR2(15) NOT NULL | Lot ID |
10 | SERIAL_ID | Character(20) | VARCHAR2(20) NOT NULL | Serial ID |
11 | STORAGE_AREA | Character(5) | VARCHAR2(5) NOT NULL | Storage Area |
12 | STOR_LEVEL_1 | Character(4) | VARCHAR2(4) NOT NULL | Storage Level 1 |
13 | STOR_LEVEL_2 | Character(4) | VARCHAR2(4) NOT NULL | Storage Level 2 |
14 | STOR_LEVEL_3 | Character(4) | VARCHAR2(4) NOT NULL | Storage Level 3 |
15 | STOR_LEVEL_4 | Character(4) | VARCHAR2(4) NOT NULL | Storage Level 4 |
16 | CONTAINER_ID | Character(10) | VARCHAR2(10) NOT NULL | Container ID |
17 | UNIT_MEASURE_PICK | Character(3) | VARCHAR2(3) NOT NULL | Phys Location Unit of Measure |
18 | QTY | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Quantity |
19 | QTY_PICKED_CONV | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Picked in Phys Loc UOM |
20 | QTY_BASE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Base Quantity |