CM_ACTCOSTDP_VW(SQL View) |
Index Back |
---|---|
Total Actual Costs by Book |
SELECT A.BUSINESS_UNIT , A.INV_ITEM_ID , A.DT_TIMESTAMP , B.SEQ_NBR , C.COST_ELEMENT , A.CM_SEQ_COST , A.CM_BOOK , A.CM_COST_SOURCE , B.TRANSACTION_GROUP , SUM(A.CM_UNIT_COST) FROM PS_CM_ACTUAL_COSTB A , PS_CM_DEPLETE B , PS_BU_ITEMS_INV C WHERE B.POSTED_FLAG = 'N' AND A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.CM_BOOK = B.CM_BOOK AND A.INV_ITEM_ID = B.INV_ITEM_ID AND B.CM_DT_TIMESTAMP_A = A.DT_TIMESTAMP AND B.CM_SEQ_NBR_A = A.SEQ_NBR AND A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.INV_ITEM_ID = C.INV_ITEM_ID AND B.BUSINESS_UNIT = C.BUSINESS_UNIT AND B.INV_ITEM_ID = C.INV_ITEM_ID GROUP BY A. BUSINESS_UNIT , A.INV_ITEM_ID , A.DT_TIMESTAMP , B.SEQ_NBR , C.COST_ELEMENT , A.CM_SEQ_COST , A.CM_BOOK, A.CM_COST_SOURCE, B.TRANSACTION_GROUP |
# | 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 | DT_TIMESTAMP | DateTime(26) | TIMESTAMP | Date Timestamp |
4 | SEQ_NBR | Number(15,0) | DECIMAL(15) NOT NULL | Sequence Number |
5 | COST_ELEMENT | Character(4) | VARCHAR2(4) NOT NULL | Cost Element |
6 | CM_SEQ_COST | Number(15,0) | DECIMAL(15) NOT NULL | Cost Sequence Number. Incremented each time the actual cost is updated. |
7 | CM_BOOK | Character(10) | VARCHAR2(10) NOT NULL | Cost Book |
8 | CM_COST_SOURCE | Character(1) | VARCHAR2(1) NOT NULL |
12/29/2005 dbe ICE 1379942000 - Added "U" Xlat.
0=Depletion 1=PO Receipt 2=Expr Ptway 3=IUTransfer 4=AP Matched 5=User Adj 6=Qty Adjs. 7=Bin to Bin 8=Prelim Cst 9=Prdn Compl C=NegQty R=Return S=Split from U=75 Upgrade |
9 | TRANSACTION_GROUP | Character(3) | VARCHAR2(3) NOT NULL | 11/7/02 LLR - Added the new (600's) transactions groups for 8.8. |
10 | CM_UNIT_COST | Signed Number(27,15) | DECIMAL(25,15) NOT NULL | 07/99 GMG CN800-9.0: |