Results for “purch_order_id”

10 results




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

Overview

MSC_ST_SUPPLIES is a staging table in the MSC schema, owned by Oracle Advanced Supply Chain Planning (ASCP). It serves as the transient landing zone through which the collection program validates, transforms, and processes supply data before that data is promoted to the permanent planning table MSC_SUPPLIES. In Oracle EBS 12.1.1 and 12.2.2, ASCP relies on a large family of MSC_ST_* staging tables; each one mirrors a corresponding MSC_* planning table and absorbs raw source records harvested from WIP, Purchasing, Inventory, Order Management, and other source modules. Because supply records are among the most frequently collected planning entities, MSC_ST_SUPPLIES is central to keeping the planner's supply picture current.

The table is extremely wide, carrying 248 documented columns in the 12.2.2 physical schema. Its design deliberately conflates several purposes: source keys and descriptive attributes captured from the originating application, planning-time attributes computed or defaulted by the collection program, implementation/feedback columns used when planned supplies are released back to execution, and error-handling columns populated when validation fails. Records typically carry a PROCESS_FLAG that the collection program reads to determine whether a row is ready to be processed, is in error, or has already been transferred. The heuristic Data Vault classification mined from the foreign-key structure is standalone. As a modeling suggestion, this reflects that MSC_ST_SUPPLIES behaves primarily as a staging/landing satellite rather than as a hub or link; its identity is dominated by the planning keys (PLAN_ID, TRANSACTION_ID) rather than by a single durable business key, and its foreign keys to reference entities are descriptive enrichments rather than true relationship definitions.

Key Information Stored

Although the table documents 248 columns, the following subset is most significant for understanding and querying it:

The documented foreign keys are SCHEDULE_GROUP_ID → WIP_SCHEDULE_GROUPS, COMPANY_ID → PN_COMPANIES_ALL, and ITEM_TYPE_ID → CZ_ITEM_TYPES. No unique index is documented in the provided metadata, so the primary-key designation should be confirmed against the live database; the standalone classification suggests identity is managed by the collection program rather than by a constraint-enforced natural key.

Common Use Cases and Queries

Typical scenarios include troubleshooting why a supply did not appear in an ASCP plan, auditing a collection run, and purging stale staging rows. A common pattern is to isolate rows that failed validation:

  • SELECT transaction_id, inventory_item_id, organization_id, error_text FROM msc_st_supplies WHERE process_flag = 1 AND plan_id = :p_plan_id;
  • Querying a reschedule recommendation: SELECT order_number, old_order_quantity, new_order_quantity, old_order_placement_date, new_order_placement_date FROM msc_st_supplies WHERE reschedule_flag = 'Y';
  • Joining by procurement context: SELECT s.order_number, s.quantity_in_process, p.po_header_id FROM msc_st_supplies s JOIN po_headers_all p ON s.purch_order_id = p.po_header_id;

Reporting use cases include reconciling firm supplies against source purchase orders, measuring scrapped versus completed quantities, and monitoring implementation feedback where planned supplies convert into executable jobs or releases.

Related Objects

  • MSC_SUPPLIES — the permanent planning table for which MSC_ST_SUPPLIES is the staging predecessor; the collection program validates rows and inserts them here.
  • MSC_ST_PLANNED_ORDERS and other MSC_ST_* siblings — parallel staging tables processed in the same collection flow.
  • WIP_SCHEDULE_GROUPS — referenced via SCHEDULE_GROUP_ID.
  • PN_COMPANIES_ALL — referenced via COMPANY_ID.
  • CZ_ITEM_TYPES — referenced via ITEM_TYPE_ID.
  • PO_HEADERS_ALL, PO_LINES_ALL, PO_LINE_LOCATIONS_ALL — procurement source entities joined through PURCH_ORDER_ID, PO_LINE_ID, and PO_LINE_LOCATION_ID.
  • WIP_ENTITIES — joined through WIP_ENTITY_ID for work-order feedback.
  • MTL_SYSTEM_ITEMS_B and HR_ORGANIZATION_UNITS — the master references for inventory items and organizations.