DMD_RTE_INV_VW

(SQL View)
Index Back

Demand Route View

This view is used as a prompt table to select the distinct routes assigned to orders in the demand (reserved) table. 04/16/04 MEG CN#IN890 Data Model Changes - Replaced DEMAND_INV with IN_DEMAND. Check in_fulfill_state instead of cancel_flag.

SELECT DISTINCT A.BUSINESS_UNIT , A.ROUTE_CD FROM PS_IN_DEMAND A , PS_BU_ITEMS_INV B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.INV_ITEM_ID = B.INV_ITEM_ID AND (B.ITM_STATUS_CURRENT = '1' OR B.ITM_STATUS_CURRENT = '3') AND A.IN_FULFILL_STATE = '30' AND A.HOLD_FLAG = 'N' AND A.FULFILL_FLAG = 'Y' AND A.CONFIRMED_FLAG = 'N' AND A.PICK_BATCH_ID = 0 AND A.ROUTE_CD > ' '

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 ROUTE_CD Character(6) VARCHAR2(6) NOT NULL A unique identifier assigned to a delivery route. Route codes can be associated with customer addresses for external orders or locations for internal orders. Route codes can be used to identify the appropriate delivery schedule for a customer/location if you are managing product shipments with your own vehicles.