DEMAND_ORDER3VW

(SQL View)
Index Back

Lot Allocation Orders

08/11/04 PWF F-KNANN-V59N4 Change record in view from DEMAND_INF_INV to IN_DEMAND

SELECT DISTINCT a.business_unit , a.demand_source , a.source_bus_unit , a.order_no FROM ps_IN_DEMAND a , PS_MASTER_ITEM_TBL b WHERE (A.HARD_ALLOC_FLAG <> 'Y' OR A.LOT_ALLOC_FLG <> 'N') AND A.PEG_STATUS <> '10' AND ((((a.APPROVED_FLAG = 'Y' AND A.IN_FULFILL_STATE ='20') OR (A.IN_FULFILL_STATE ='30')) AND NOT (a.hard_alloc_flag = 'Y' AND a.lot_alloc_flg <> 'Y')) OR (A.LOT_ALLOC_FLG = 'Y' AND A.PICK_BATCH_ID = 0 AND A.IN_FULFILL_STATE = '30')) AND b.setid = ( SELECT c.setid FROM ps_set_cntrl_rec c WHERE c.setcntrlvalue = a.business_unit AND c.recname = 'MASTER_ITEM_TBL') AND b.inv_item_id = a.inv_item_id AND b.lot_control = 'Y'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business 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