CE_SUB_CST3_VW

(SQL View)
Index Back

View of Subcontracted Cost


SELECT B.BUSINESS_UNIT_IN , B.PRODUCTION_ID , B.OP_SEQUENCE , A.BUSINESS_UNIT_RECV , A.RECEIVER_ID , A.RECV_LN_NBR , A.RECV_SHIP_SEQ_NBR , A.DISTRIB_LINE_NUM , A.MISC_CHARGE_CODE , A.CM_SEQ_COST , A.INV_ITEM_ID , E.COST_ELEMENT , A.CM_UNIT_COST_PO , A.CM_UNIT_COST_POVO , A.CM_UNIT_COST_VO - A.CM_UNIT_COST_PO FROM PS_CM_MATCST_TMP A , PS_RECV_LN_SHIP B , PS_PO_SF_OP_LIST C , PS_SF_PRDNID_HEADR D , PS_BU_ITEMS_INV E WHERE B.BUSINESS_UNIT = A.BUSINESS_UNIT_RECV AND B.RECEIVER_ID = A.RECEIVER_ID AND B.RECV_LN_NBR = A.RECV_LN_NBR AND B.RECV_SHIP_SEQ_NBR = A.RECV_SHIP_SEQ_NBR AND B.BUSINESS_UNIT_IN = C.BUSINESS_UNIT AND B.PRODUCTION_ID = C.PRODUCTION_ID AND B.OP_SEQUENCE = C.OP_SEQUENCE AND C.SUBCONTRACTED = 'Y' AND C.BUSINESS_UNIT = D.BUSINESS_UNIT AND C.PRODUCTION_ID = D.PRODUCTION_ID AND B.INV_ITEM_ID <> D.INV_ITEM_ID AND D.BUSINESS_UNIT = E.BUSINESS_UNIT AND D.INV_ITEM_ID = E.INV_ITEM_ID AND A.POSTED_FLAG = 'N'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 PRODUCTION_ID Character(10) VARCHAR2(10) NOT NULL Production ID
3 OP_SEQUENCE Number(4,0) SMALLINT NOT NULL Operation Sequence
4 BUSINESS_UNIT_RECV Character(5) VARCHAR2(5) NOT NULL Receiving Business Unit
5 RECEIVER_ID Character(10) VARCHAR2(10) NOT NULL Receiver number
6 RECV_LN_NBR Number(5,0) INTEGER NOT NULL Receipt Line
7 RECV_SHIP_SEQ_NBR Number(3,0) SMALLINT NOT NULL Receiver Shipping Sequence
8 DISTRIB_LINE_NUM Number(5,0) INTEGER NOT NULL Distribution Line
9 MISC_CHARGE_CODE Character(10) VARCHAR2(10) NOT NULL 10/8/98 ebn CN#CM800-2.0 : Added for Landed Cost Enhancement
10 CM_SEQ_COST Number(15,0) DECIMAL(15) NOT NULL Cost Sequence Number. Incremented each time the actual cost is updated.
11 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
12 COST_ELEMENT Character(4) VARCHAR2(4) NOT NULL Cost Element
13 CM_UNIT_COST_PO Signed Number(32,15) DECIMAL(30,15) NOT NULL 07/99 GMG CN800-9.0:
14 CM_UNIT_COST_POVO Signed Number(32,15) DECIMAL(30,15) NOT NULL 07/99 GMG CN800-9.0:
15 CM_UNIT_COST_VO Signed Number(32,15) DECIMAL(30,15) NOT NULL 07/99 GMG CN800-9.0: