IN_PEG_PRO_VW(SQL View) |
Index Back |
---|---|
Pegging Table06/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 , C.HASH_KEY , C.BUSINESS_UNIT , C.DEMAND_SOURCE , C.SOURCE_BUS_UNIT , C.ORDER_NO , C.ORDER_INT_LINE_NO , C.SCHED_LINE_NBR , C.DEMAND_LINE_NO , B.DMD_ORDER_TYPE , C.BUSINESS_UNIT , C.BUSINESS_UNIT %Concat X.PEG_KEY_SEPARATOR %Concat C.ORDER_NO , C.DEMAND_SOURCE %Concat X.PEG_KEY_SEPARATOR %Concat %NUMTOCHAR(C.ORDER_INT_LINE_NO) %Concat X.PEG_KEY_SEPARATOR %Concat %NUMTOCHAR(C.SCHED_LINE_NBR) %Concat X.PEG_KEY_SEPARATOR %Concat %NUMTOCHAR(C.DEMAND_LINE_NO) , D.QTY_REQUESTED_BASE - D.QTY_ALLOC_BASE - D.QTY_BACKORDER_BASE , B.QTY_PEGGED , 'Y' , %DatePart(D.SCHED_DTTM) , B.PEG_STATUS , B.OPRID , B.DT_TIMESTAMP , B.hard_PEG FROM PS_SF_OUTPUT_HASH A , PS_IN_PEGGING B , PS_IN_DEMAND_HASH C , PS_IN_DEMAND D , PS_INSTALLATION_IN X WHERE A.HASH_KEY = B.SUPPLY_HASH AND B.SUP_ORDER_TYPE = '020' AND B.DEMAND_HASH = C.HASH_KEY AND B.DMD_ORDER_TYPE IN ('030', '070', '090') AND C.BUSINESS_UNIT = D.BUSINESS_UNIT AND C.DEMAND_SOURCE = D.DEMAND_SOURCE AND C.SOURCE_BUS_UNIT = D.SOURCE_BUS_UNIT AND C.ORDER_NO = D.ORDER_NO AND C.ORDER_INT_LINE_NO = D.ORDER_INT_LINE_NO AND C.SCHED_LINE_NBR = D.SCHED_LINE_NBR AND C.INV_ITEM_ID = D.INV_ITEM_ID AND C.DEMAND_LINE_NO = D.DEMAND_LINE_NO |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT_SUP | Character(5) | VARCHAR2(5) NOT NULL | 07/29/04 EGS: Created |
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 | PEG_HASH | Character(28) | VARCHAR2(28) NOT NULL | 07/29/04 EGS: Created |
8 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
9 | 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 |
10 | SOURCE_BUS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Source Bus Unit |
11 | 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 |
12 | ORDER_INT_LINE_NO | Number(5,0) | INTEGER NOT NULL | Order Line |
13 | SCHED_LINE_NBR | Number(6,0) | INTEGER NOT NULL | Schedule Line Number |
14 | DEMAND_LINE_NO | Number(4,0) | SMALLINT NOT NULL | Demand Line No |
15 | PEG_ORDER_TYPE | Character(4) | VARCHAR2(4) NOT NULL |
Used by Pegging Maintenance/Inquiry
010=Purchase 020=Production 030=Transfer Demand 035=Transfer Supply 070=Stock Request 090=Sales Order 100=Requisition 110=WO Inventory 115=WO Non-Inventory |
16 | BUSINESS_UNIT_IN | Character(5) | VARCHAR2(5) NOT NULL | Inventory Unit |
17 | PEG_ORDER_KEY | Character(30) | VARCHAR2(30) NOT NULL | Used to store the various Order Number formats in 1 field |
18 | PEG_LINE_KEY | Character(30) | VARCHAR2(30) NOT NULL | Used to Store the concatenation of Line, Demand, Sched, Kit, etc in 1 field. |
19 | QTY_AVAILABLE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Available |
20 | QTY_PEGGED | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | 06/16/04 EGS: Created. |
21 | PEG_FLAG | Character(1) | VARCHAR2(1) NOT NULL | 06/17/04 EGS: Created. |
22 | SCHED_DATE | Date(10) | DATE | Schedule Date |
23 | 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 |
24 | OPRID | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). |
25 | DT_TIMESTAMP | DateTime(26) | TIMESTAMP | Date Timestamp |
26 | HARD_PEG | Character(1) | VARCHAR2(1) NOT NULL | 09/01/04 EGS: Created |