Results for “yes_purge”

34 results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

APPS.MSC_WS_DRP is a PL/SQL package body belonging to the Oracle Advanced Supply Chain Planning (ASCP) application within Oracle E-Business Suite 12.1.1 and 12.2.2. The package name incorporates the "DRP" suffix, denoting Distribution Requirements Planning functionality, and the "WS" prefix, indicating that its procedures are exposed as web-service-accessible entry points. The body wraps core DRP planning operations behind a public API layer, allowing external callers — including the ASCP planning UI, concurrent programs, and integration clients — to launch DRP batch runs, release planned orders, and configure plan options for a given plan.

The package maintains package-level global variables (g_IGlbDmdSchTbl, g_ILocDmdSchTbl, g_ILocSupSchTbl, g_ErrorCode) that cache global demand schedules, local demand schedules, and local supply schedules in memory during batch execution, reducing repeated database round trips. The header comment identifies MSCWDRPB.pls version 120.10 as the source control revision.

Key Procedures and Functions

Six documented procedures comprise the public API surface of this package:

  • LAUNCH_DRP_BATCH — Initiates a DRP planning batch run for a specified plan. It first validates the user and responsibility via MSC_WS_COMMON.VALIDATE_USER_RESP, then validates the plan by reading compile designator and organization details. It accepts control flags covering snapshot launch, planner launch, anchor date, current-version archiving, 24x7 ATP enablement, and reschedule release. Error tracking numbers (such as 1010 and 1020) are assigned incrementally to pinpoint validation failures.
  • LAUNCH_DRP_BATCH_PUBLIC — The externally exposed wrapper for batch launch, providing the standard public entry point.
  • RELEASE_DRP — Performs the release of planned DRP orders and schedules into the execution or upstream planning system. This is the procedure most closely associated with the search term "release_drp".
  • RELEASE_DRP_PUBLIC — The public wrapper for the DRP release operation.
  • SET_DRP_PLAN_OPTIONS — Applies or updates configuration options for a DRP plan, such as ATP behavior, sourcing rules, and planning parameters.
  • SET_DRP_PLAN_OPTIONS_PUBLIC — The public wrapper for setting DRP plan options.

Tables Accessed

Based on the documented metadata, the package reads and references the following tables through APPS synonyms:

  • MSC_PLANS — Stores plan definitions; supplies compile designator, organization ID, and source instance ID during validation.
  • MSC_DESIGNATORS — Provides plan-level attributes including the inventory ATP flag and production indicator.
  • MSC_CALENDAR_DATES — Supports calendar and date-range logic used in planning horizons and anchor dates.
  • MSC_ITEM_SOURCING — Supplies sourcing rules that drive DRP distribution logic.
  • MSC_TRADING_PARTNERS — Provides partner information for inter-org and supplier-related distribution flows.
  • DUAL — Used for single-row validation and initialization queries.
  • PLITBLM — A temporary/work table used during planning batch processing.

Usage Notes

MSC_WS_DRP is typically invoked through the ASCP Plan launch interface, concurrent programs that submit DRP plan runs, and custom integrations calling the _PUBLIC procedures. The LAUNCH_DRP_BATCH procedure returns a process ID and status to the caller, enabling asynchronous monitoring of the batch. The release functionality tied to RELEASE_DRP is used when a planner approves and releases distribution planned orders. Because the procedures validate user and responsibility context, callers must supply valid FND user and responsibility identifiers. The package is not referenced by any other documented package, so it functions as a top-level API layer for DRP web-service operations.