CM_WC_NEGAV_OVW(SQL View) |
Index Back |
---|---|
Current Weighted Average Cost10/10/02 lee: add cm_book and cost_element, as keys. Note: this view selects the latest perpavg records, for an item, bu, and book. The records have book and cost element granularity. 12/02 tw: also used by sql objects in CM_COSTING and IN_PURGE. |
SELECT A.BUSINESS_UNIT , CM_BOOK , INV_ITEM_ID , COST_ELEMENT , DT_TIMESTAMP , SEQ_NBR , CM_UNIT_COST , CURRENCY_CD , CM_COST_SOURCE , B.OPRID FROM PS_CM_WC_NEGAVG_VW A , PS_SEC_BU_OPR B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Default Value: OPR_DEF_TBL_FS.BUSINESS_UNIT Prompt Table: SP_BUIN_NONVW |
2 | CM_BOOK | Character(10) | VARCHAR2(10) NOT NULL |
Cost Book
Prompt Table: CM_BU_BOOK_VW1 |
3 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL |
Item ID
Prompt Table: BU_ITM_INV_VW |
4 | COST_ELEMENT | Character(4) | VARCHAR2(4) NOT NULL |
Cost Element
Prompt Table: %EDITTABLE |
5 | DT_TIMESTAMP | DateTime(26) | TIMESTAMP | Date Timestamp |
6 | SEQ_NBR | Number(15,0) | DECIMAL(15) NOT NULL | Sequence Number |
7 | CM_UNIT_COST | Signed Number(27,15) | DECIMAL(25,15) NOT NULL | 07/99 GMG CN800-9.0: |
8 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
9 | 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 |
10 | OPRID | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). |