SF_COMP_RTE_VW(SQL View) |
Index Back |
---|---|
Comp List View for Route ToCN#SF750-1.1 ARG 11/18/97 - Removed Issue_loc_qty CN#SF750-1.1 EYZ 12/3/97, added checking for qty_short > 0 in the where clause. Move the key fields (component_id, op_sequence, qty_code) to the beginning of the view definition. also added a.ma_prdn_id_flg = 'Y', only show pids, not schedules. CN#MG750-6.0 MPD 12/07/97 - Changed qty_per to sf_qty_per. 06/03/99 lee CN#MG800-4.0 Item Attribute @ BU level mods. |
SELECT A.BUSINESS_UNIT , A.PRODUCTION_ID , A.COMPONENT_ID , A.OP_SEQUENCE , A.QTY_CODE , A.MG_ORIG_COMP_ID , B.PRDN_AREA_CODE , B.PRDN_DUE_DATE , B.PRDN_DUE_SHIFT , B.PRDN_DUE_TIME , B.MA_PRDN_ID_FLG , B.PRODUCTION_TYPE , B.PROD_STATUS , A.SF_QTY_PER , A.YIELD , A.SCHED_QTY , A.CURR_SCHED_QTY , A.ISSUE_QTY , A.YIELD_QTY , A.PEND_CONSUME_QTY , A.PEND_LOSS_QTY , A.PICK_QTY , A.TRANSACTION_FLAG , A.NON_OWN_FLAG , A.CONFIG_CODE , B.INV_ITEM_ID , B.NEW_PRDN_QTY FROM PS_SF_COMP_LIST A , PS_SF_PRDNID_HEADR B , PS_BU_ITEMS_INV C WHERE (A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.PRODUCTION_ID = B.PRODUCTION_ID AND A.COMPONENT_ID=C.INV_ITEM_ID AND (A.NON_OWN_FLAG='N' OR C.CONSIGNED_FLAG='Y') AND B.MA_PRDN_ID_FLG = 'Y' AND B.PROD_STATUS IN ('20', '30')) AND A.ISSUE_METHOD = 'KIT' AND ((A.PEND_CONSUME_QTY+A.PEND_LOSS_QTY>0) OR (A.YIELD_QTY<= %DecMult (A.CURR_SCHED_QTY , (1-%Round((%DECDIV( A.YIELD, 100)),15))) AND A.CURR_SCHED_QTY-A.ISSUE_QTY- A.YIELD_QTY>0) OR (A.YIELD_QTY> %DecMult (A.CURR_SCHED_QTY , (1-%Round((%DECDIV( A.YIELD, 100)),15)) ) AND A.CURR_SCHED_QTY-A.ISSUE_QTY- %DecMult (A.CURR_SCHED_QTY, (1-%Round(( %DECDIV( A.YIELD, 100)),15))) >0) ) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Default Value: OPR_DEF_TBL_FS.BUSINESS_UNIT Prompt Table: SP_BUMGOP_NONVW |
2 | PRODUCTION_ID | Character(10) | VARCHAR2(10) NOT NULL |
Production ID
Prompt Table: SF_COMP_MTN_VW |
3 | COMPONENT_ID | Character(18) | VARCHAR2(18) NOT NULL | 04/10/00 (Internet Architecture) SCC: Uppercase label Id. |
4 | OP_SEQUENCE | Number(4,0) | SMALLINT NOT NULL |
Operation Sequence
Prompt Table: SF_OP_LIST_VW |
5 | QTY_CODE | Character(3) | VARCHAR2(3) NOT NULL |
Per
ASY=Assembly ORD=Order |
6 | MG_ORIG_COMP_ID | Character(18) | VARCHAR2(18) NOT NULL | original component ID |
7 | PRDN_AREA_CODE | Character(10) | VARCHAR2(10) NOT NULL | Production Area |
8 | PRDN_DUE_DATE | Date(10) | DATE | Prdn Due Date |
9 | PRDN_DUE_SHIFT | Signed Number(2,0) | DECIMAL(1) NOT NULL | Prdn Due Shift |
10 | PRDN_DUE_TIME | Time(15) | TIMESTAMP | Prdn Due Time |
11 | MA_PRDN_ID_FLG | Character(1) | VARCHAR2(1) NOT NULL |
10/18/99 SCC CN#IC800: Add label MAINTAIN_PID
N=No Y=Yes |
12 | 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 |
13 | 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 |
14 | SF_QTY_PER | Number(16,10) | DECIMAL(15,10) NOT NULL | 07/06/99 SCC CN# SF800-9.0: Added label Quantity |
15 | YIELD | Number(8,4) | DECIMAL(7,4) NOT NULL | Component Yield |
16 | SCHED_QTY | Number(12,4) | DECIMAL(11,4) NOT NULL | Component Scheduled Qty |
17 | CURR_SCHED_QTY | Number(12,4) | DECIMAL(11,4) NOT NULL | 07/28/99 SCC CN#SF800-9.0: Added label id TO_CURR_SCHED |
18 | ISSUE_QTY | Number(12,4) | DECIMAL(11,4) NOT NULL | 07/28/99 SCC CN#SF800-9.0: Added label id TO_ISSUE_QTY |
19 | YIELD_QTY | Number(12,4) | DECIMAL(11,4) NOT NULL | 10/12/99 SCC CN#SF800-9.0: Added label id TO_YIELD_QTY |
20 | PEND_CONSUME_QTY | Signed Number(13,4) | DECIMAL(11,4) NOT NULL | 10/12/99 SCC CN#SF800-9.0: Added label id TO_PEND_CONSUME |
21 | PEND_LOSS_QTY | Signed Number(13,4) | DECIMAL(11,4) NOT NULL | 10/12/99 SCC CN#SF800-9.0: Added label id TO_PEND_LOSS |
22 | PICK_QTY | Number(12,4) | DECIMAL(11,4) NOT NULL | Pending Pick Quantity |
23 | TRANSACTION_FLAG | Character(1) | VARCHAR2(1) NOT NULL |
Component Issue/Receipt Flag
1=Issue Material from Stock 2=Return Material to Stock |
24 | NON_OWN_FLAG | Character(1) | VARCHAR2(1) NOT NULL |
07/30/1998 WHS CN#ENH8.0: Created Translate Values 'Y'es and 'N'o
N=No Y=Yes Y/N Table Edit |
25 | CONFIG_CODE | Character(50) | VARCHAR2(50) NOT NULL | Product Configurator |
26 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |
27 | NEW_PRDN_QTY | Number(12,4) | DECIMAL(11,4) NOT NULL | Production Start Qty |