ORD_SERIAL_VW(SQL View) |
Index Back |
---|---|
Ship Serial OM View |
SELECT SCH.BUSINESS_UNIT , D.BUSINESS_UNIT , D.DEMAND_SOURCE , D.ORDER_NO , D.ORDER_INT_LINE_NO , D.SCHED_LINE_NBR , D.INV_ITEM_ID , D.DEMAND_LINE_NO , D.PRODUCT_ID , D.PARENT_PROD_ID , SCH.DOC_REFNUM , D.QTY_REQUESTED_BASE , D.QTY_BACKORDER_BASE , COUNT(*) FROM PS_ORD_SCHEDULE SCH , PS_IN_DEMAND D , PS_SHIP_SERIAL_INV S WHERE SCH.SHIP_FROM_BU = D.BUSINESS_UNIT AND D.DEMAND_SOURCE = 'OM' AND SCH.ORDER_NO = D.ORDER_NO AND SCH.ORDER_INT_LINE_NO = D.ORDER_INT_LINE_NO AND SCH.SCHED_LINE_NBR = D.SCHED_LINE_NBR AND D.IN_FULFILL_STATE <> '90' AND D.BUSINESS_UNIT = S.BUSINESS_UNIT AND D.DEMAND_SOURCE = S.DEMAND_SOURCE AND D.ORDER_NO = S.ORDER_NO AND D.ORDER_INT_LINE_NO = S.ORDER_INT_LINE_NO AND D.SCHED_LINE_NBR = S.SCHED_LINE_NBR AND D.DEMAND_LINE_NO = S.DEMAND_LINE_NO AND D.INV_ITEM_ID = S.INV_ITEM_ID GROUP BY SCH.BUSINESS_UNIT , D.BUSINESS_UNIT , D.DEMAND_SOURCE , D.ORDER_NO , D.ORDER_INT_LINE_NO , D.SCHED_LINE_NBR , D.INV_ITEM_ID , D.DEMAND_LINE_NO , D.PRODUCT_ID , D.PARENT_PROD_ID , SCH.DOC_REFNUM , D.QTY_REQUESTED_BASE , D.QTY_BACKORDER_BASE |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | SHIP_FROM_BU | Character(5) | VARCHAR2(5) NOT NULL | Ship from INV BU |
3 | 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 |
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 | PRODUCT_ID | Character(18) | VARCHAR2(18) NOT NULL | Product ID |
10 | PARENT_PROD_ID | Character(18) | VARCHAR2(18) NOT NULL | Parent Product Id |
11 | DOC_REFNUM | Character(20) | VARCHAR2(20) NOT NULL | Counter sale document reference number |
12 | QTY_REQUESTED_BASE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Requested Base |
13 | QTY_BACKORDER_BASE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Backorder Base Qty |
14 | QTY_SHIPPED | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Shipped |