IN_XRS_PEG_VW

(SQL View)
Index Back

Pegging Table

06/16/04 EGS: Created.

SELECT A.BUSINESS_UNIT , A.DEMAND_SOURCE , A.SOURCE_BUS_UNIT , A.ORDER_NO , A.ORDER_INT_LINE_NO , A.SCHED_LINE_NBR , A.INV_ITEM_ID , A.DEMAND_LINE_NO , B.DMD_ORDER_TYPE , B.DEMAND_HASH , B.SUP_ORDER_TYPE , B.SUPPLY_HASH , B.QTY_PEGGED , B.QTY_RECEIVED , B.PEG_STATUS , B.OPRID , B.DT_TIMESTAMP , B.hard_PEG FROM PS_IN_DEMAND A , PS_IN_PEGGING B , PS_IN_DEMAND_HASH C WHERE A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.DEMAND_SOURCE = C.DEMAND_SOURCE AND A.SOURCE_BUS_UNIT = C.SOURCE_BUS_UNIT AND A.ORDER_NO = C.ORDER_NO AND A.ORDER_INT_LINE_NO = C.ORDER_INT_LINE_NO AND A.SCHED_LINE_NBR = C.SCHED_LINE_NBR AND A.INV_ITEM_ID = C.INV_ITEM_ID AND A.DEMAND_LINE_NO = C.DEMAND_LINE_NO AND B.SUPPLY_HASH = C.HASH_KEY AND B.SUP_ORDER_TYPE = '035' AND B.PEG_STATUS = '10'

# 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
5 ORDER_INT_LINE_NO Number(5,0) INTEGER NOT NULL Order Line
6 SCHED_LINE_NBR Number(6,0) INTEGER NOT NULL Schedule Line Number
7 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
8 DEMAND_LINE_NO Number(4,0) SMALLINT NOT NULL Demand Line No
9 DMD_ORDER_TYPE Character(4) VARCHAR2(4) NOT NULL Used by Pegging Maintenance/Inquiry
030=Transfer Demand
070=Stock Request
090=Sales Order
110=Work Order Inventory
115=WO Non-Inventory
900=Work Order
10 DEMAND_HASH Character(28) VARCHAR2(28) NOT NULL 08/11/04 EGS: Created.
11 SUP_ORDER_TYPE Character(4) VARCHAR2(4) NOT NULL Used by Pegging Maintenance/Inquiry
010=Purchase
020=Production
035=Transfer Supply
100=Requisition
12 SUPPLY_HASH Character(28) VARCHAR2(28) NOT NULL 08/11/04 EGS: Created.
13 QTY_PEGGED Signed Number(17,4) DECIMAL(15,4) NOT NULL 06/16/04 EGS: Created.
14 QTY_RECEIVED Number(16,4) DECIMAL(15,4) NOT NULL Received Qty
15 PEG_STATUS Character(2) VARCHAR2(2) NOT NULL 07/21/04 EGS: Created
10=Open
20=Completed
30=Canceled
40=Not Pegged

Default Value: 10

16 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
17 DT_TIMESTAMP DateTime(26) TIMESTAMP Date Timestamp
18 HARD_PEG Character(1) VARCHAR2(1) NOT NULL 09/01/04 EGS: Created