APS_WO_OUTEN_VW(SQL View) |
Index Back |
---|---|
APS Integ Work Order Enter Vw |
SELECT P.BUSINESS_UNIT , P.PRODUCTION_ID , P.INV_ITEM_ID , O.BOM_STATE , O.BOM_TYPE , O.BOM_CODE , O.MG_OUTPUT_TYPE , O.MG_OUTPUT_ITEM , O.OP_SEQUENCE , O.MG_OUTPUT_QTY_CODE , O.MG_OUTPUT_QTY , P.NEW_START_DATE , P.NEW_END_DATE , I.ITM_SETID , P.PROD_STATUS ,P.PRODUCTION_TYPE ,R.WORK_CENTER_CODE , I.UNIT_MEASURE_STD FROM PS_SF_PRDNID_HEADR P , PS_EN_BOM_OUTPUTS O , PS_EN_RTG_OPS R , PS_APS_ITEM_BU_VW I WHERE P.PROD_STATUS = '10' AND I.INV_ITEM_ID = P.INV_ITEM_ID AND O.INV_ITEM_ID = P.INV_ITEM_ID AND O.INV_ITEM_ID = R.INV_ITEM_ID AND I.BUSINESS_UNIT = P.BUSINESS_UNIT AND O.BUSINESS_UNIT = P.BUSINESS_UNIT AND O.BUSINESS_UNIT = R.BUSINESS_UNIT AND O.OP_SEQUENCE = R.OP_SEQUENCE AND R.RTG_CODE = P.RTG_CODE AND R.RTG_TYPE = P.PRODUCTION_TYPE AND R.RTG_STATE = 'PR' AND P.BOM_CODE = O.BOM_CODE AND O.BOM_TYPE = P.PRODUCTION_TYPE AND O.BOM_STATE = 'PR' AND O.MG_OUTPUT_TYPE IN ('CS', 'RB') AND EXISTS ( SELECT 'X' FROM PS_APS_ITEM_BU_VW II WHERE II.INV_ITEM_ID = O.MG_OUTPUT_ITEM AND II.BUSINESS_UNIT = O.BUSINESS_UNIT) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Prompt Table: SP_BUMGOP_NONVW |
2 | PRODUCTION_ID | Character(10) | VARCHAR2(10) NOT NULL | Production ID |
3 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |
4 | BOM_STATE | Character(2) | VARCHAR2(2) NOT NULL |
BOM State
EN=Engineering PR=Manufacturing |
5 | BOM_TYPE | Character(2) | VARCHAR2(2) NOT NULL |
03/26/00 RML Added a label "Type"
PR=Production RW=Rework |
6 | BOM_CODE | Number(2,0) | SMALLINT NOT NULL | CN# EN800-3.0, anna 09/21 added new field to database |
7 | 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 |
8 | 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.
Prompt Table: %EDITTABLE23 |
9 | OP_SEQUENCE | Number(4,0) | SMALLINT NOT NULL | Operation Sequence |
10 | 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 Default Value: ASY |
11 | MG_OUTPUT_QTY | Number(12,4) | DECIMAL(11,4) NOT NULL | 10/22/98 (CN#EN800-6.0) LAJ...Created Stores the output item quantity on a Bill of Materials. This value is assumed to be in the UOM of the output item it's associated to. KPN 08/23/02: Added label Quantity |
12 | NEW_START_DATE | Date(10) | DATE | Start Date |
13 | NEW_END_DATE | Date(10) | DATE | Due Date |
14 | ITM_SETID | Character(5) | VARCHAR2(5) NOT NULL | Item SetID |
15 | 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 |
16 | 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 |
17 | WORK_CENTER_CODE | Character(10) | VARCHAR2(10) NOT NULL | Work Center |
18 | UNIT_MEASURE_STD | Character(3) | VARCHAR2(3) NOT NULL | Standard Unit of Measure |