Query Costs shown in Review Item Costs — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Query Costs shown in Review Item Costs

edited Jul 1, 2025 11:58PM in Costing 2 comments

Summary:

Query Costs shown in Review Item Costs

Content (please ensure you mask any confidential information):

I need to get Item costs as shown in the 'Review Item Costs ' UI. This includes inventory items that doesn't currently have any onhands available. I put together the below query, using tables CST_TRANSACTIONS, CST_TRANSACTION_COSTS and CST_VAL_UNIT_COMBINATIONS

SELECT * FROM (

SELECT CST.INVENTORY_ITEM_ID, COMB.SUBINVENTORY_CODE, TRANS.UNIT_COST, CST.COST_DATE,ROW_NUMBER() OVER (PARTITION BY CST.INVENTORY_ITEM_ID, COMB.SUBINVENTORY_CODE ORDER BY CST.INVENTORY_ITEM_ID, CST.COST_DATE DESC) rownum1

FROM cst_transactions CST, CST_TRANSACTION_COSTS TRANS, CST_VAL_UNIT_COMBINATIONS COMB

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!