Search Results om_reports_common_pkg




Overview

OM_REPORTS_COMMON_PKG is an Oracle E-Business Suite PL/SQL package owned by the APPS schema. It is classified in the ETRM metadata as an "OTHER" API, meaning it is an internal, supporting utility rather than a formally published public API. Its status is documented as VALID in the Oracle EBS 12.1.1 and 12.2.2 releases. The package exists to centralize shared logic that is required by multiple Oracle Order Management reporting and workflow-related programs. Rather than duplicating common data retrieval, concatenation, and validation routines across individual report packages, OM_REPORTS_COMMON_PKG provides a single, reusable library of helper procedures and functions. This role is confirmed by the dependency metadata, which shows the package is referenced by ONT_OEXDERUL_XMLP_PKG, an XML Publisher report package within Order Management. In practice, the package serves as a shared runtime service layer for report and workflow processing, isolating frequently needed queries against order, item, credit, and workflow tables into callable units that report packages invoke during execution.

Key Procedures and Functions

The documented metadata lists eight procedures and functions. Descriptions follow from their naming conventions and the documented tables they operate against; parameter lists are not published and are therefore not stated.

  • OEXOEORS_GET_WORKFLOW_DATE: Retrieves workflow-related date information, most likely the activity or status date associated with an order or line workflow process, drawing on the WF_ITEM_ACTIVITY_STATUSES and WF_PROCESS_ACTIVITIES tables.
  • OEXOESOS_LINE_AMOUNT_TOTAL: Calculates or returns a total line amount for sales order lines, presumably aggregating values held in OE_ORDER_LINES_ALL.
  • OEXCRDIS_GET_LOT_SERIAL_CTL: Returns lot and serial control information for an item, reading item attribute data from MTL_SYSTEM_ITEMS to determine how lot and serial number control is configured.
  • DF_VALIDATE_FLEX: Validates a descriptive flexfield segment or combination, supporting flexfield validation logic within report processing.
  • DF_SET_CONTEXT: Establishes the descriptive flexfield context, ensuring the correct structure and segment definitions are applied before flexfield values are read or validated.
  • DF_SET_COLUMN_VALUE: Assigns a value to a specific flexfield column, used to populate or resolve individual flexfield segment values.
  • DF_CONCATENATED_VALUES: Produces a concatenated representation of flexfield values, typically for display on a printed or published report.
  • DF_CONCATENATED_DESCRIPTIONS: Produces a concatenated description string for flexfield values, complementing the value-concatenation routine for report output.

Tables Accessed

The package references five documented tables through APPS synonyms. MTL_SYSTEM_ITEMS supplies item master attribute data, particularly lot and serial control flags used by OEXCRDIS_GET_LOT_SERIAL_CTL. OE_ORDER_LINES_ALL provides sales order line detail, serving line amount calculations. OE_SALES_CREDITS supplies sales credit information, supporting reporting of credit allocations. WF_ITEM_ACTIVITY_STATUSES holds the per-item workflow activity state and timestamps, and WF_PROCESS_ACTIVITIES defines the workflow activities themselves; together these underpin workflow date retrieval. The procedures largely read from these tables, with writes, if any, limited to the workflow and flexfield operations.

Usage Notes

OM_REPORTS_COMMON_PKG is an internal dependency rather than a customer-facing API. ETRM shows it is referenced by one other package, ONT_OEXDERUL_XMLP_PKG, indicating it is invoked at runtime by Order Management report packages, in particular XML Publisher reports executed as concurrent programs. The OEX-prefixed routines align with Order Management report naming, while the DF-prefixed routines serve descriptive flexfield handling wherever flexfield values must be validated and formatted for output. Custom code or custom reports that require the same order, item, workflow, or flexfield logic may call these routines, but doing so is not recommended for long-term support because the package is not a published interface and its behavior is governed by Oracle's internal implementation. Standard practice is to rely on it only through Oracle-supplied report definitions and to avoid direct customization dependencies on it.