INV_TURN_QOH_VW(SQL View) |
Index Back |
---|
SELECT A.BUSINESS_UNIT , A.INV_ITEM_ID , A.CM_BOOK , A.CM_METHOD , SUM(B.CM_ONHAND_QTY) FROM PS_CM_ITEM_LED_VW A , PS_CM_ONHAND_VW B WHERE A.DEFAULT_LEDGER_GRP = 'Y' AND A.PRIMARY_LEDGER = 'Y' AND B.BUSINESS_UNIT = A.BUSINESS_UNIT AND B.INV_ITEM_ID = A.INV_ITEM_ID AND B.CM_BOOK = A.CM_BOOK GROUP BY A.BUSINESS_UNIT, A.INV_ITEM_ID, A.CM_BOOK, A.CM_METHOD |
# | 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 | 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 |
5 | TOTAL_QTY_ONHAND | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Total Qty OnHand |