CM_DEPLETION_VW

(SQL View)
Index Back

Qty to be Depleted

05/03 dmw 8.9 Negative Inventory Costing Options: Qty remaining to be depleted based on original depletion quantity less depleted quantities

SELECT A.BUSINESS_UNIT , A.INV_ITEM_ID , A.CM_BOOK , A.DT_TIMESTAMP , A.SEQ_NBR , A.TRANSACTION_DATE , A.CONSIGNED_FLAG , A.TO_CONSIGNED_FLG , A.STORAGE_AREA , A.INV_LOT_ID , A.SERIAL_ID , A.TRANSACTION_GROUP , A.PRODUCTION_ID , A.OP_SEQUENCE , A.CM_COST_PROC_GROUP , A.UNIT_MEASURE_STD , A.CM_DTTM_IN_EFFECT , A.CM_DTTM_STAMP , A.MESSAGE_SET_NBR , A.MESSAGE_NBR , A.PROCESS_INSTANCE , A.POSTED_FLAG , A.QTY_BASE , SUM(B.QTY_BASE) , A.QTY_BASE - SUM(B.QTY_BASE) FROM PS_CM_DEPLETION A , PS_CM_DEPLETE 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.DT_TIMESTAMP AND A.SEQ_NBR = B.SEQ_NBR GROUP BY A.BUSINESS_UNIT , A.INV_ITEM_ID , A.CM_BOOK , A.DT_TIMESTAMP , A.SEQ_NBR , A.CONSIGNED_FLAG , A.TO_CONSIGNED_FLG, A.TRANSACTION_DATE, A.STORAGE_AREA , A.INV_LOT_ID , A.SERIAL_ID , A.TRANSACTION_GROUP , A.PRODUCTION_ID, A.OP_SEQUENCE, A.CM_COST_PROC_GROUP, A.UNIT_MEASURE_STD, A.CM_DTTM_IN_EFFECT, A.CM_DTTM_STAMP, A.MESSAGE_SET_NBR, A.MESSAGE_NBR, A.PROCESS_INSTANCE, A.POSTED_FLAG , A.QTY_BASE

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
3 CM_BOOK Character(10) VARCHAR2(10) NOT NULL Cost Book
4 DT_TIMESTAMP DateTime(26) TIMESTAMP Date Timestamp
5 SEQ_NBR Number(15,0) DECIMAL(15) NOT NULL Sequence Number
6 TRANSACTION_DATE Date(10) DATE Transaction Date
7 CONSIGNED_FLAG Character(1) VARCHAR2(1) NOT NULL Consigned Flag
8 TO_CONSIGNED_FLG Character(1) VARCHAR2(1) NOT NULL To Consigned Flag
9 STORAGE_AREA Character(5) VARCHAR2(5) NOT NULL Storage Area
10 INV_LOT_ID Character(15) VARCHAR2(15) NOT NULL Lot ID
11 SERIAL_ID Character(20) VARCHAR2(20) NOT NULL Serial ID
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_COST_PROC_GROUP Character(18) VARCHAR2(18) NOT NULL Cost Flow Record
16 UNIT_MEASURE_STD Character(3) VARCHAR2(3) NOT NULL Standard Unit of Measure
17 CM_DTTM_IN_EFFECT DateTime(26) TIMESTAMP Date Timestamp
18 CM_DTTM_STAMP DateTime(26) TIMESTAMP Date Timestamp
19 MESSAGE_SET_NBR Number(5,0) INTEGER NOT NULL Message Set Number. This field refers to the Message Set Number in the Message Catalog.
20 MESSAGE_NBR Number(5,0) INTEGER NOT NULL Message Number. This field refers to the Message Number in the Message Catalog.
21 PROCESS_INSTANCE Number(10,0) DECIMAL(10) NOT NULL Process Instance
22 POSTED_FLAG Character(1) VARCHAR2(1) NOT NULL A flag that indicates whether or not a Receivables item has been posted. This field is automatically updated by the Receivables Update program.
N=Not Posted
X=Don't Post
Y=Posted
23 CM_DEPN_QTY Signed Number(17,4) DECIMAL(15,4) NOT NULL Depletion Quantity Base
24 CM_DEPLETE_QTY Signed Number(17,4) DECIMAL(15,4) NOT NULL Base Quantity Depleted
25 CM_QTY_TO_PROC Signed Number(17,4) DECIMAL(15,4) NOT NULL Depletion Quantity to Process