APS_WO_OUT_VW(SQL View) |
Index Back |
---|---|
APS Integ Work Order Output Vw |
SELECT DISTINCT P.BUSINESS_UNIT , P.INV_ITEM_ID , P.PRODUCTION_ID , O.OP_SEQUENCE , 0 AS BOM_CODE , 0 AS RTG_CODE , O.MG_OUTPUT_ITEM , O.MG_OUTPUT_TYPE , O.MG_OUTPUT_QTY_CODE , O.MG_OUTPUT_SCHD_QTY , O.MG_NEW_OUTPUT_QTY , I.ITM_SETID , P.NEW_START_DATE ,P.NEW_END_DATE , P.PROD_STATUS ,P.PRODUCTION_TYPE ,L.WORK_CENTER_CODE , I.UNIT_MEASURE_STD FROM PS_SF_PRDNID_HEADR P , PS_SF_OUTPUT_LIST O , PS_SF_OP_LIST L , PS_APS_ITEM_BU_VW I WHERE P.PROD_STATUS IN('15','20','30') AND I.INV_ITEM_ID = P.INV_ITEM_ID AND I.BUSINESS_UNIT = P.BUSINESS_UNIT AND O.BUSINESS_UNIT = P.BUSINESS_UNIT AND O.PRODUCTION_ID = P.PRODUCTION_ID AND O.BUSINESS_UNIT = L.BUSINESS_UNIT AND O.PRODUCTION_ID = L.PRODUCTION_ID AND (O.OP_SEQUENCE = L.OP_SEQUENCE OR O.OP_SEQUENCE = 0) 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 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |
3 | PRODUCTION_ID | Character(10) | VARCHAR2(10) NOT NULL | Production ID |
4 | OP_SEQUENCE | Number(4,0) | SMALLINT NOT NULL | Operation Sequence |
5 | BOM_CODE | Number(2,0) | SMALLINT NOT NULL | CN# EN800-3.0, anna 09/21 added new field to database |
6 | RTG_CODE | Number(2,0) | SMALLINT NOT NULL | Routing Code |
7 | 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 |
8 | 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 |
9 | 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 |
10 | MG_OUTPUT_SCHD_QTY | Number(12,4) | DECIMAL(11,4) NOT NULL | Schedule qty |
11 | MG_NEW_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. |
12 | ITM_SETID | Character(5) | VARCHAR2(5) NOT NULL | Item SetID |
13 | NEW_START_DATE | Date(10) | DATE | Start Date |
14 | NEW_END_DATE | Date(10) | DATE | Due Date |
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 |