CM_CTC_AVG2_VW(SQL View) |
Index Back |
---|---|
CTC Avg Cost View by OprIDUsed in Cost Tolerance Control Inquiry |
SELECT OPRID , BUSINESS_UNIT , CM_BOOK , INV_ITEM_ID , %Round(%DecDiv(SUM(%DecMult(CM_UNIT_COST,RECEIVED_QTY)),SUM(RECEIVED_QTY)) ,4) FROM PS_CM_CTC_ACT2_TMP GROUP BY OPRID , BUSINESS_UNIT , CM_BOOK , INV_ITEM_ID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | OPRID | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). |
2 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
3 | CM_BOOK | Character(10) | VARCHAR2(10) NOT NULL | Cost Book |
4 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |
5 | CM_AVG_UNIT_COST | Number(15,4) | DECIMAL(14,4) NOT NULL | Sample Average Unit Cost |