Results for “tl_material_in”
4 results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
APPS.CST_EAMCOST_PUB is the public costing API for Oracle Enterprise Asset Management (eAM) maintenance work orders within Oracle E-Business Suite. Its stated purpose, per the package header, is to support eAM job costing introduced in Release 11i.6. The package bridges the Oracle Cost Management (CST) and Work in Process (WIP) transaction streams and the eAM-specific cost tables, ensuring that material and resource charges consumed against maintenance work orders are translated into the corresponding eAM cost elements, departments, and period balances.
Two distinct transaction families are handled. Material charges originate from costed rows in MTL_MATERIAL_TRANSACTIONS, while resource charges originate from WIP_TRANSACTIONS grouped by a WIP group identifier. In both cases the package reads already-costed transactions, derives the applicable eAM cost element and department type, and writes the derived results into the eAM balances and rollup structures used for maintenance cost reporting, work order estimates, and asset cost accumulation. Because the object is classified as a public (PUB) API and is referenced by eighteen other packages, it functions as a foundational interface rather than an end-user-facing program.
Key Procedures and Functions
The externally documented entry points are PROCESS_MATCOST and PROCESS_RESCOST. PROCESS_MATCOST retrieves the charges associated with a single costed MTL_MATERIAL_TRANSACTIONS row and invokes the internal Update_eamCost routine to populate the eAM tables. The caller must supply a transaction that has already been costed successfully, along with standard API parameters such as API version, initialization of the message list, commit flag, validation level, user, request, program, and login identifiers, plus the transaction identifier.
PROCESS_RESCOST processes all resource transactions in WIP_TRANSACTIONS for a specified group identifier. For each transaction it determines the correct eAM cost element and department type before populating the eAM tables. The calling program must guarantee that every transaction in the group has been costed successfully prior to invocation.
Supporting documented routines include UPDATE_EAMCOST, which performs the actual writes to eAM cost structures; INSERTUPDATE_EAMPERBAL and INSERTUPDATE_ASSETPERBAL, which maintain period balances at the work order and asset levels respectively; DELETE_EAMPERBAL, which removes period balance rows; and GET_EAMCOSTELEMENT and GET_MAINTCOSTCAT, which resolve the cost element and maintenance cost category for a given transaction context. Rollup activity is handled by ROLLUP_COST, COMPUTE_JOB_ESTIMATE, and PURGE_ROLLUP_COST. Direct item processing is covered by CHECK_IF_DIRECT_ITEM, PROCESS_DIRECT_ITEM_TXN, COST_DIRECT_ITEM_TXN, INSERT_DIRECT_ITEM_DISTR, GET_DIRECT_ITEM_CHARGE_ACCT, and INSERT_DIRECT_ITEM_TXN, which together identify direct-charge items, cost them, and create their distribution lines. Additional routines include UPDATE_WIP_PERIOD_BALANCES, VALIDATE_FOR_REESTIMATION, and REDISTRIBUTE_WIP_ACCOUNTS.
Tables Accessed
The package resolves asset and resource context through CSI_ITEM_INSTANCES and MTL_SERIAL_NUMBERS, and department and resource definition through BOM_DEPARTMENTS, BOM_DEPARTMENT_RESOURCES, and BOM_RESOURCES. Cost element mapping is obtained from CST_COST_ELEMENTS and CST_CAT_ELE_EXP_ASSOCS, with departmental overhead applied via CST_DEPARTMENT_OVERHEADS. Results are persisted in CST_EAM_ASSET_PER_BALANCES, CST_EAM_BALANCE_BY_ACCOUNTS, and CST_EAM_WO_ESTIMATE_DETAILS, while rollup processing uses CST_EAM_ROLLUP_COSTS, CST_EAM_ROLLUP_TEMP, and CST_EAM_HIERARCHY_SNAPSHOT. Direct-charge item processing uses the temporary table CST_EAM_DIRECT_ITEMS_TEMP.
Usage Notes
CST_EAMCOST_PUB is normally invoked programmatically rather than from a form. Its typical callers are the Cost Management transaction costing engine, eAM work order completion and resource charging flows, and concurrent programs that perform eAM period balance maintenance, job estimate computation, and cost rollups. Custom code that must post eAM costs should call PROCESS_MATCOST for individually costed material transactions and PROCESS_RESCOST for a fully costed WIP group, honoring the standard FND_API conventions for message list initialization, commit control, and return status checking.