Search Results msc_ws_aps_data_services
Overview
MSC_WS_APS_DATA_SERVICES is an PL/SQL package owned by APPS that serves as the web-service data access layer for Oracle Advanced Planning and Scheduling (APS) within the Oracle E-Business Suite. Its principal business function is to move planning data between external or intermediate staging structures and the core Advanced Supply Chain Planning (ASCP) repository tables that live in the MSC schema. Specifically, the package brokers the upload and download of demand forecasts, safety stock levels, and planned supply, translating caller-supplied planning context — user, responsibility, security group, language, and scenario — into rows stored in the planning tables used by the MSC engine.
The package header documents a deliberate scheme of "output levels" that constrain how planning data is aggregated or disaggregated. Output levels fall into four categories: Item, Organization, Customer, and Demand Class. Item is mandatory and admits either Item or Product Family. Organization, Customer, and Demand Class are optional, and only one member of each category may be specified. The Customer category alone allows four distinct members: Customer Ship To Site, Customer, Customer Zone, and Zone. This design ensures uploaded or downloaded planning data lands at a legal planning level.
Key Procedures and Functions
The package exposes five documented procedures and functions, each mapped to a specific APS data movement task:
- UPLOAD_FORECAST — Inserts or updates demand forecast rows into the denormalized scenario entries table (msd_dp_scn_entries_denorm), driven by caller-supplied scenario, output levels, and a forecast list. A PurgeAllFlag of Y causes all existing rows for the reserved owner 5555555 and the target scenario to be deleted before any insert or update.
- DOWNLOAD_FORECAST — Retrieves forecast data from the planning repository for the requested scenario and output levels, supplying it back to the requesting APS or external consumer.
- UPLOAD_SAFETY_STOCKS — Writes safety stock quantities into the planning safety stock structures for the designated items, organizations, and scenario context.
- DOWNLOAD_SAFETY_STOCKS — Reads the currently stored safety stock values for use by downstream planning, reporting, or integration consumers.
- UPLOAD_PLANNED_SUPPLY — Loads planned supply records into the planning supply tables, allowing external supply plans to be incorporated into the ASCP planning cycle.
Tables Accessed
The package operates across a broad slice of the MSC planning schema through APPS synonyms. MSC_DEMAND_CLASSES, MSC_PLAN_ORGANIZATIONS, MSC_ITEMS, MSC_SYSTEM_ITEMS, and MSC_PLAN_BUCKETS supply the dimensions and calendar context used to validate and stamp output levels. MSC_SAFETY_STOCKS and MSC_SUPPLIES, together with the MSC_SUPPLIES_S interface table, are the primary read/write targets for safety stock and planned supply movement. MSC_PLANS, MSC_APPS_INSTANCES, MSC_REGIONS, MSC_PROJECTS, MSC_PROJECT_TASKS, and MSC_TP_ID_LID provide scenario, instance, and hierarchical reference data. FND_LOOKUP_VALUES supplies valid lookup codes, including those governing output-level validation.
Usage Notes
MSC_WS_APS_DATA_SERVICES is invoked by the APS web services layer rather than being called directly from Oracle Forms. External planning applications, partner integrations, and the Advanced Planning integration flows invoke its procedures during forecast loading and safety stock synchronization. The header identifies responsibility, application, and security group parameters, confirming the package honors Oracle EBS function security on every call. Because the package depends on AUTHID CURRENT_USER and performs direct DML against MSC planning tables, custom code should invoke it only through supported service entry points and should honor the mandatory Item output level and the single-member rule for optional categories.
-
TYPE: APPS.MSCCHAR255ARR
12.1.1
owner:APPS, object_type:TYPE, object_name:MSCCHAR255ARR, status:VALID,
-
PACKAGE: APPS.MSC_WS_APS_DATA_SERVICES
12.1.1
owner:APPS, object_type:PACKAGE, object_name:MSC_WS_APS_DATA_SERVICES, status:VALID,
-
TYPE: APPS.MSCFORECASTTBL
12.1.1
owner:APPS, object_type:TYPE, object_name:MSCFORECASTTBL, status:VALID,
-
TYPE: APPS.MSCFORECASTTBL
12.2.2
owner:APPS, object_type:TYPE, object_name:MSCFORECASTTBL, status:VALID,
-
TYPE: APPS.MSCSAFETYSTOCKTBL
12.1.1
owner:APPS, object_type:TYPE, object_name:MSCSAFETYSTOCKTBL, status:VALID,
-
TYPE: APPS.MSCSAFETYSTOCKTBL
12.2.2
owner:APPS, object_type:TYPE, object_name:MSCSAFETYSTOCKTBL, status:VALID,
-
TYPE: APPS.MSCNUMBERARR
12.1.1
owner:APPS, object_type:TYPE, object_name:MSCNUMBERARR, status:VALID,
-
PACKAGE: APPS.MSC_WS_APS_DATA_SERVICES
12.2.2
owner:APPS, object_type:PACKAGE, object_name:MSC_WS_APS_DATA_SERVICES, status:VALID,
-
TYPE: APPS.MSCPLANNEDSUPPLYTBL
12.2.2
owner:APPS, object_type:TYPE, object_name:MSCPLANNEDSUPPLYTBL, status:VALID,
-
TYPE: APPS.MSCCUSTZONETBL
12.2.2
owner:APPS, object_type:TYPE, object_name:MSCCUSTZONETBL, status:VALID,
-
TYPE: APPS.MSCPLANNEDSUPPLYTBL
12.1.1
owner:APPS, object_type:TYPE, object_name:MSCPLANNEDSUPPLYTBL, status:VALID,
-
TYPE: APPS.MSCCUSTZONETBL
12.1.1
owner:APPS, object_type:TYPE, object_name:MSCCUSTZONETBL, status:VALID,
-
TYPE: APPS.MSCCHAR255ARR
12.2.2
owner:APPS, object_type:TYPE, object_name:MSCCHAR255ARR, status:VALID,
-
PACKAGE BODY: APPS.MSC_WS_APS_DATA_SERVICES
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_WS_APS_DATA_SERVICES, status:VALID,
-
TYPE: APPS.MSCNUMBERARR
12.2.2
owner:APPS, object_type:TYPE, object_name:MSCNUMBERARR, status:VALID,
-
PACKAGE BODY: APPS.MSC_WS_APS_DATA_SERVICES
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:MSC_WS_APS_DATA_SERVICES, status:VALID,
-
SYNONYM: APPS.MSD_DP_SCN_ENTRIES_DENORM
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MSD_DP_SCN_ENTRIES_DENORM, status:VALID,
-
SYNONYM: APPS.MSC_DEMAND_CLASSES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MSC_DEMAND_CLASSES, status:VALID,
-
TYPE: APPS.MSCSAFETYSTOCKREC
12.1.1
owner:APPS, object_type:TYPE, object_name:MSCSAFETYSTOCKREC, status:VALID,
-
TYPE: APPS.MSCFORECASTREC
12.1.1
owner:APPS, object_type:TYPE, object_name:MSCFORECASTREC, status:VALID,
-
SYNONYM: APPS.MSC_PROJECTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MSC_PROJECTS, status:VALID,
-
SYNONYM: APPS.MSC_SUPPLIES_S
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MSC_SUPPLIES_S, status:VALID,
-
SYNONYM: APPS.MSD_DP_SCN_ENTRIES_DENORM
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSD_DP_SCN_ENTRIES_DENORM, status:VALID,
-
SYNONYM: APPS.MSC_DEMAND_CLASSES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSC_DEMAND_CLASSES, status:VALID,
-
PACKAGE: APPS.MSC_WS_COMMON
12.1.1
owner:APPS, object_type:PACKAGE, object_name:MSC_WS_COMMON, status:VALID,
-
SYNONYM: APPS.MSD_DP_SCENARIO_OUTPUT_LEVELS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSD_DP_SCENARIO_OUTPUT_LEVELS, status:VALID,
-
TYPE: APPS.MSCCUSTZONEREC
12.1.1
owner:APPS, object_type:TYPE, object_name:MSCCUSTZONEREC, status:VALID,
-
SYNONYM: APPS.MSC_PROJECT_TASKS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSC_PROJECT_TASKS, status:VALID,
-
TYPE: APPS.MSCCUSTZONEREC
12.2.2
owner:APPS, object_type:TYPE, object_name:MSCCUSTZONEREC, status:VALID,
-
SYNONYM: APPS.MSC_PROJECT_TASKS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MSC_PROJECT_TASKS, status:VALID,
-
SYNONYM: APPS.MSD_DP_SCENARIOS_S
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MSD_DP_SCENARIOS_S, status:VALID,
-
SYNONYM: APPS.MSD_DP_SCENARIOS_S
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSD_DP_SCENARIOS_S, status:VALID,
-
SYNONYM: APPS.MSC_PROJECTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSC_PROJECTS, status:VALID,
-
TYPE: APPS.MSCPLANNEDSUPPLYREC
12.1.1
owner:APPS, object_type:TYPE, object_name:MSCPLANNEDSUPPLYREC, status:VALID,
-
TYPE: APPS.MSCPLANNEDSUPPLYREC
12.2.2
owner:APPS, object_type:TYPE, object_name:MSCPLANNEDSUPPLYREC, status:VALID,
-
SYNONYM: APPS.MSC_REGIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MSC_REGIONS, status:VALID,
-
TYPE: APPS.MSCFORECASTREC
12.2.2
owner:APPS, object_type:TYPE, object_name:MSCFORECASTREC, status:VALID,
-
SYNONYM: APPS.MSD_DP_SCENARIO_OUTPUT_LEVELS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MSD_DP_SCENARIO_OUTPUT_LEVELS, status:VALID,
-
SYNONYM: APPS.MSC_REGIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSC_REGIONS, status:VALID,
-
SYNONYM: APPS.MSC_SUPPLIES_S
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSC_SUPPLIES_S, status:VALID,
-
TYPE: APPS.MSCSAFETYSTOCKREC
12.2.2
owner:APPS, object_type:TYPE, object_name:MSCSAFETYSTOCKREC, status:VALID,
-
PACKAGE: APPS.MSC_WS_COMMON
12.2.2
owner:APPS, object_type:PACKAGE, object_name:MSC_WS_COMMON, status:VALID,
-
SYNONYM: APPS.MSC_SAFETY_STOCKS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSC_SAFETY_STOCKS, status:VALID,
-
SYNONYM: APPS.MSC_SAFETY_STOCKS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MSC_SAFETY_STOCKS, status:VALID,
-
SYNONYM: APPS.MSC_TP_ID_LID
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MSC_TP_ID_LID, status:VALID,
-
SYNONYM: APPS.MSC_PLAN_BUCKETS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSC_PLAN_BUCKETS, status:VALID,
-
SYNONYM: APPS.MSC_TP_SITE_ID_LID
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MSC_TP_SITE_ID_LID, status:VALID,
-
SYNONYM: APPS.MSD_DP_SCENARIOS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MSD_DP_SCENARIOS, status:VALID,
-
SYNONYM: APPS.MSC_TP_ID_LID
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSC_TP_ID_LID, status:VALID,
-
SYNONYM: APPS.MSD_DP_SCENARIOS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MSD_DP_SCENARIOS, status:VALID,