Results for “check_if_direct_item”
8 results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
CST_EAMCOST_PUB is the public costing API for Oracle Enterprise Asset Management (eAM) within Oracle E-Business Suite releases 12.1.1 and 12.2.2. The package is owned by APPS and is classified as a PUB API, meaning its procedures are intended to be callable from external programs, concurrent managers, and other Oracle EBS modules. Its purpose is to support eAM job and work order costing for Release 11i.6 and later, providing the costing engine that translates costed material and resource transactions into the eAM cost, balance, and rollup structures. The package retrieves the charges of a costed MTL_MATERIAL_TRANSACTIONS row and calls internal update logic to populate the eAM tables. This includes maintenance cost collection, period balance maintenance, asset hierarchy rollups, and direct item costing. The header comment confirms the file revision lineage (CSTPEACB.pls 120.32) and the package constant G_PKG_NAME denoting the package name used for debug and logging. The package exposes 31 documented procedures and functions, and is referenced by 18 other packages, indicating its central role as a shared costing service.
Key Procedures and Functions
- PROCESS_MATCOST — Entry point that processes material transaction costs for a specific costed MMT transaction, then calls Update_eamCost to populate eAM tables.
- PROCESS_RESCOST — Processes resource charges associated with eAM work orders so that resource costs are reflected in eAM cost records.
- UPDATE_EAMCOST — Core procedure that writes or updates the eAM cost records from the charges retrieved by the process procedures.
- INSERTUPDATE_EAMPERBAL — Inserts or updates eAM period balances, the procedure named in the search term and the mechanism that maintains per-period cost accumulations for eAM work orders.
- INSERTUPDATE_ASSETPERBAL — Inserts or updates asset period balances, aggregating eAM costs at the asset level.
- GET_EAMCOSTELEMENT — Returns the eAM cost element applicable to a transaction or cost context.
- GET_MAINTCOSTCAT — Returns the maintenance cost category for the supplied context.
- DELETE_EAMPERBAL — Removes eAM period balance rows, typically during reversal or period maintenance.
- COMPUTE_JOB_ESTIMATE — Computes estimated costs for an eAM job.
- ROLLUP_COST and PURGE_ROLLUP_COST — Build and purge eAM cost rollup data at the asset hierarchy level.
- CHECK_IF_DIRECT_ITEM — Determines whether an item is treated as a direct item for eAM charging.
- PROCESS_DIRECT_ITEM_TXN, COST_DIRECT_ITEM_TXN, and INSERT_DIRECT_ITEM_TXN — Process, cost, and insert direct item transaction charges.
- INSERT_DIRECT_ITEM_DISTR — Inserts distribution lines for direct item charges.
- UPDATE_WIP_PERIOD_BALANCES — Updates WIP period balance records for eAM-related work order activity.
- GET_DIRECT_ITEM_CHARGE_ACCT — Returns the charge account for a direct item transaction.
- VALIDATE_FOR_REESTIMATION — Determines whether prior estimates can be reestimated.
- REDISTRIBUTE_WIP_ACCOUNTS — Redistributes WIP accounting entries following eAM costing changes.
Tables Accessed
The package reads and writes the following tables through APPS synonyms: CSI_ITEM_INSTANCES and MTL_SERIAL_NUMBERS (asset instance and serial identification for work orders), BOM_DEPARTMENTS, BOM_DEPARTMENT_RESOURCES, and BOM_RESOURCES (department and resource definitions used for resource costing), CST_CAT_ELE_EXP_ASSOCS and CST_COST_ELEMENTS (cost element mapping), CST_DEPARTMENT_OVERHEADS (overhead rate application), CST_EAM_ASSET_PER_BALANCES and CST_EAM_BALANCE_BY_ACCOUNTS (asset period balances and account-level balances), CST_EAM_DIRECT_ITEMS_TEMP (temporary staging of direct item charges), CST_EAM_HIERARCHY_SNAPSHOT (asset hierarchy for rollup), CST_EAM_ROLLUP_COSTS and CST_EAM_ROLLUP_TEMP (rollup results and working data), and CST_EAM_WO_ESTIMATE_DETAILS (work order estimate detail).
Usage Notes
CST_EAMCOST_PUB is invoked primarily by the eAM costing engine when costed MTL_MATERIAL_TRANSACTIONS rows and resource charges are processed. Because it is classified as a PUB API, it may be called from other Oracle packages — 18 packages are documented as referencing it — as well as from concurrent programs that build rollups, compute job estimates, or purge rollup results. Custom code should call the public procedures rather than the underlying private routines, supply the standard FND_API parameter set (p_api_version, p_init_msg_list, p_commit, p_validation_level, and the x_return_status, x_msg_count, x_msg_data out parameters), and check x_return_status before committing. INSERTUPDATE_EAMPERBAL should not be invoked directly outside the supported processing flow, because it depends on the context established by Process_MatCost or Process_ResCost. Debug output is controlled by the MRP_DEBUG profile value, and logging follows FND_LOG conventions.