SF_PURGE_FIN_VW

(SQL View)
Index Back

SF Purge Finished Goods View

03/18/03 PWF MG Archive Record

SELECT A.BUSINESS_UNIT , A.INV_ITEM_ID , B.CM_BOOK , A.DT_TIMESTAMP , B.DT_TIMESTAMP , A.CM_DT_TIMESTAMP_A , A.PRODUCTION_ID , B.STORAGE_AREA , B.CM_ONHAND_QTY , B.PRODUCTION_ID , B.INV_LOT_ID , B.SERIAL_ID FROM PS_CM_DEPLETE A , PS_CM_ONHAND_VW B WHERE A.BUSINESS_UNIT=B.BUSINESS_UNIT AND A.CM_BOOK=B.CM_BOOK AND A.INV_ITEM_ID=B.INV_ITEM_ID AND A.CM_DT_TIMESTAMP_A =B.CM_DT_TIMESTAMP_A AND A.INV_LOT_ID = B.INV_LOT_ID AND A.SERIAL_ID = B.SERIAL_ID AND A.PRODUCTION_ID <> ' ' AND A.TRANSACTION_GROUP ='021' AND B.CM_ONHAND_QTY<>0

# 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 DT_TIMESTAMP_FROM DateTime(26) TIMESTAMP From Date Timestamp
6 CM_DT_TIMESTAMP_A DateTime(26) TIMESTAMP 07/99 GMG CN800-9.0: Original putaway dttm when bin-to-bin'd.
7 PRODUCTION_ID Character(10) VARCHAR2(10) NOT NULL Production ID
8 STORAGE_AREA Character(5) VARCHAR2(5) NOT NULL Storage Area
9 CM_ONHAND_QTY Signed Number(17,4) DECIMAL(15,4) NOT NULL 08/30/99 RML Changed from "onhand" to "on hand"
10 FROM_PRDN_ID Character(10) VARCHAR2(10) NOT NULL From Production ID
11 INV_LOT_ID Character(15) VARCHAR2(15) NOT NULL Lot ID
12 SERIAL_ID Character(20) VARCHAR2(20) NOT NULL Serial ID