Search Results p_incl_cancel_lines




Overview

RLM_RLMDMSIQ_XMLP_PKG is an Oracle E-Business Suite PL/SQL package body that supports the Report Management subsystem for Release Management (RLM). The package serves as the backend implementation for an Oracle Reports executable driven by a concurrent program, providing the data-cursor logic, formula columns, and before-report initialization needed to produce a Demand Supply Inquiry (DMSIQ) report. The naming convention (XMLP_PKG) indicates that the report is executed through the Oracle XML Publisher engine and that the package is auto-generated as a report trigger container within the APPS schema. Its primary purpose is to resolve organizational context, ship-to and ship-from trading partner attributes, customer identity, item information, and cumulative forecast scheduling data so that the runtime report layout can render meaningful values.

Key Procedures and Functions

Tables Accessed

The package reads Oracle Trade Management and inventory tables to resolve report values. HZ_CUST_ACCOUNTS and HZ_PARTIES provide customer account and party identity. HZ_CUST_ACCT_SITES, HZ_CUST_SITE_USES, and HZ_CUST_SITE_USES_ALL supply ship-to site usage and location code information, with the cursor filtering on SITE_USE_CODE = 'SHIP_TO' and STATUS = 'A'. HZ_LOCATIONS and HZ_PARTY_SITES provide address and party-site linkage. MTL_CUSTOMER_ITEMS and MTL_SYSTEM_ITEMS_KFV resolve customer item numbers and concatenated item flexfield values. ORG_ORGANIZATION_DEFINITIONS supplies the ship-from organization code, and RLM_CUST_ITEM_CUM_KEYS underpins the cumulative quantity key structure referenced by the CUM_QTY and CUM_START_DATE formulas.

Usage Notes

This package is invoked automatically when the associated concurrent program runs the RLM Demand Supply Inquiry report. It is not called directly by other packages, as indicated by a dependency count of zero. Administrators and developers inspecting the parameter p_incl_cancel_lines use this package to understand whether canceled order or schedule lines are included in the report's driving query. The BEFOREREPORT logic also confirms that the report honors multi-org security via MO_GLOBAL policy context, so callers must supply the correct operating unit parameters for accurate results. Custom code should not call the formula functions directly; instead, extend the underlying report definition if alternate presentation is required.