Search Results msc_calendar
Overview
MSC_CALENDAR is an Oracle EBS Advanced Supply Chain Planning (ASCP) package body owned by the APPS schema. It provides the core calendar arithmetic engine used throughout MSC (Material and Supply Chain) planning modules, translating raw calendar definitions into the work-day, offset, and interval calculations that planning engines, ATP routines, and scheduling workbenches require. Rather than storing calendar data itself, this package interrogates the ASCP calendar tables — calendars, assignments, dates, and week-start dates — and returns derived values such as the next work day, previous work day, number of working days between two dates, and date offsets respecting plant and supplier calendars. The package is classified as OTHER (not a public API), meaning it is intended for internal consumption by Oracle's own planning code and, where appropriate, by carefully written custom extensions. Its status is VALID in both 12.1.1 and 12.2.2. Because it focuses purely on calendar logic, MSC_CALENDAR is independent of order or item planning rules; it is a low-level utility layer that many higher-level MSC packages call. Documentation notes it is referenced by 29 other database objects, which underscores its role as a shared dependency within the ASCP code base.
Key Procedures and Functions
The documented package exposes 15 procedures and functions. Among those cataloged:
- NEXT_WORK_DAY / PREV_WORK_DAY — Return the next or previous valid working day for a given calendar, respecting defined non-working periods.
- DATE_OFFSET — Moves a date forward or backward by a specified number of working days on the applicable calendar.
- DAYS_BETWEEN — Computes the number of working days separating two dates on a calendar.
- SELECT_CALENDAR_DEFAULTS — Retrieves default calendar settings (such as the organization or site default) for use when an explicit calendar is not supplied.
- PREV_DELIVERY_CALENDAR_DAY — Determines the prior delivery calendar day, typically used for supplier and receiving logic.
- CALENDAR_NEXT_WORK_DAY / CALENDAR_DAYS_BETWEEN — Variants that operate explicitly against a named calendar code rather than relying on defaults.
- GET_CALENDAR_CODE — Resolves the appropriate calendar code for a given context (organization, supplier, or trading partner).
- THREE_STEP_CAL_OFFSET_DATE — Performs a multi-stage offset calculation, typically combining calendar, shift, and pattern adjustments.
Tables Accessed
MSC_CALENDAR reads (and in some cases manages) the following ASCP tables via APPS synonyms:
- MSC_CALENDARS — Master calendar definitions.
- MSC_CALENDAR_ASSIGNMENTS — Maps calendars to organizations, suppliers, or partners.
- MSC_CALENDAR_DATES — Individual working and non-working dates for each calendar.
- MSC_CAL_WEEK_START_DATES — Week-start reference dates used in week-based calculations.
- MSC_ITEM_SUPPLIERS — Supplier sourcing data needed to resolve supplier calendars.
- MSC_PERIOD_START_DATES — Period boundaries for bucket-based planning.
- MSC_TRADING_PARTNERS — Partner definitions used during calendar resolution.
It also depends on MSC_ATP_PVT, MSC_SCH_WB, FND_MESSAGE, FND_PROFILE, APP_EXCEPTION, and STANDARD/DBMS_STANDARD utilities.
Usage Notes
MSC_CALENDAR is invoked primarily by other MSC packages rather than directly by end users. Planning engines, scheduling workbench logic, and ATP availability routines call it to convert requested dates into valid working days and to count available capacity days. Because it is a package body with no documented public API classification, customizations should call it sparingly and only where the standard planning flow cannot meet a requirement. The package relies on FND_PROFILE for session context (such as organization and user) and on APP_EXCEPTION/FND_MESSAGE for error reporting, so it should be executed within a properly initialized EBS session. Any direct calls should supply valid calendar codes or rely on SELECT_CALENDAR_DEFAULTS to resolve them; otherwise incorrect or null results may propagate into planning output.
-
Lookup Type: MSC_CALENDAR
12.1.1
product: MSC - Advanced Supply Chain Planning , meaning: Calendars with assocations , description: Calendars with association types ,
-
Lookup Type: MSC_CALENDAR
12.2.2
product: MSC - Advanced Supply Chain Planning , meaning: Calendars with assocations , description: Calendars with association types ,
-
PACKAGE BODY: APPS.MSC_CALENDAR
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_CALENDAR, status:VALID,
-
PACKAGE BODY: APPS.MSC_CALENDAR
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_CALENDAR, status:VALID,
-
PACKAGE: APPS.MSC_CALENDAR
12.1.1
owner:APPS, object_type:PACKAGE, object_name:MSC_CALENDAR, status:VALID,
-
PACKAGE: APPS.MSC_CALENDAR
12.2.2
owner:APPS, object_type:PACKAGE, object_name:MSC_CALENDAR, status:VALID,
-
PACKAGE BODY: APPS.MSC_X_PLANNING
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_X_PLANNING, status:VALID,
-
SYNONYM: APPS.MSC_CALENDAR_ASSIGNMENTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSC_CALENDAR_ASSIGNMENTS, status:VALID,
-
SYNONYM: APPS.MSC_CALENDAR_ASSIGNMENTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MSC_CALENDAR_ASSIGNMENTS, status:VALID,
-
PACKAGE BODY: APPS.MSC_REPPERIODS_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_REPPERIODS_PUB, status:VALID,
-
PACKAGE BODY: APPS.MSC_REPPERIODS_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_REPPERIODS_PUB, status:VALID,
-
SYNONYM: APPS.MSC_CALENDARS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSC_CALENDARS, status:VALID,
-
PACKAGE BODY: APPS.MSC_X_CVMI_REPLENISH
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_X_CVMI_REPLENISH, status:VALID,
-
SYNONYM: APPS.MSC_CALENDARS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MSC_CALENDARS, status:VALID,
-
PACKAGE BODY: APPS.MSC_X_CVMI_PLANNING
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_X_CVMI_PLANNING, status:VALID,
-
PACKAGE BODY: APPS.MSC_SNAPSHOT_PK
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_SNAPSHOT_PK, status:VALID,
-
PACKAGE BODY: APPS.MSC_DRP_UTIL
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_DRP_UTIL, status:VALID,
-
PACKAGE BODY: APPS.MSC_SELECT_ALL_FOR_RELEASE_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_SELECT_ALL_FOR_RELEASE_PUB, status:VALID,
-
PACKAGE BODY: APPS.MSC_X_PLANNING
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_X_PLANNING, status:VALID,
-
SYNONYM: APPS.MSC_CAL_WEEK_START_DATES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSC_CAL_WEEK_START_DATES, status:VALID,
-
PACKAGE BODY: APPS.MSC_X_CVMI_PLANNING
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_X_CVMI_PLANNING, status:VALID,
-
PACKAGE BODY: APPS.GMP_HORIZONTAL_PDR_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:GMP_HORIZONTAL_PDR_PKG, status:VALID,
-
SYNONYM: APPS.MSC_PERIOD_START_DATES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MSC_PERIOD_START_DATES, status:VALID,
-
PACKAGE BODY: APPS.MSC_X_REPLENISH
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_X_REPLENISH, status:VALID,
-
PACKAGE BODY: APPS.MSC_X_VMI_UTIL_NEW
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_X_VMI_UTIL_NEW, status:VALID,
-
SYNONYM: APPS.MSC_CAL_WEEK_START_DATES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MSC_CAL_WEEK_START_DATES, status:VALID,
-
PACKAGE BODY: APPS.MSC_SNAPSHOT_PK
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_SNAPSHOT_PK, status:VALID,
-
PACKAGE BODY: APPS.GMP_HORIZONTAL_PDR_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:GMP_HORIZONTAL_PDR_PKG, status:VALID,
-
PACKAGE BODY: APPS.MSC_ATP_FUNC
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_ATP_FUNC, status:VALID,
-
PACKAGE BODY: APPS.MSC_ATP_FUNC
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_ATP_FUNC, status:VALID,
-
PACKAGE BODY: APPS.MSC_PLAN_RELEASE
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_PLAN_RELEASE, status:VALID,
-
PACKAGE BODY: APPS.MSC_REL_PLAN_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_REL_PLAN_PUB, status:VALID,
-
PACKAGE BODY: APPS.MSC_X_CVMI_REPLENISH
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_X_CVMI_REPLENISH, status:VALID,
-
PACKAGE BODY: APPS.MSC_CL_SUPPLY_ODS_LOAD
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_CL_SUPPLY_ODS_LOAD, status:VALID,
-
PACKAGE BODY: APPS.MSC_X_RECEIVE_CAPACITY_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_X_RECEIVE_CAPACITY_PKG, status:VALID,
-
PACKAGE BODY: APPS.MSC_ATP_SUBST
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_ATP_SUBST, status:VALID,
-
PACKAGE BODY: APPS.MSC_SELECT_ALL_FOR_RELEASE_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_SELECT_ALL_FOR_RELEASE_PUB, status:VALID,
-
PACKAGE BODY: APPS.MSC_X_VMI_UTIL_NEW
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_X_VMI_UTIL_NEW, status:VALID,
-
PACKAGE BODY: APPS.MSC_DRP_UTIL
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_DRP_UTIL, status:VALID,
-
PACKAGE: APPS.MSC_ATP_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:MSC_ATP_PVT, status:VALID,
-
PACKAGE BODY: APPS.MSC_SATP_FUNC
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_SATP_FUNC, status:VALID,
-
PACKAGE BODY: APPS.MSC_SCE_PUBLISH_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_SCE_PUBLISH_PKG, status:VALID,
-
PACKAGE BODY: APPS.MSC_SCE_PUBLISH_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_SCE_PUBLISH_PKG, status:VALID,
-
PACKAGE BODY: APPS.MSC_X_RECEIVE_CAPACITY_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_X_RECEIVE_CAPACITY_PKG, status:VALID,
-
PACKAGE BODY: APPS.MSC_CL_SUPPLY_ODS_LOAD
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_CL_SUPPLY_ODS_LOAD, status:VALID,
-
PACKAGE BODY: APPS.MSC_ATP_ALLOC
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_ATP_ALLOC, status:VALID,
-
PACKAGE BODY: APPS.MSC_SATP_FUNC
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_SATP_FUNC, status:VALID,
-
PACKAGE BODY: APPS.MSC_EXP_WF
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_EXP_WF, status:VALID,
-
SYNONYM: APPS.MSC_PERIOD_START_DATES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSC_PERIOD_START_DATES, status:VALID,
-
PACKAGE BODY: APPS.MSC_X_REPLENISH
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_X_REPLENISH, status:VALID,