OM_DMD_HCFGN_VW

(SQL View)
Index Back

Count of fulfillment states

Date Initials Issue Description 093005 dms 1347451000 New view

SELECT DISTINCT D.DEMAND_SOURCE , D.SOURCE_BUS_UNIT , D.ORDER_NO , C.FIELDNAME , ' ' , 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, C.FIELDNAME

# 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 FIELDNAME Character(18) VARCHAR2(18) NOT NULL Field Name (see PSDBFIELD).
5 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
6 OM_CHANGE_STATE Character(2) VARCHAR2(2) NOT NULL Allow OM Changes Thru
7 IN_CHANGE_STATE Character(2) VARCHAR2(2) NOT NULL Allow INV Changes Thru
8 OM_ALLOW_CHG Character(1) VARCHAR2(1) NOT NULL Allow OM Update Past OM State
9 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
10 RULE_FLAG Character(1) VARCHAR2(1) NOT NULL Rule Flag
11 PREF_CARRIER_FLAG Character(1) VARCHAR2(1) NOT NULL Preferred Carrier flag
N=No Preferred Carrier
Y=Preferred Carrier
12 QTY_PACK_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Base Quantity Packed