ORD_PRC_COST_VW(SQL View) |
Index Back |
---|
SELECT D.SOURCE_BUS_UNIT , D.ORDER_NO , D.ORDER_INT_LINE_NO , D.SCHED_LINE_NBR , D.PRODUCT_ID , D.INV_ITEM_ID , M.INVENTORY_ITEM , D.UNIT_OF_MEASURE , D.BUSINESS_UNIT , D.CONFIG_CODE , 0 , D.PARENT_PROD_ID , D.KIT_LINE_NBR , D.QTY_PER , D.QTY_CODE , D.QTY_REQUESTED - D.QTY_BACKORDER , D.IN_FULFILL_STATE , M.SETID FROM PS_IN_DEMAND D ,PS_MASTER_ITEM_TBL M WHERE D.IN_FULFILL_STATE <> '90' AND D.DEMAND_SOURCE = 'OM' AND D.IN_FULFILL_STATE IN ( SELECT MIN(D2.IN_FULFILL_STATE) FROM PS_IN_DEMAND D2 WHERE D2.BUSINESS_UNIT = D.BUSINESS_UNIT AND D2.DEMAND_SOURCE = D.DEMAND_SOURCE AND D2.SOURCE_BUS_UNIT = D.SOURCE_BUS_UNIT AND D2.ORDER_NO = D.ORDER_NO AND D2.ORDER_INT_LINE_NO = D.ORDER_INT_LINE_NO AND D2.SCHED_LINE_NBR = D.SCHED_LINE_NBR AND D2.PRODUCT_ID = D.PRODUCT_ID) AND M.INV_ITEM_ID = D.INV_ITEM_ID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | 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 |
3 | ORDER_INT_LINE_NO | Number(5,0) | INTEGER NOT NULL | Order Line |
4 | SCHED_LINE_NBR | Number(6,0) | INTEGER NOT NULL | Schedule Line Number |
5 | PRODUCT_ID | Character(18) | VARCHAR2(18) NOT NULL | Product ID |
6 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |
7 | INVENTORY_ITEM | Character(1) | VARCHAR2(1) NOT NULL |
Inventory Item
N=No Y=Yes |
8 | UNIT_OF_MEASURE | Character(3) | VARCHAR2(3) NOT NULL |
Used on an approval rule set.
MHR=Muti Hourly PER=Percentage SQF=Square Footage |
9 | SHIP_FROM_BU | Character(5) | VARCHAR2(5) NOT NULL | Ship from INV BU |
10 | CONFIG_CODE | Character(50) | VARCHAR2(50) NOT NULL | Product Configurator |
11 | UNIT_COST | Signed Number(16,4) | DECIMAL(14,4) NOT NULL | Unit Cost |
12 | PARENT_PROD_ID | Character(18) | VARCHAR2(18) NOT NULL | Parent Product Id |
13 | KIT_LINE_NBR | Number(3,0) | SMALLINT NOT NULL | Kit Line Number |
14 | QTY_PER | Number(10,4) | DECIMAL(9,4) NOT NULL | Quantity |
15 | QTY_CODE | Character(3) | VARCHAR2(3) NOT NULL |
Per
ASY=Assembly ORD=Order |
16 | QTY_REQUESTED | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Requested |
17 | 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 |
18 | SETID_INV_ITEM | Character(5) | VARCHAR2(5) NOT NULL | Inv Items SETID |