Search Results ato_flag




Overview

The MRP_RHX_SALES_ORDERS_HISTORY_V view is an Oracle Master Scheduling/MRP (MRP) Integration Toolkit object that exposes the historical shipment activity of sales orders relating to planned items. It belongs to the Rapid Implementation (RHX) family of integration views used by Oracle's planned-item data collections, most notably the MRP / ASCP planning data repository and related demand history extracts. The view presents a consolidated, read-only projection that joins sales order headers, sales order lines, shipping details, the planned-items integration view, and customer information to produce a single row per shipped sales order line.

The view is intended for reporting and integration consumers—such as planning engines, custom concurrent programs, and external data warehouses—that require a normalized history of fulfilled demand for items under planning control. Because it derives from the Integration Toolkit and is described in the ETRM metadata as “not implemented in this database,” it may not exist in every environment by default and should be validated against the deployed schema before use.

Underlying Base Objects

The ETRM 12.2.2 metadata records no explicitly documented base objects, but the embedded view text reveals the constituent sources:

  • OE_ORDER_HEADERS_ALL SOH — sales order header information, including order number, order type, and sold-to organization.
  • OE_ORDER_LINES_ALL LINES — sales order line detail, including ordered, cancelled, and shipped quantities, demand class, schedule ship date, and ATO-related flags.
  • WSH_SHIPPING_DETAILS_V WSHSDV — shipping confirmation details, used to derive the shipped quantity and warehouse.
  • RA_CUSTOMERS CUST — customer name lookup.
  • MRP_RHX_PLANNED_ITEMS_V ITEMS — the planned-items integration view, which restricts results to items under MRP planning.

The view is additionally gated by OE_INSTALL.GET_ACTIVE_PRODUCT = 'ONT' to ensure the Oracle Order Management product is active, and it filters to lines with a non-null LINES.SHIPPED_QUANTITY and a positive WSHSDV.SHIPPED_QUANTITY, so only genuinely fulfilled lines are returned.

Key Columns

The view exposes a broad set of columns, several of which are central to the ato_flag search term that led here:

Common Use Cases and Queries

Typical uses include historical demand reporting, ATO configuration analysis, and feeding planning data marts. A query to identify ATO shipment history for a given item and organization:

SELECT SALES_ORDER_NUMBER, ITEM_NUMBER, ORGANIZATION_ID,
      ORDERED_QUANTITY, SHIPPED_QUANTITY, ATO_FLAG, OPTION_FL
FROM  MRP_RHX_SALES_ORDERS_HISTORY_V
WHERE  ITEM_NUMBER = :item
AND    ATO_FLAG = 'Y';

A demand-class summary for planning:

SELECT DEMAND_CLASS, SUM(SHIPPED_QUANTITY) SHIPPED
FROM  MRP_RHX_SALES_ORDERS_HISTORY_V
WHERE  ORGANIZATION_ID = :org
GROUP  BY DEMAND_CLASS;

Because the view is restricted to planned items and confirmed shipments, it is well suited to backward-looking demand analysis rather than open-order book reporting. Verify deployment in each environment, as the metadata marks it not implemented by default.