CE_SUB_CST_VW

(SQL View)
Index Back

Vewi of Subcontracted Cost


SELECT B.BUSINESS_UNIT_IN , A.CM_BOOK , 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 , A.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_MATCHED_BOOK A , PS_RECV_LN_SHIP B , PS_PO_SF_OP_LIST C 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.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 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 CM_BOOK Character(10) VARCHAR2(10) NOT NULL Cost Book
3 PRODUCTION_ID Character(10) VARCHAR2(10) NOT NULL Production ID
4 OP_SEQUENCE Number(4,0) SMALLINT NOT NULL Operation Sequence
5 BUSINESS_UNIT_RECV Character(5) VARCHAR2(5) NOT NULL Receiving Business Unit
6 RECEIVER_ID Character(10) VARCHAR2(10) NOT NULL Receiver number
7 RECV_LN_NBR Number(5,0) INTEGER NOT NULL Receipt Line
8 RECV_SHIP_SEQ_NBR Number(3,0) SMALLINT NOT NULL Receiver Shipping Sequence
9 DISTRIB_LINE_NUM Number(5,0) INTEGER NOT NULL Distribution Line
10 MISC_CHARGE_CODE Character(10) VARCHAR2(10) NOT NULL 10/8/98 ebn CN#CM800-2.0 : Added for Landed Cost Enhancement
11 CM_SEQ_COST Number(15,0) DECIMAL(15) NOT NULL Cost Sequence Number. Incremented each time the actual cost is updated.
12 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
13 COST_ELEMENT Character(4) VARCHAR2(4) NOT NULL Cost Element
14 CM_UNIT_COST_PO Signed Number(32,15) DECIMAL(30,15) NOT NULL 07/99 GMG CN800-9.0:
15 CM_UNIT_COST_POVO Signed Number(32,15) DECIMAL(30,15) NOT NULL 07/99 GMG CN800-9.0:
16 CM_UNIT_COST_VO Signed Number(32,15) DECIMAL(30,15) NOT NULL 07/99 GMG CN800-9.0: