Search Results p_item_order_by




Overview

APPS.MRP_MRPRPPLO_XMLP_PKG is the generated PL/SQL package body that supports the Oracle E-Business Suite concurrent program and XML Publisher (BI Publisher) report definition known as the Planner's Purchase Order / Planned Order report (report short name MRPRPPLO). The package follows the standard Oracle Reports-to-XML Publisher migration pattern introduced during the 11i-to-R12 transition, in which the original Oracle Reports 6i user exits and SRW built-ins are emulated through PL/SQL functions embedded in an XMLP package body.

The business function of MRPRPPLO is to present planning data — planned orders, requisitions, and purchasing information — filtered and sorted by planner, buyer, category, ABC assignment class, and cutoff date. The package is responsible for resolving runtime parameter values, building dynamic WHERE and ORDER BY fragments used by the underlying report query, and translating user-entered concurrent program parameters into the column and range predicates required by the report data model.

Key Procedures and Functions

The package exposes twenty-two documented procedures and functions. The principal entry points are:

The C_P_* functions primarily echo and normalize concurrent program parameter values for the XML template. Note that several sort branches in BEFOREREPORT are stubbed with NULL, reflecting the profile-option-driven migration state noted in the header.

Tables Accessed

The package reads two documented EBS tables through APPS synonyms:

  • MTL_ABC_ASSIGNMENT_GROUPS — Used to resolve ABC assignment group classifications that drive ABC range filtering in the report.
  • MTL_CATEGORY_SETS — Used to validate and resolve category set information applied when filtering by category ranges.

Additionally, FND_CURRENCIES_VL is queried in BEFOREREPORT to obtain the currency name and precision, and FND_GLOBAL is called for the concurrent request identifier. These are referenced implicitly rather than listed among the primary data tables.

Usage Notes

The package is invoked exclusively by the XML Publisher concurrent program definition MRPRPPLO. It is not called by Oracle Forms or by other PL/SQL packages; the metadata records zero referencing packages. The routine is executed within the concurrent manager's PL/SQL engine during report submission, after the user selects concurrent program parameters such as planner, buyer, category structure, ABC class, sort option, and cutoff date.

Customizations should avoid modifying this generated package body directly, since Oracle may regenerate it during patch application. The user search term "p_item_order_by" aligns with the C_ORDER_BYFORMULA and C_P_SORTFORMULA functions, which are the documented hooks governing ORDER BY behavior — a common customization point for tailoring report sort output.