CM_OH_INQ_VW1

(SQL View)
Index Back

On hand quantity

08/05/99 RML Added code to RowInit of cm_method to set column heading using message text (defined in msg catalog) Created on 06/04/99 RML CM800-9.0 - view to store quantity on hand by business unit, item, and book for selected receipts. SELECT oprid, business_unit, inv_item_id, cm_book, sum(cm_receipt_qty), sum(cm_onhand_qty) FROM PS_CM_OH_INQ_TMP1 GROUP BY oprid, business_unit, inv_item_id, cm_book 10/01 dmw change build seq nbr from 1 to 2

SELECT a.oprid , a.business_unit , a.inv_item_id , a.cm_book , b.cm_method , SUM(a.cm_receipt_qty) , SUM(a.cm_onhand_qty) , 0 FROM PS_CM_OH_INQ_TMP1 a , PS_CM_ITEM_METH_VW b WHERE a.business_unit = b.business_unit AND a.inv_item_id = b.inv_item_id AND a.cm_book = b.cm_book GROUP BY a.oprid, a.business_unit, a.inv_item_id, a.cm_book, b.cm_method

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
2 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
3 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
4 CM_BOOK Character(10) VARCHAR2(10) NOT NULL Cost Book
5 CM_METHOD Character(2) VARCHAR2(2) NOT NULL 8/20/02 lee: added xlate 9 for retroactive perp average 01/18/99 RML Created for CN800-9.0 FIFO/LIFO Enhancements
0=Non Cost
1=Actual Cost
6=Perpetual Weighted Average
7=Periodic Weighted Average
8=Value at Current Standard
9=Retroactive Perpetual Average
6 CM_RECEIPT_QTY Signed Number(17,4) DECIMAL(15,4) NOT NULL 07/99 GMG CN800-9.0:
7 CM_ONHAND_QTY Signed Number(17,4) DECIMAL(15,4) NOT NULL 08/30/99 RML Changed from "onhand" to "on hand"
8 CM_ONHAND_VALUE Number(19,6) DECIMAL(18,6) NOT NULL 08/30/99 RML Changed from "onhand" to "on hand"