CM_RESOLVE_VW

(SQL View)
Index Back

Negative Inv pending resolver


SELECT A.BUSINESS_UNIT , A.INV_ITEM_ID , A.CM_BOOK , A.DT_TIMESTAMP , A.SEQ_NBR , A.CM_DT_TIMESTAMP_A , A.CM_SEQ_NBR_A , A.CM_ONHAND_QTY , A.TRANSACTION_GROUP , B.TRANSACTION_GROUP , B.QTY_BASE , B.PROCESS_INSTANCE , C.COST_ELEMENT , C.CM_UNIT_COST FROM PS_CM_ONHAND_VW A , PS_CM_DEPLETE B , PS_CM_DEPLETE_COST C 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 AND A.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 AND B.BUSINESS_UNIT = C.BUSINESS_UNIT AND B.INV_ITEM_ID = C.INV_ITEM_ID AND B.CM_BOOK = C.CM_BOOK AND B.DT_TIMESTAMP = C.DT_TIMESTAMP AND B.SEQ_NBR = C.SEQ_NBR AND B.CM_DT_TIMESTAMP = C.CM_DT_TIMESTAMP AND B.CM_SEQ_NBR = C.CM_SEQ_NBR AND B.CM_DT_TIMESTAMP_A = C.CM_DT_TIMESTAMP_A AND B.CM_SEQ_NBR_A = C.CM_SEQ_NBR_A AND A.CM_ONHAND_QTY < 0 AND B.CM_DUMMY_FLG = 'N'

# 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 CM_DT_TIMESTAMP_A DateTime(26) TIMESTAMP 07/99 GMG CN800-9.0: Original putaway dttm when bin-to-bin'd.
7 CM_SEQ_NBR_A Number(15,0) DECIMAL(15) NOT NULL 07/99 GMG CN800-9.0:
8 CM_ONHAND_QTY Signed Number(17,4) DECIMAL(15,4) NOT NULL 08/30/99 RML Changed from "onhand" to "on hand"
9 TRANSACTION_GROUP Character(3) VARCHAR2(3) NOT NULL 11/7/02 LLR - Added the new (600's) transactions groups for 8.8.
10 TRANS_GRP_DEP Character(3) VARCHAR2(3) NOT NULL Deplete Transaction Group
11 QTY_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Base Quantity
12 PROCESS_INSTANCE Number(10,0) DECIMAL(10) NOT NULL Process Instance
13 COST_ELEMENT Character(4) VARCHAR2(4) NOT NULL Cost Element
14 CM_UNIT_COST Signed Number(27,15) DECIMAL(25,15) NOT NULL 07/99 GMG CN800-9.0: