Search Results mrp_cl_function
Overview
MRP_CL_FUNCTION is a value-added PL/SQL package in the APPS schema that serves as a shared utility library for Oracle EBS planning, costing, and supply-chain modules. Its name reflects its role as a common ("CL" / common library) function repository consumed by Material Requirements Planning (MRP), Advanced Supply Chain Planning (ASCP), and related release and rescheduling programs. Rather than exposing a single business transaction, the package aggregates a wide range of cost retrieval, quantity conversion, operation sequence resolution, and supplier and sourcing lookup routines. The package is classified as OTHER in the ETRM metadata, indicating that it is an internal, non-public API used primarily by Oracle's own seeded programs rather than by external integrations.
The dependency trace confirms that MRP_CL_FUNCTION sits at the center of a set of planning packages: it is referenced by MRP_AP_REL_PLAN_PUB, MRP_CL_REFRESH_SNAPSHOT, MRP_PO_RESCHEDULE, and MSC_SRP_RELEASE, and it calls FND_PROFILE itself. This makes it a foundational helper layer for plan release, snapshot refresh, purchase-order rescheduling, and supplier release scheduling.
Key Procedures and Functions
The ETRM documentation lists 46 documented procedures and functions. The most instructive include:
- APPS_INITIALIZE — Standard APPS schema initialization routine that sets the session context required before other package calls.
- DEFAULT_ABC_ASSIGNMENT_GROUP — Returns the default ABC assignment group used in inventory classification during planning.
- MRP_ITEM_COST, MRP_RESOURCE_COST, MRP_ITEM_LIST_PRICE, MRP_ITEM_SUPP_PRICE — Cost and price retrieval routines that surface item cost, resource cost, list price, and supplier price for planning and sourcing calculations.
- MRP_REV_CUM_YIELD, MRP_REV_CUM_YIELD_UNRELEASED, MRP_JD_REV_CUM_YIELD — Return cumulative yield values used in flow and discrete manufacturing to reflect scrap and yield across operation sequences (including unreleased jobs and JD (job) context).
- MRP_DAY_UOM_QTY, GET_PRIMARY_QUANTITY — Quantity conversion helpers that normalize quantities to the primary unit of measure and to a per-day basis.
- GET_RESOURCE_OVERHEAD — Retrieves resource-level overhead information used in cost rollups.
- GET_CURRENT_OP_SEQ_NUM and its variants (GET_CURRENT_JD_OP_SEQ_NUM, GET_CURRENT_JOB_OP_SEQ_NUM, GET_CURRENT_RTNG_OP_SEQ_NUM) — Resolve the current operation sequence number for a work order, job, or routing, keeping operation sequencing consistent across planning contexts.
- GETWFUSER — Returns the workflow user identity associated with a process.
- GET_ROUTING_SEQ_ID — Returns the routing sequence identifier for a given routing.
- GET_PO_ORIG_NEED_BY_DATE, GET_PO_ORIG_QUANTITY — Return the original need-by date and original quantity on a purchase order line, supporting rescheduling and date-shift analysis.
Tables Accessed
The package reads from a broad set of tables through APPS synonyms. Costing access includes CST_ITEM_COSTS, CST_COST_TYPES, CST_DEPARTMENT_OVERHEADS, and CST_RESOURCE_OVERHEADS. Manufacturing and routing access includes BOM_OPERATION_SEQUENCES, EAM_OP_COMPLETION_TXNS, AHL_WORKORDERS, AHL_WORKORDER_OPERATIONS, and CSI_ITEM_INSTANCES. Sourcing and supplier access includes AP_SUPPLIER_SITES_ALL. Reference data access includes FND_DOCUMENTS_LONG_TEXT, FND_PRODUCT_INSTALLATIONS, FND_RESPONSIBILITY, FND_USER, and HR_ALL_ORGANIZATION_UNITS_TL. Together these tables supply the cost, yield, routing, and identity information the routines return to their callers.
Usage Notes
MRP_CL_FUNCTION is not intended to be called directly by end users. It is invoked internally by seeded planning packages — most notably during plan release (MRP_AP_REL_PLAN_PUB, MSC_SRP_RELEASE), snapshot refresh (MRP_CL_REFRESH_SNAPSHOT), and purchase order rescheduling (MRP_PO_RESCHEDULE). Custom code that needs identical cost, yield, quantity, or operation-sequence logic may call these procedures, but doing so requires the APPS schema context established by APPS_INITIALIZE. Because the package is undocumented as a public API, direct dependencies should be treated as unsupported and validated against both 12.1.1 and 12.2.2 before reuse.
-
PACKAGE: APPS.MRP_CL_FUNCTION
12.1.1
owner:APPS, object_type:PACKAGE, object_name:MRP_CL_FUNCTION, status:VALID,
-
PACKAGE: APPS.MRP_CL_FUNCTION
12.2.2
owner:APPS, object_type:PACKAGE, object_name:MRP_CL_FUNCTION, status:VALID,
-
PACKAGE BODY: APPS.MRP_CL_FUNCTION
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MRP_CL_FUNCTION, status:VALID,
-
PACKAGE BODY: APPS.MRP_CL_FUNCTION
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MRP_CL_FUNCTION, status:VALID,
-
SYNONYM: APPS.MSC_SR_ZN_AGGR_IBUC
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSC_SR_ZN_AGGR_IBUC, status:VALID,
-
SYNONYM: APPS.MRP_WO_SUB_COMP
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MRP_WO_SUB_COMP, status:VALID,
-
SYNONYM: APPS.MSC_IB_CONTRACTS_TEMP
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSC_IB_CONTRACTS_TEMP, status:VALID,
-
SYNONYM: APPS.MRP_REGION_SITES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MRP_REGION_SITES, status:VALID,
-
PACKAGE: APPS.AHL_MATERIALS_GRP
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AHL_MATERIALS_GRP, status:VALID,
-
SYNONYM: APPS.MRP_PARAMETERS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MRP_PARAMETERS, status:VALID,
-
SYNONYM: APPS.MRP_PARAMETERS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MRP_PARAMETERS, status:VALID,
-
SYNONYM: APPS.WSM_CO_PRODUCTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:WSM_CO_PRODUCTS, status:VALID,
-
PACKAGE: APPS.CSI_JAVA_INTERFACE_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:CSI_JAVA_INTERFACE_PKG, status:VALID,
-
SYNONYM: APPS.MRP_REGION_SITES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MRP_REGION_SITES, status:VALID,
-
SYNONYM: APPS.WSM_CO_PRODUCTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:WSM_CO_PRODUCTS, status:VALID,
-
PACKAGE: APPS.MRP_CL_REFRESH_SNAPSHOT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:MRP_CL_REFRESH_SNAPSHOT, status:VALID,
-
SYNONYM: APPS.WSH_ZONE_REGIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:WSH_ZONE_REGIONS, status:VALID,
-
SYNONYM: APPS.EAM_OP_COMPLETION_TXNS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:EAM_OP_COMPLETION_TXNS, status:VALID,
-
SYNONYM: APPS.WSH_REGION_LOCATIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:WSH_REGION_LOCATIONS, status:VALID,
-
PACKAGE: APPS.MRP_CL_REFRESH_SNAPSHOT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:MRP_CL_REFRESH_SNAPSHOT, status:VALID,
-
SYNONYM: APPS.CST_RESOURCE_OVERHEADS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CST_RESOURCE_OVERHEADS, status:VALID,
-
SYNONYM: APPS.CST_DEPARTMENT_OVERHEADS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CST_DEPARTMENT_OVERHEADS, status:VALID,
-
SYNONYM: APPS.CST_DEPARTMENT_OVERHEADS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CST_DEPARTMENT_OVERHEADS, status:VALID,
-
SYNONYM: APPS.WSH_REGIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:WSH_REGIONS, status:VALID,
-
SYNONYM: APPS.WSH_REGIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:WSH_REGIONS, status:VALID,
-
PACKAGE: APPS.WSH_REGIONS_SEARCH_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:WSH_REGIONS_SEARCH_PKG, status:VALID,
-
PACKAGE: APPS.WSH_REGIONS_SEARCH_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:WSH_REGIONS_SEARCH_PKG, status:VALID,
-
SYNONYM: APPS.PO_ASL_DOCUMENTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PO_ASL_DOCUMENTS, status:VALID,
-
PACKAGE BODY: APPS.MRP_AP_REL_PLAN_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MRP_AP_REL_PLAN_PUB, status:VALID,
-
SYNONYM: APPS.CST_RESOURCE_OVERHEADS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CST_RESOURCE_OVERHEADS, status:VALID,
-
SYNONYM: APPS.AHL_WORKORDER_OPERATIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AHL_WORKORDER_OPERATIONS, status:VALID,
-
PACKAGE BODY: APPS.MRP_CL_REFRESH_SNAPSHOT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MRP_CL_REFRESH_SNAPSHOT, status:VALID,
-
SYNONYM: APPS.FND_DOCUMENTS_LONG_TEXT
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FND_DOCUMENTS_LONG_TEXT, status:VALID,
-
PACKAGE BODY: APPS.MSC_SRP_RELEASE
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_SRP_RELEASE, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
PACKAGE BODY: APPS.MRP_CL_REFRESH_SNAPSHOT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MRP_CL_REFRESH_SNAPSHOT, status:VALID,
-
PACKAGE BODY: APPS.MRP_PO_RESCHEDULE
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MRP_PO_RESCHEDULE, status:VALID,
-
PACKAGE BODY: APPS.MRP_PO_RESCHEDULE
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MRP_PO_RESCHEDULE, status:VALID,
-
PACKAGE BODY: APPS.MSC_SRP_RELEASE
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_SRP_RELEASE, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
PACKAGE: APPS.WSMPUTIL
12.2.2
owner:APPS, object_type:PACKAGE, object_name:WSMPUTIL, status:VALID,
-
PACKAGE BODY: APPS.MRP_AP_REL_PLAN_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MRP_AP_REL_PLAN_PUB, status:VALID,
-
SYNONYM: APPS.PO_ASL_DOCUMENTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_ASL_DOCUMENTS, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
SYNONYM: APPS.OE_SETS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OE_SETS, status:VALID,
-
PACKAGE: APPS.WSMPUTIL
12.1.1
owner:APPS, object_type:PACKAGE, object_name:WSMPUTIL, status:VALID,
-
SYNONYM: APPS.OE_SETS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OE_SETS, status:VALID,
-
PACKAGE: APPS.OKC_TIME_UTIL_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_TIME_UTIL_PUB, status:VALID,
-
SYNONYM: APPS.CST_ITEM_COSTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CST_ITEM_COSTS, status:VALID,