How to find item cost


How to find item cost

Another common issue when writing queries is getting an item cost.
Here are the APIs to use in queries:

For discrete manufacturing:

cst_cost_api.get_item_cost(1,inventory_item_id, organization_id,NULL,NULL)

here is a sample query:

select segment1 item,
cst_cost_api.get_item_cost(1,inventory_item_id, organization_id,NULL,NULL) cost
from mtl_system_items_b

If you are in an OPM organization the above won't work and instead you need to call

select msi.segment1 item,
GMF_CMCOMMON.get_cmpt_cost( inventory_item_id, organization_id, sysdatecmm.cost_type_id ,0) cost
from mtl_system_items_b msi, CM_MTHD_MST cmm
where cmm.cost_mthd_desc='Standard Cost'

Comments

  1. This comment has been removed by the author.

    ReplyDelete
  2. Great, interested in any similar information about APIs that make queries much easier.

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. hi --

    you have any idea to get the historical cost of finished good item

    ReplyDelete

Post a Comment

Popular posts from this blog

Oracle Purchasing Module Step by Step in R12

Sub Ledger Accounting SLA (Complete Functional Information)

Difference between ATO and PTO in oracle apps