Search Results inv_invtrshs_xmlp_pkg
Overview
The APPS.INV_INVTRSHS_XMLP_PKG package body is the server-side PL/SQL implementation that supports the Oracle EBS Inventory transaction history report, internally identified by the concurrent program short name INVTRSHS. The "_XMLP_PKG" suffix indicates that the package is bound to an XML Publisher (BI Publisher) report definition, and the package constitutes the data model logic that the XML Publisher engine invokes at runtime. In EBS 12.1.1 and 12.2.2, the package resides in the APPS schema with a status of VALID and is classified as an OTHER API in the ETRM repository.
Functionally, the package assembles the reporting data set for the Inventory Transaction Historical Summary report. It resolves report parameters, constructs the dynamic WHERE clauses and cursor definitions that drive the main query, computes derived quantities, and controls the optional notification behavior. The package does not expose a general-purpose business API; it is a report-specific data model construct executed by the XML Publisher concurrent program framework.
Key Procedures and Functions
The ETRM metadata documents 20 procedures and functions. They fall into distinct categories:
- BEFOREREPORT and AFTERREPORT — standard XML Publisher data model entry and exit points, invoked before and after the report query is executed.
- BEFOREPFORM and AFTERPFORM — parameter form initialization and cleanup logic that executes around the concurrent program parameter form.
- SEND — the routine responsible for dispatching the report output or related notifications.
- Formula (lexical) functions — a set of
*FORMULAfunctions that return SQL text or bind values substituted into the report query at runtime. These include C_FROM_CATFORMULA, C_CAT_WHEREFORMULA, and C_ORDER_BYFORMULA (category join, category restriction, and sort ordering), C_HDR_ITEM_PADFORMULA, C_POS_ITEM_PADFORMULA, and C_CAT_PADFORMULA (padding for header, position, and category values). - Category-related formulas — C_CAT_SET_NAMEFORMULA and C_GROUP_OPTION_NAMEFORMULA resolve category set and grouping option names.
- Quantity formulas — C_ONHAND_WHEREFORMULA, C_ONHAND_ONLY_YNFORMULA, C_NET_QTY_HDRFORMULA, and C_NET_QTY_POSFORMULA build the on-hand restriction and compute net quantity at header and position level.
- Notification formulas — C_NOTIFICATIONFORMULA and C_SEND_NOTIFICATIONS_YNFORMULA resolve the notification text and the send-notification flag.
- C_ITEMPLANNER_WHEREFORMULA — builds the restriction that limits the report to item planner criteria.
The naming convention confirms that these are dynamic SQL fragment generators rather than computational APIs. No parameter lists are documented.
Tables Accessed
The ETRM dependency list identifies the following objects referenced by the package:
- MTL_CATEGORY_SETS — supplies category set definitions used to resolve category set names and to build the category WHERE and FROM clauses.
- MTL_SECONDARY_INVENTORIES — provides subinventory context, including subinventory-level attributes used in the report restrictions and parameter defaults.
- MTL_ITEM_QUANTITIES_VIEW — the on-hand quantity view read to compute net quantities and on-hand-only filtering.
- MFG_LOOKUPS — supplies lookup meanings for report parameter values.
- FND_GLOBAL — provides the runtime user identity and concurrent request context (user_id, responsibility, org) used throughout the formulas.
- INV_SHORTCHECKEXEC_PVT and STANDARD — invoked by the SEND routine for output/notification handling.
The package is listed as not referenced by any other database object, confirming it is a terminal report artifact.
Usage Notes
This package is invoked exclusively by the XML Publisher concurrent program architecture. When the INVTRSHS report is submitted, the framework calls BEFOREREPORT to initialize state, calls BEFOREPFORM/AFTERPFORM around parameter entry, evaluates the C_*FORMULA functions to assemble the report SQL, executes the query against MTL_ITEM_QUANTITIES_VIEW with restrictions supplied by MTL_CATEGORY_SETS and MTL_SECONDARY_INVENTORIES, and finally calls SEND for output/notification handling before AFTERREPORT. Because no other database object depends on it, the package should be modified only through the standard report data model definition and only by authorized developers. Direct custom invocation is not supported; any customer extension should target a copy of the report definition rather than the seeded package body in the APPS schema. In 12.2.2 the object retains the same name, owner, and VALID status as in 12.1.1, with the XML Publisher binding unchanged.
-
PACKAGE BODY: APPS.INV_INVTRSHS_XMLP_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:INV_INVTRSHS_XMLP_PKG, status:VALID,
-
PACKAGE: APPS.INV_INVTRSHS_XMLP_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:INV_INVTRSHS_XMLP_PKG, status:VALID,
-
PACKAGE: APPS.INV_INVTRSHS_XMLP_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:INV_INVTRSHS_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.INV_INVTRSHS_XMLP_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:INV_INVTRSHS_XMLP_PKG, status:VALID,
-
PACKAGE: APPS.INV_INVTRSHS_XMLP_PKG
12.1.1
-
PACKAGE: APPS.INV_INVTRSHS_XMLP_PKG
12.2.2
-
PACKAGE: APPS.INV_SHORTCHECKEXEC_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:INV_SHORTCHECKEXEC_PVT, status:VALID,
-
PACKAGE: APPS.INV_SHORTCHECKEXEC_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:INV_SHORTCHECKEXEC_PVT, status:VALID,
-
VIEW: APPS.MTL_ITEM_QUANTITIES_VIEW
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:INV.MTL_ITEM_QUANTITIES_VIEW, object_name:MTL_ITEM_QUANTITIES_VIEW, status:VALID,
-
VIEW: APPS.MTL_ITEM_QUANTITIES_VIEW
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:INV.MTL_ITEM_QUANTITIES_VIEW, object_name:MTL_ITEM_QUANTITIES_VIEW, status:VALID,
-
SYNONYM: APPS.MTL_CATEGORY_SETS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MTL_CATEGORY_SETS, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
12.1.1 DBA Data
12.1.1
-
SYNONYM: APPS.MTL_CATEGORY_SETS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MTL_CATEGORY_SETS, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
PACKAGE BODY: APPS.INV_INVTRSHS_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.INV_INVTRSHS_XMLP_PKG
12.2.2
-
APPS.INV_INVTRSHS_XMLP_PKG dependencies on INV_INVTRSHS_XMLP_PKG
12.1.1
-
APPS.INV_INVTRSHS_XMLP_PKG dependencies on INV_INVTRSHS_XMLP_PKG
12.2.2
-
SYNONYM: APPS.MTL_SECONDARY_INVENTORIES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MTL_SECONDARY_INVENTORIES, status:VALID,
-
SYNONYM: APPS.MTL_SECONDARY_INVENTORIES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MTL_SECONDARY_INVENTORIES, status:VALID,
-
VIEW: APPS.MFG_LOOKUPS
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:INV.MFG_LOOKUPS, object_name:MFG_LOOKUPS, status:VALID,
-
VIEW: APPS.MFG_LOOKUPS
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:INV.MFG_LOOKUPS, object_name:MFG_LOOKUPS, status:VALID,
-
eTRM - INV Tables and Views
12.1.1
-
PACKAGE: APPS.FND_GLOBAL
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_GLOBAL, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.1.1 DBA Data
12.1.1
-
PACKAGE: APPS.FND_GLOBAL
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_GLOBAL, status:VALID,
-
eTRM - INV Tables and Views
12.1.1
-
PACKAGE: SYS.STANDARD
12.1.1
owner:SYS, object_type:PACKAGE, object_name:STANDARD, status:VALID,