CM_CTC_ACT2_VW(SQL View) |
Index Back |
---|---|
Actual Cost View |
SELECT A.BUSINESS_UNIT , A.CM_BOOK , A.INV_ITEM_ID , A.DT_TIMESTAMP , A.SEQ_NBR , A.CM_SEQ_COST , A.BUSINESS_UNIT_RECV , A.RECEIVER_ID , A.RECV_LN_NBR , A.RECV_SHIP_SEQ_NBR , A.DISTRIB_LINE_NUM , A.EFF_STATUS , A.CM_ADJ_TYPE , A.CM_COST_SOURCE , A.CURRENCY_CD , A.PROCESS_INSTANCE , B.VENDOR_ID , B.QTY_BASE , B.SOURCE_BUS_UNIT , B.STORAGE_AREA , B.SERIAL_ID , B.INV_LOT_ID , B.TRANSACTION_SOURCE , A.PRODUCTION_ID , SUM(A.CM_UNIT_COST) , %Round(SUM(A.CM_UNIT_COST) ,4) FROM PS_CM_ACTUAL_COSTB A , PS_TRANSACTION_INV B WHERE %Join(COMMON_KEYS, CM_ACTUAL_COSTB A, TRANSACTION_INV B) AND A.EFF_STATUS='A' GROUP BY A.BUSINESS_UNIT , A.CM_BOOK , A.INV_ITEM_ID , A.DT_TIMESTAMP , A.SEQ_NBR , A.CM_SEQ_COST , A.BUSINESS_UNIT_RECV , A.RECEIVER_ID , A.RECV_LN_NBR , A.RECV_SHIP_SEQ_NBR , A.DISTRIB_LINE_NUM , A.EFF_STATUS , A.CM_ADJ_TYPE , A.CM_COST_SOURCE , A.CURRENCY_CD , A.PROCESS_INSTANCE , B.VENDOR_ID , B.QTY_BASE , B.SOURCE_BUS_UNIT , B.STORAGE_AREA , B.SERIAL_ID , B.INV_LOT_ID , B.TRANSACTION_SOURCE , A.PRODUCTION_ID |
# | 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 | DT_TIMESTAMP | DateTime(26) | TIMESTAMP | Date Timestamp |
5 | SEQ_NBR | Number(15,0) | DECIMAL(15) NOT NULL | Sequence Number |
6 | CM_SEQ_COST | Number(15,0) | DECIMAL(15) NOT NULL | Cost Sequence Number. Incremented each time the actual cost is updated. |
7 | BUSINESS_UNIT_RECV | Character(5) | VARCHAR2(5) NOT NULL | Receiving Business Unit |
8 | RECEIVER_ID | Character(10) | VARCHAR2(10) NOT NULL | Receiver number |
9 | RECV_LN_NBR | Number(5,0) | INTEGER NOT NULL | Receipt Line |
10 | RECV_SHIP_SEQ_NBR | Number(3,0) | SMALLINT NOT NULL | Receiver Shipping Sequence |
11 | DISTRIB_LINE_NUM | Number(5,0) | INTEGER NOT NULL | Distribution Line |
12 | EFF_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Effective Status
A=Active I=Inactive |
13 | CM_ADJ_TYPE | Character(1) | VARCHAR2(1) NOT NULL |
07/99 GMG CN800-9.0:
0=Original Cost 1=Cost Adjustment 2=Value Adjustment |
14 | 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 |
15 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
16 | PROCESS_INSTANCE | Number(10,0) | DECIMAL(10) NOT NULL | Process Instance |
17 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
18 | RECEIVED_QTY | Number(16,4) | DECIMAL(15,4) NOT NULL | Qty Received |
19 | SOURCE_BUS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Source Bus Unit |
20 | STORAGE_AREA | Character(5) | VARCHAR2(5) NOT NULL | Storage Area |
21 | SERIAL_ID | Character(20) | VARCHAR2(20) NOT NULL | Serial ID |
22 | INV_LOT_ID | Character(15) | VARCHAR2(15) NOT NULL | Lot ID |
23 | TRANSACTION_SOURCE | Character(2) | VARCHAR2(2) NOT NULL | Transaction Source |
24 | PRODUCTION_ID | Character(10) | VARCHAR2(10) NOT NULL | Production ID |
25 | CM_UNIT_COST | Signed Number(27,15) | DECIMAL(25,15) NOT NULL | 07/99 GMG CN800-9.0: |
26 | CM_UNIT_COST4 | Signed Number(21,4) | DECIMAL(19,4) NOT NULL | 07/99 GMG CN800-9.0: |