CM_UNDEPL_VW(SQL View) |
Index Back |
---|---|
Undepletable QuantitiesUndepletable Quantities Based on Deplete Qty Less Undeplete Qty. - CM_DT_TIMESTAMP_D = component consumption/kit deplete key. - CM_DT_TIMESTAMP = cm_receipts foreign key. - CM_DT_TIMESTAMP_A = cm_actual_cost foreign key. |
SELECT B.BUSINESS_UNIT , B.INV_ITEM_ID , B.CM_BOOK , B.CM_DT_TIMESTAMP_D , B.CM_SEQ_NBR_D , A.CM_DT_TIMESTAMP , A.CM_SEQ_NBR , A.CM_DT_TIMESTAMP_A , A.CM_SEQ_NBR_A , A.CM_DT_TIMESTAMP_P ,A.CM_SEQ_NBR_P , B.TRANSACTION_GROUP , A.PRODUCTION_ID , A.OP_SEQUENCE , A.CM_ORIG_TRANS_DATE , A.CONSIGNED_FLAG , A.STORAGE_AREA , A.INV_LOT_ID , A.SERIAL_ID , A.QTY_BASE , SUM(B.QTY_BASE) , A.QTY_BASE - SUM(B.QTY_BASE) FROM PS_CM_DEPLETE A , PS_CM_UNDEPLETE B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.INV_ITEM_ID = B.INV_ITEM_ID AND A.CM_BOOK = B.CM_BOOK AND A.DT_TIMESTAMP = B.CM_DT_TIMESTAMP_D AND A.SEQ_NBR = B.CM_SEQ_NBR_D AND A.CM_DT_TIMESTAMP = B.CM_DT_TIMESTAMP AND A.CM_SEQ_NBR = B.CM_SEQ_NBR AND A.CM_DT_TIMESTAMP_A = B.CM_DT_TIMESTAMP_A AND A.CM_SEQ_NBR_A = B.CM_SEQ_NBR_A GROUP BY B.BUSINESS_UNIT, B.INV_ITEM_ID, B.CM_BOOK, B.CM_DT_TIMESTAMP_D, B.CM_SEQ_NBR_D, A.CM_DT_TIMESTAMP, A.CM_SEQ_NBR, A.CM_DT_TIMESTAMP_A , A.CM_SEQ_NBR_A, A.CM_DT_TIMESTAMP_P, A.CM_SEQ_NBR_P,B.TRANSACTION_GROUP, A.PRODUCTION_ID, A.OP_SEQUENCE, A.CM_ORIG_TRANS_DATE, A.CONSIGNED_FLAG, A.STORAGE_AREA, A.INV_LOT_ID, A.SERIAL_ID, A.QTY_BASE |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | Character(5) | VARCHAR2(5) NOT NULL | Business Unit | |
2 | Character(18) | VARCHAR2(18) NOT NULL | Item ID | |
3 | Character(10) | VARCHAR2(10) NOT NULL | Cost Book | |
4 | DateTime(26) | TIMESTAMP NOT NULL | Deplete Date Timestamp | |
5 | Number(15,0) | DECIMAL(15) NOT NULL | Sequence Number | |
6 | DateTime(26) | TIMESTAMP NOT NULL | Receipt dttm. | |
7 | Number(15,0) | DECIMAL(15) NOT NULL | Sequence Number | |
8 | DateTime(26) | TIMESTAMP NOT NULL | 07/99 GMG CN800-9.0: Original putaway dttm when bin-to-bin'd. | |
9 | Number(15,0) | DECIMAL(15) NOT NULL | 07/99 GMG CN800-9.0: | |
10 | CM_DT_TIMESTAMP_P | DateTime(26) | TIMESTAMP | 07/99 GMG CN800-9.0: |
11 | CM_SEQ_NBR_P | Number(15,0) | DECIMAL(15) NOT NULL | 07/99 GMG CN800-9.0: |
12 | TRANSACTION_GROUP | Character(3) | VARCHAR2(3) NOT NULL | 11/7/02 LLR - Added the new (600's) transactions groups for 8.8. |
13 | PRODUCTION_ID | Character(10) | VARCHAR2(10) NOT NULL | Production ID |
14 | OP_SEQUENCE | Number(4,0) | SMALLINT NOT NULL | Operation Sequence |
15 | CM_ORIG_TRANS_DATE | Date(10) | DATE | 07/99 GMG CN800-9.0: |
16 | CONSIGNED_FLAG | Character(1) | VARCHAR2(1) NOT NULL | Consigned Flag |
17 | STORAGE_AREA | Character(5) | VARCHAR2(5) NOT NULL | Storage Area |
18 | INV_LOT_ID | Character(15) | VARCHAR2(15) NOT NULL | Lot ID |
19 | SERIAL_ID | Character(20) | VARCHAR2(20) NOT NULL | Serial ID |
20 | CM_DEPLETE_QTY | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Base Quantity Depleted |
21 | CM_UNDEPLETE_QTY | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Base Quantity Undepleted |
22 | CM_ONHAND_QTY | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | 08/30/99 RML Changed from "onhand" to "on hand" |