IN_WSMC_PEGV_VW

(SQL View)
Index Back

IN Peg MSR Search View

06/21/04 EGS: Created

SELECT A.BUSINESS_UNIT_WO , A.WO_ID , A.WO_TASK_ID , A.RES_LN_NBR , A.BUSINESS_UNIT_IN , A.INV_ITEM_ID , ID.QTY_REQUESTED_BASE - ID.QTY_PICK_BASE - ID.QTY_SHIP_BASE , A.PEG_STATUS FROM PS_WM_WO_SCHMAT_NC A , PS_IN_DEMAND ID WHERE A.WO_COMMIT_FLAG = '3' AND ID.BUSINESS_UNIT = A.BUSINESS_UNIT_IN AND ID.DEMAND_SOURCE = 'WM' AND ID.SOURCE_BUS_UNIT = A.BUSINESS_UNIT_WO AND ID.ORDER_NO = A.WO_ID AND ID.ORDER_INT_LINE_NO = A.WO_TASK_ID AND ID.SCHED_LINE_NBR = A.RES_LN_NBR AND ID.INV_ITEM_ID = A.INV_ITEM_ID AND ID.DEMAND_LINE_NO = 1

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 WO_ID Character(10) VARCHAR2(10) NOT NULL Work Order Identification
3 WO_TASK_ID Number(5,0) INTEGER NOT NULL Task Number
4 RES_LN_NBR Number(5,0) INTEGER NOT NULL Resource Line No.
5 BUSINESS_UNIT_IN Character(5) VARCHAR2(5) NOT NULL Inventory Unit
6 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
7 QTY_AVAILABLE Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Available
8 PEG_STATUS Character(2) VARCHAR2(2) NOT NULL 07/21/04 EGS: Created
10=Open
20=Completed
30=Canceled
40=Not Pegged