Search Results demand_priority
Overview
The APPS.MSC_SET_DEMAND_PRIORITY package body is a component of the Oracle Advanced Supply Chain Planning (ASCP) schema within Oracle E-Business Suite. Its principal business function is to establish and assign a numerical priority ranking to demand records processed by the planning engine. In the context of supply chain planning, demands that are not honored equally must be sequenced according to business-defined rules. This package codifies that sequencing logic by translating a configured scheduling rule into an ordered set of demand identifiers, so that constrained and unconstrained plans can consume scarce supply according to the organization's stated priorities.
The package derives its ordering criteria dynamically from the MSC_SCHEDULING_RULES table and constructs sort expressions at runtime based on the meaning of the selected rule. This design allows administrators to change priority behavior through configuration rather than code changes.
Key Procedures and Functions
Two program units are documented for this package.
- MSC_DEMAND_PRIORITY — The core function. It accepts a plan identifier and returns a numeric demand priority value. Internally it deletes any residual rows in the demand sort working set, retrieves the default demand priority rule from
MSC_SCHEDULING_RULES(whereDEFAULT_FLAGis'Y'), and then builds a set of ordering criteria. The criteria are derived by decoding the rule meaning into SQL order expressions covering gross margin, sales order priority, schedule date, promise date, and request date. The package declares a constantLOWEST_PRIORITYof 100000, used as a fallback for demands with no explicit priority, and declares cursor and record types (RefCurType,t_DemandSort) to support the dynamic SQL assembly. - GET_INTERPLANT_DEMAND_PRIORITY — A companion function that returns the priority applicable to interplant (internal transfer) demand. It supports the requirement that transfer demands between organizations carry a distinct priority treatment from external sales or forecast demand.
Tables Accessed
The package reads and writes the following documented tables through APPS synonyms:
MSC_DEMANDS— The primary source of demand records; individualDEMAND_IDvalues are fetched and ordered. Columns such asORIGINATION_TYPE,USING_REQUIREMENT_QUANTITY,SELLING_PRICE,SALES_ORDER_PRIORITY,FORECAST_PRIORITY,PROMISE_DATE,REQUEST_DATE, andUSING_ASSEMBLY_DEMAND_DATEdrive the sort expressions.MSC_SCHEDULING_RULES— Holds the configured scheduling rules; the package selectsRULE_IDfor the rule flagged as the default.MSC_PLANS— Provides plan context for the supplied plan identifier.MSC_FULL_PEGGING— Supports demand-to-supply peg linkage used in priority resolution.MSC_SUPPLIES— Supplies against which prioritized demands are matched.PLITBLM— The EBS concurrent manager table, referenced in supporting operations.
Usage Notes
This package is internal to the ASCP planning engine and is not intended as a public API. It is invoked during plan execution when demands must be sequenced, typically from the plan generation and demand scheduling flows rather than directly from Oracle Forms. No other packages are documented as referencing it, indicating a localized invocation point within the planning runtime. Because the package depends on the default flag in MSC_SCHEDULING_RULES, at least one scheduling rule must be defined as default for the function to return meaningful results. Custom code should not modify this package; organizations seeking different prioritization behavior should adjust the scheduling rule definitions instead.
-
PACKAGE BODY: APPS.MSC_SET_DEMAND_PRIORITY
12.1.1
-
PACKAGE BODY: APPS.MSC_SET_DEMAND_PRIORITY
12.2.2
-
APPS.MSC_SET_DEMAND_PRIORITY SQL Statements
12.2.2
-
APPS.MSC_SET_DEMAND_PRIORITY SQL Statements
12.1.1
-
VIEW: MSC.MSC_SALES_ORDERS#
12.2.2
-
View: MSC_FLP_SUPPLY_DEMAND_V2
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_FLP_SUPPLY_DEMAND_V2, object_name:MSC_FLP_SUPPLY_DEMAND_V2, status:VALID, product: MSC - Advanced Supply Chain Planning , implementation_dba_data: APPS.MSC_FLP_SUPPLY_DEMAND_V2 ,
-
VIEW: APPS.MSC_FLP_SUPPLY_DEMAND_V2
12.1.1
-
VIEW: APPS.MSC_FLP_END_DEMAND2_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_FLP_END_DEMAND2_V, object_name:MSC_FLP_END_DEMAND2_V, status:VALID,
-
VIEW: APPS.MSC_FLP_END_DEMAND_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_FLP_END_DEMAND_V, object_name:MSC_FLP_END_DEMAND_V, status:VALID,
-
View: MSC_FLP_SUPPLY_DEMAND_V2
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_FLP_SUPPLY_DEMAND_V2, object_name:MSC_FLP_SUPPLY_DEMAND_V2, status:VALID, product: MSC - Advanced Supply Chain Planning , implementation_dba_data: APPS.MSC_FLP_SUPPLY_DEMAND_V2 ,
-
VIEW: MSC.MSC_ST_SALES_ORDERS#
12.2.2
-
VIEW: APPS.MSC_FLP_SUPPLY_DEMAND_V2
12.2.2
-
VIEW: APPS.MSC_ALLOCATION_LINES_V
12.1.1
owner:APPS, object_type:VIEW, object_name:MSC_ALLOCATION_LINES_V, status:VALID,
-
VIEW: APPS.MSC_FLP_END_DEMAND2_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_FLP_END_DEMAND2_V, object_name:MSC_FLP_END_DEMAND2_V, status:VALID,
-
VIEW: APPS.MSC_ALLOCATION_LINES_V
12.2.2
owner:APPS, object_type:VIEW, object_name:MSC_ALLOCATION_LINES_V, status:VALID,
-
VIEW: APPS.MSC_FLP_END_DEMAND_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_FLP_END_DEMAND_V, object_name:MSC_FLP_END_DEMAND_V, status:VALID,
-
VIEW: APPS.MSC_EXC_DETAIL_ITEM_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_EXC_DETAIL_ITEM_V, object_name:MSC_EXC_DETAIL_ITEM_V, status:VALID,
-
VIEW: APPS.MSC_EXC_DETAIL_ITEM_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_EXC_DETAIL_ITEM_V, object_name:MSC_EXC_DETAIL_ITEM_V, status:VALID,
-
View: MSC_FLP_SUPPLY_DEMAND_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_FLP_SUPPLY_DEMAND_V, object_name:MSC_FLP_SUPPLY_DEMAND_V, status:VALID, product: MSC - Advanced Supply Chain Planning , implementation_dba_data: APPS.MSC_FLP_SUPPLY_DEMAND_V ,
-
View: MSC_FLP_SUPPLY_DEMAND_ATP_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_FLP_SUPPLY_DEMAND_ATP_V, object_name:MSC_FLP_SUPPLY_DEMAND_ATP_V, status:VALID, product: MSC - Advanced Supply Chain Planning , implementation_dba_data: APPS.MSC_FLP_SUPPLY_DEMAND_ATP_V ,
-
View: MSC_FLP_SUPPLY_DEMAND_ATP_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_FLP_SUPPLY_DEMAND_ATP_V, object_name:MSC_FLP_SUPPLY_DEMAND_ATP_V, status:VALID, product: MSC - Advanced Supply Chain Planning , implementation_dba_data: APPS.MSC_FLP_SUPPLY_DEMAND_ATP_V ,
-
View: MSC_FLP_SUPPLY_DEMAND_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_FLP_SUPPLY_DEMAND_V, object_name:MSC_FLP_SUPPLY_DEMAND_V, status:VALID, product: MSC - Advanced Supply Chain Planning , implementation_dba_data: APPS.MSC_FLP_SUPPLY_DEMAND_V ,
-
VIEW: APPS.MSC_ALLOCATION_DETAILS_V
12.1.1
owner:APPS, object_type:VIEW, object_name:MSC_ALLOCATION_DETAILS_V, status:VALID,
-
VIEW: APPS.MSC_FLP_SUPPLY_DEMAND_V
12.1.1
-
VIEW: APPS.MSC_FLP_SUPPLY_DEMAND_ATP_V
12.2.2
-
VIEW: APPS.MSC_FLP_SUPPLY_DEMAND_ATP_V
12.1.1
-
VIEW: APPS.MSC_ALLOCATION_DETAILS_V
12.2.2
owner:APPS, object_type:VIEW, object_name:MSC_ALLOCATION_DETAILS_V, status:VALID,
-
TABLE: MSC.MSC_TEMP_SALES_ORDERS
12.1.1
owner:MSC, object_type:TABLE, fnd_design_data:MSC.MSC_TEMP_SALES_ORDERS, object_name:MSC_TEMP_SALES_ORDERS, status:VALID,
-
VIEW: APPS.MSC_NET_EXC_DETAIL_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_NET_EXC_DETAIL_V, object_name:MSC_NET_EXC_DETAIL_V, status:VALID,
-
VIEW: APPS.MSC_FLP_SUPPLY_DEMAND_V
12.2.2
-
VIEW: APPS.MSC_FLP_SUPPLY_DEMAND_V2
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_FLP_SUPPLY_DEMAND_V2, object_name:MSC_FLP_SUPPLY_DEMAND_V2, status:VALID,
-
TABLE: MSC.MSC_TEMP_SALES_ORDERS
12.2.2
owner:MSC, object_type:TABLE, fnd_design_data:MSC.MSC_TEMP_SALES_ORDERS, object_name:MSC_TEMP_SALES_ORDERS, status:VALID,
-
VIEW: APPS.MSC_NET_EXC_DETAIL_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_NET_EXC_DETAIL_V, object_name:MSC_NET_EXC_DETAIL_V, status:VALID,
-
VIEW: APPS.MSC_FLP_SUPPLY_DEMAND_ATP_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_FLP_SUPPLY_DEMAND_ATP_V, object_name:MSC_FLP_SUPPLY_DEMAND_ATP_V, status:VALID,
-
VIEW: MSC.MSC_DEMANDS#
12.2.2
-
VIEW: MSC.MSC_SALES_ORDERS#
12.2.2
owner:MSC, object_type:VIEW, object_name:MSC_SALES_ORDERS#, status:VALID,
-
View: MSC_FLP_END_DEMAND2_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_FLP_END_DEMAND2_V, object_name:MSC_FLP_END_DEMAND2_V, status:VALID, product: MSC - Advanced Supply Chain Planning , implementation_dba_data: APPS.MSC_FLP_END_DEMAND2_V ,
-
VIEW: APPS.MSC_FLP_SUPPLY_DEMAND_V2
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_FLP_SUPPLY_DEMAND_V2, object_name:MSC_FLP_SUPPLY_DEMAND_V2, status:VALID,
-
VIEW: APPS.MSC_FLP_SUPPLY_DEMAND_ATP_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_FLP_SUPPLY_DEMAND_ATP_V, object_name:MSC_FLP_SUPPLY_DEMAND_ATP_V, status:VALID,
-
VIEW: APPS.MSC_FLP_SUPPLY_DEMAND_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_FLP_SUPPLY_DEMAND_V, object_name:MSC_FLP_SUPPLY_DEMAND_V, status:VALID,
-
View: MSC_FLP_END_DEMAND2_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_FLP_END_DEMAND2_V, object_name:MSC_FLP_END_DEMAND2_V, status:VALID, product: MSC - Advanced Supply Chain Planning , implementation_dba_data: APPS.MSC_FLP_END_DEMAND2_V ,
-
VIEW: MSC.MSC_ST_SALES_ORDERS#
12.2.2
owner:MSC, object_type:VIEW, object_name:MSC_ST_SALES_ORDERS#, status:VALID,
-
VIEW: APPS.MSC_FLP_SUPPLY_DEMAND_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_FLP_SUPPLY_DEMAND_V, object_name:MSC_FLP_SUPPLY_DEMAND_V, status:VALID,
-
View: MSC_EXCEPTION_DETAILS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_EXCEPTION_DETAILS_V, object_name:MSC_EXCEPTION_DETAILS_V, status:VALID, product: MSC - Advanced Supply Chain Planning , description: this view picks up all the valid exception details , implementation_dba_data: APPS.MSC_EXCEPTION_DETAILS_V ,
-
View: MSC_EXCEPTION_DETAILS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:MSC.MSC_EXCEPTION_DETAILS_V, object_name:MSC_EXCEPTION_DETAILS_V, status:VALID, product: MSC - Advanced Supply Chain Planning , description: this view picks up all the valid exception details , implementation_dba_data: APPS.MSC_EXCEPTION_DETAILS_V ,
-
Lookup Type: MSC_WRKSH_RSLT_ORDER
12.2.2
product: MSC - Advanced Supply Chain Planning , meaning: Worksheet Result Order , description: Field Prompts for Worksheet ,
-
Lookup Type: MSC_WRKSH_RSLT_DEMAND
12.2.2
product: MSC - Advanced Supply Chain Planning , meaning: Worksheet Result Demand , description: Field Prompts for Worksheet ,
-
VIEW: APPS.MSC_FLP_ONHAND_V
12.2.2
-
VIEW: APPS.MSC_FLP_DEMAND_SUPPLY_V2
12.2.2
-
VIEW: APPS.MSC_FLP_ONHAND_V
12.1.1