IN_PRO_NPS_VW

(SQL View)
Index Back

IN Peg MSR Search View

06/21/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 , '020' , A.BUSINESS_UNIT , A.MG_OUTPUT_ITEM , A.MG_OUTPUT_SCHD_QTY - A.COMPLETED_QTY , A.MG_OUTPUT_SCHD_QTY , 'N' , C.NEW_END_DATE , C.NEW_END_TIME , %Dttm(C.NEW_END_DATE, C.NEW_END_TIME) , C.PRDN_AREA_CODE , C.PROD_STATUS , C.PRODUCTION_TYPE , 'N' , A.PEG_STATUS FROM PS_SF_OUTPUT_LIST A , PS_SF_PRDNID_HEADR C WHERE A.PEG_STATUS IN ('30', '40') AND C.PROD_STATUS IN ('10', '15', '20', '30') AND A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.PRODUCTION_ID = C.PRODUCTION_ID AND A.MG_OUTPUT_TYPE = 'CP' AND C.MA_PRDN_ID_FLG = 'Y' AND A.CONFIG_CODE = ' ' AND A.MG_OUTPUT_SCHD_QTY - A.COMPLETED_QTY > 0

# 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 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.
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_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
8 BUSINESS_UNIT_IN Character(5) VARCHAR2(5) NOT NULL Inventory Unit
9 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
10 QTY_AVAILABLE Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Available
11 QTY_ORDER Signed Number(17,4) DECIMAL(15,4) NOT NULL 06/21/04 EGS: Created
12 PEG_FLAG Character(1) VARCHAR2(1) NOT NULL 06/17/04 EGS: Created.
13 SCHED_DATE Date(10) DATE Schedule Date
14 SCHED_TIME Time(15) TIMESTAMP Schedule Time
15 SCHED_DTTM DateTime(26) TIMESTAMP 08/16/01 JNW (CN#PL900-1.0): Added
16 PRDN_AREA_CODE Character(10) VARCHAR2(10) NOT NULL Production Area
17 PROD_STATUS Character(2) VARCHAR2(2) NOT NULL Production Status
10=Entered
15=Firmed
20=Released
30=In Process
40=Pend Cmpl
50=Completed
60=Clsd/Labor
70=Clsd/Acctg
90=Canceled
18 PRODUCTION_TYPE Character(2) VARCHAR2(2) NOT NULL JNW 11/1/98 (CN#SF800-13) activated teardown xlat
PR=Production
RW=Rework
SV=Service
TD=Teardown
19 HARD_PEG Character(1) VARCHAR2(1) NOT NULL 09/01/04 EGS: Created
20 PEG_STATUS Character(2) VARCHAR2(2) NOT NULL 07/21/04 EGS: Created
10=Open
20=Completed
30=Canceled
40=Not Pegged