SF_PURGE_CO3_VW

(SQL View)
Index Back

Purging Component consumption

04/22/03 PWF This view is used to determine if onhand qty in a receipt for a component in a pid is zero.

SELECT DISTINCT A.BUSINESS_UNIT , A.CM_BOOK , A.INV_ITEM_ID , A.FROM_PRDN_ID , A.TO_PRDN_ID , B.STORAGE_AREA , A.CM_DT_TIMESTAMP_A , A.CM_SEQ_NBR_A , B.CM_ONHAND_QTY FROM PS_SF_PURGE_PIC_VW A , PS_CM_ONHAND_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 AND A.CM_DT_TIMESTAMP_A = B.CM_DT_TIMESTAMP_A AND A.CM_SEQ_NBR_A = B.SEQ_NBR AND EXISTS ( SELECT 'X' FROM PS_CM_ITEM_METH_VW CM WHERE CM.BUSINESS_UNIT = A.BUSINESS_UNIT AND CM.INV_ITEM_ID = A.INV_ITEM_ID AND CM.CM_BOOK = A.CM_BOOK AND CM.CM_TYPE <> '2')

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 CM_BOOK Character(10) VARCHAR2(10) NOT NULL Cost Book
3 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
4 FROM_PRDN_ID Character(10) VARCHAR2(10) NOT NULL From Production ID
5 TO_PRDN_ID Character(10) VARCHAR2(10) NOT NULL To Production ID
6 STORAGE_AREA Character(5) VARCHAR2(5) NOT NULL Storage Area
7 CM_DT_TIMESTAMP_A DateTime(26) TIMESTAMP 07/99 GMG CN800-9.0: Original putaway dttm when bin-to-bin'd.
8 CM_SEQ_NBR_A Number(15,0) DECIMAL(15) NOT NULL 07/99 GMG CN800-9.0:
9 CM_ONHAND_QTY Signed Number(17,4) DECIMAL(15,4) NOT NULL 08/30/99 RML Changed from "onhand" to "on hand"