IN_PEG_WO_PRVW(SQL View) |
Index Back |
---|---|
Pegging Table06/16/04 EGS: Created. |
SELECT F.BUSINESS_UNIT , F.DEMAND_SOURCE , F.SOURCE_BUS_UNIT , F.ORDER_NO , F.ORDER_INT_LINE_NO , F.SCHED_LINE_NBR , F.INV_ITEM_ID , F.DEMAND_LINE_NO , D.BUSINESS_UNIT , D.PRODUCTION_ID , D.MG_OUTPUT_TYPE , D.OP_SEQUENCE , D.MG_OUTPUT_QTY_CODE , D.MG_OUTPUT_ITEM , B.QTY_PEGGED , B.QTY_RECEIVED , B.QTY_COMPLETE , B.PEG_STATUS , F.SCHED_DTTM , F.PRIORITY_NBR , B.DEMAND_HASH , B.SUPPLY_HASH FROM PS_WM_WO_SCHMAT_NC A , PS_IN_PEGGING B , PS_SF_OUTPUT_HASH C , PS_SF_OUTPUT_LIST D , PS_IN_DEMAND F , PS_WM_WO_MAT_HASH H WHERE B.SUPPLY_HASH = C.HASH_KEY AND B.SUP_ORDER_TYPE = '020' AND B.PEG_STATUS = '10' AND D.BUSINESS_UNIT = C.BUSINESS_UNIT AND D.PRODUCTION_ID = C.PRODUCTION_ID AND D.MG_OUTPUT_TYPE = C.MG_OUTPUT_TYPE AND D.MG_OUTPUT_ITEM = C.MG_OUTPUT_ITEM AND D.OP_SEQUENCE = C.OP_SEQUENCE AND D.MG_OUTPUT_QTY_CODE = C.MG_OUTPUT_QTY_CODE AND F.BUSINESS_UNIT = A.BUSINESS_UNIT_IN AND F.DEMAND_SOURCE = 'WM' AND F.SOURCE_BUS_UNIT = A.BUSINESS_UNIT_WO AND F.ORDER_NO = A.WO_ID AND F.ORDER_INT_LINE_NO = A.WO_TASK_ID AND F.SCHED_LINE_NBR = A.RES_LN_NBR AND F.INV_ITEM_ID = A.INV_ITEM_ID AND F.DEMAND_LINE_NO = 1 AND H.HASH_KEY = B.DEMAND_HASH AND H.BUSINESS_UNIT = A.BUSINESS_UNIT_WO AND H.WO_ID = A.WO_ID AND H.WO_TASK_ID = A.WO_TASK_ID AND H.RES_LN_NBR = A.RES_LN_NBR AND ((QTY_PEGGED-QTY_COMPLETE)>0) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT_IN | Character(5) | VARCHAR2(5) NOT NULL | Inventory 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 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
10 | PRODUCTION_ID | Character(10) | VARCHAR2(10) NOT NULL | Production ID |
11 | 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 |
12 | OP_SEQUENCE | Number(4,0) | SMALLINT NOT NULL | Operation Sequence |
13 | 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 |
14 | MG_OUTPUT_ITEM | Character(18) | VARCHAR2(18) NOT NULL | 04/10/00 (Internet Architecture) SCC: Uppercase label Id. 10/22/98 (CN#EN800-6.0) LAJ...Created Stores the output item number on a Bill of Materials. This item may be either a co-product or a by-product on the BOM. The output type field determines which one it represents. There should always be at least one output item on the BOM at all times; this output item is the same as the BOMs item id. |
15 | QTY_PEGGED | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | 06/16/04 EGS: Created. |
16 | QTY_RECEIVED | Number(16,4) | DECIMAL(15,4) NOT NULL | Received Qty |
17 | QTY_COMPLETE | Number(16,4) | DECIMAL(15,4) NOT NULL | Quantity Complete |
18 | 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 |
19 | SCHED_DTTM | DateTime(26) | TIMESTAMP | 08/16/01 JNW (CN#PL900-1.0): Added |
20 | PRIORITY_NBR | Number(3,0) | SMALLINT NOT NULL | Priority |
21 | DEMAND_HASH | Character(28) | VARCHAR2(28) NOT NULL | 08/11/04 EGS: Created. |
22 | SUPPLY_HASH | Character(28) | VARCHAR2(28) NOT NULL | 08/11/04 EGS: Created. |