OM_DMD_LCFG_VW

(SQL View)
Index Back

Count of fulfillment states


SELECT D.DEMAND_SOURCE , D.SOURCE_BUS_UNIT , D.ORDER_NO , D.ORDER_INT_LINE_NO , C.FIELDNAME , D.BUSINESS_UNIT , ' ' , MIN(C.OM_CHANGE_STATE) , MAX(C.IN_CHANGE_STATE) , MIN(C.OM_ALLOW_CHG) , MAX(D.IN_FULFILL_STATE) , 'Y' , MAX(D.PREF_CARRIER_FLAG) , MAX(D.QTY_PACK_BASE) FROM PS_IN_DEMAND D , PS_IN_DMD_CHANGE C WHERE D.IN_FULFILL_STATE < '90' AND C.BUSINESS_UNIT = D.BUSINESS_UNIT GROUP BY D.DEMAND_SOURCE, D.SOURCE_BUS_UNIT, D.ORDER_NO, D.ORDER_INT_LINE_NO, C.FIELDNAME, D.BUSINESS_UNIT

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 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
2 SOURCE_BUS_UNIT Character(5) VARCHAR2(5) NOT NULL Source Bus Unit
3 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
4 ORDER_INT_LINE_NO Number(5,0) INTEGER NOT NULL Order Line
5 FIELDNAME Character(18) VARCHAR2(18) NOT NULL Field Name (see PSDBFIELD).
6 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
7 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
8 OM_CHANGE_STATE Character(2) VARCHAR2(2) NOT NULL Allow OM Changes Thru
9 IN_CHANGE_STATE Character(2) VARCHAR2(2) NOT NULL Allow INV Changes Thru
10 OM_ALLOW_CHG Character(1) VARCHAR2(1) NOT NULL Allow OM Update Past OM State
11 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
12 RULE_FLAG Character(1) VARCHAR2(1) NOT NULL Rule Flag
13 PREF_CARRIER_FLAG Character(1) VARCHAR2(1) NOT NULL Preferred Carrier flag
N=No Preferred Carrier
Y=Preferred Carrier
14 QTY_PACK_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Base Quantity Packed