IN_PRO_PEG_VW

(SQL View)
Index Back

Pegging Table

06/16/04 EGS: Created.

SELECT A.BUSINESS_UNIT , A.PRODUCTION_ID , A.MG_OUTPUT_TYPE , A.MG_OUTPUT_ITEM , A.OP_SEQUENCE , A.MG_OUTPUT_QTY_CODE , 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_SF_OUTPUT_LIST A , PS_IN_PEGGING B , PS_SF_OUTPUT_HASH C WHERE A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.PRODUCTION_ID = C.PRODUCTION_ID AND A.MG_OUTPUT_TYPE = C.MG_OUTPUT_TYPE AND A.MG_OUTPUT_ITEM = C.MG_OUTPUT_ITEM AND A.OP_SEQUENCE = C.OP_SEQUENCE AND A.MG_OUTPUT_QTY_CODE = C.MG_OUTPUT_QTY_CODE AND B.SUPPLY_HASH = C.HASH_KEY AND B.SUP_ORDER_TYPE = '020' 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 PRODUCTION_ID Character(10) VARCHAR2(10) NOT NULL Production ID
3 MG_OUTPUT_TYPE Character(2) VARCHAR2(2) NOT NULL 10/22/98 (CN#EN800-6.0) LAJ...Created Stores the output item type on a Bill of Materials. The type could represent either a co-product (primary or secondary) or a by-product (waste or recycle). 11/23/98 (CN#SF800-13) JNW added teardown xlat
CP=Primary
CS=Co-Product
RB=Recycle
TD=Teardown
WB=Waste
4 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
5 OP_SEQUENCE Number(4,0) SMALLINT NOT NULL Operation Sequence
6 MG_OUTPUT_QTY_CODE Character(3) VARCHAR2(3) NOT NULL 01/28/98 (CN#EN800-6.0) LAJ...Created Stores the quantity code for an output item on a Bill of Materials. It was created with the same values as qty_code, but by separating these two fields, it allows greater flexibility in the future.
ASY=Assembly
ORD=Order
7 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
8 DEMAND_HASH Character(28) VARCHAR2(28) NOT NULL 08/11/04 EGS: Created.
9 SUP_ORDER_TYPE Character(4) VARCHAR2(4) NOT NULL Used by Pegging Maintenance/Inquiry
010=Purchase
020=Production
035=Transfer Supply
100=Requisition
10 SUPPLY_HASH Character(28) VARCHAR2(28) NOT NULL 08/11/04 EGS: Created.
11 QTY_PEGGED Signed Number(17,4) DECIMAL(15,4) NOT NULL 06/16/04 EGS: Created.
12 QTY_RECEIVED Number(16,4) DECIMAL(15,4) NOT NULL Received Qty
13 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

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