Search Results c_source_type3formula




Overview

INV_INVTRSTS_XMLP_PKG is the generated PL/SQL package that backs the Oracle Inventory transaction source usage report, a concurrent program published through the XML Publisher (BI Publisher) engine in Oracle E-Business Suite 12.1.1 and 12.2.2. The package belongs to the APPS schema and is compiled with AUTHID CURRENT_USER, meaning that all unqualified object references resolve against the privileges of the invoking user rather than the package owner. Its primary role is to accept the report's runtime parameters from the concurrent manager, construct the dynamic SQL fragments that drive the report's query, and supply the derived column and WHERE-clause expressions that the XML Publisher data template consumes when rendering the report output.

The report addresses the inventory planner's or cost accountant's need to analyze how material transactions are attributed to transaction source types across organizations, subinventories, categories, and date ranges. The package is tightly coupled to the Oracle Reports-to-XML Publisher migration pattern used throughout the Inventory product family, where the original Reports user exits and formula columns were re-implemented as PL/SQL functions in a package of this naming convention.

Key Procedures and Functions

The package exposes fourteen documented functions and one trigger-style procedure alongside numerous package-level variables. The functions divide into three functional groupings.

The user's search term c_source_type3formula corresponds directly to the third source type expression function, which returns a VARCHAR2 fragment used to derive the third transaction source type column in the report layout.

Tables Accessed

Two tables are documented as referenced through APPS synonyms. MTL_CATEGORY_SETS is read to resolve category set identifiers, names, and structure information required by the category flexfield formulas (C_CAT_SET_NAMEFORMULA and the structural variables P_CAT_SET_ID and P_CAT_STRUCT_NUM). MTL_TXN_SOURCE_TYPES is read to resolve transaction source type codes and descriptions, supplying the lookup values that the C_SOURCE_TYPEnFORMULA expressions compare against. Additional inventory tables are referenced indirectly through the dynamic SQL assembled by the formula functions, but only these two are documented as direct dependencies.

Usage Notes

INV_INVTRSTS_XMLP_PKG is invoked exclusively by the XML Publisher concurrent program for the transaction source usage report. Parameters such as P_ORG_ID, P_DATE_LO, P_DATE_HI, P_CAT_LO, P_CAT_HI, P_ITEM_LO, P_ITEM_HI, P_SORT_ID, and the P_STYPEn values are populated by the concurrent manager from the report's parameter form before BEFOREREPORT fires. No other package in the ETRM inventory references this package, so direct invocation from custom code is not expected and should be avoided, since the package's contract is the XML Publisher data template rather than a public API. Customizations are more safely applied at the data template or report definition level. The header comment indicates the package was last revised in 2008 and is marked "noship," consistent with its role as a supporting artifact of a seeded report rather than a shippable standalone API.