OM_MSR_QTY_VW(SQL View) |
Index Back |
---|---|
OM_MSR_QTY_VW |
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 , C.BUSINESS_UNIT , C.DEMAND_SOURCE , C.SOURCE_BUS_UNIT , C.ORDER_NO , C.ORDER_INT_LINE_NO , C.SCHED_LINE_NBR , C.DEMAND_LINE_NO , C.IN_FULFILL_STATE , CASE C.IN_FULFILL_STATE WHEN '50' THEN C.QTY_PICKED ELSE (C.QTY_REQUESTED - C.QTY_BACKORDER) END FROM PS_IN_DEMAND_HASH B , PS_IN_PEGGING BB , PS_IN_DEMAND C , PS_IN_DEMAND_HASH D WHERE B.HASH_KEY = BB.DEMAND_HASH AND BB.DMD_ORDER_TYPE IN ('090') AND D.HASH_KEY = BB.SUPPLY_HASH AND BB.SUP_ORDER_TYPE = '035' AND BB.PEG_STATUS = '10' AND C.BUSINESS_UNIT = D.BUSINESS_UNIT AND C.DEMAND_SOURCE = D.DEMAND_SOURCE AND C.SOURCE_BUS_UNIT = D.SOURCE_BUS_UNIT AND C.ORDER_NO = D.ORDER_NO AND C.ORDER_INT_LINE_NO = D.ORDER_INT_LINE_NO AND C.SCHED_LINE_NBR = D.SCHED_LINE_NBR AND C.INV_ITEM_ID = D.INV_ITEM_ID AND C.DEMAND_LINE_NO = D.DEMAND_LINE_NO AND C.INTERUNIT_FLG = 'Y' AND C.IN_FULFILL_STATE IN ('20','30','40','50') |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT_IN | Character(5) | VARCHAR2(5) NOT NULL | Inventory 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 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
10 | DEST_DMD_SRC | Character(2) | VARCHAR2(2) NOT NULL | 07/29/04 EGS: Created |
11 | BUSINESS_UNIT_SUP | Character(5) | VARCHAR2(5) NOT NULL | 07/29/04 EGS: Created |
12 | DEST_ORDER_NO | Character(10) | VARCHAR2(10) NOT NULL | 07/29/04 EGS: Created |
13 | DEST_INT_LINE_NO | Number(5,0) | INTEGER NOT NULL | 07/29/04 EGS: Created |
14 | DEST_SCHED_NBR | Number(6,0) | INTEGER NOT NULL | 07/29/04 EGS: Created |
15 | DEST_DMD_LINE | Number(4,0) | SMALLINT NOT NULL | 07/29/04 EGS: Create |
16 | IN_FULFILL_STATE | Character(2) | VARCHAR2(2) NOT NULL |
Inventory Fulfillment State
10=Pending 20=Unfulfilled 30=Releasable 40=Released 50=Confirmed 60=Shipped 70=Depleted 90=Canceled |
17 | QTY | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Quantity |