Search Results validate_flags




Overview

INVPUPI2 is an Oracle E-Business Suite PL/SQL package owned by the APPS schema and classified under the generic API category OTHER. It belongs to the inventory family of packages whose prefix "INV" and suffix pattern "PUPI" (Public Interface) associate it with the item import processing infrastructure. Its role, as evidenced by the single documented function and the tables it references, is to act as a validation layer over data staged for entry into Oracle Inventory's item master through the MTL_SYSTEM_ITEMS_INTERFACE table. In releases 12.1.1 and 12.2.2, this interface table is the standard staging area used by the Item Import concurrent program and by external integration feeds. INVPUPI2 provides a programmatic means of verifying that a batch of interface records carries consistent and valid flag settings before the import is submitted for processing.

Key Procedures and Functions

  • validate_flags — The sole documented routine. This function evaluates the flag columns on staged interface records for a given organization and returns an integer status indicating whether the data passes validation. It accepts an organization identifier as its primary input, along with defaults that support restricting the check to a specific concurrent program, concurrent request, user, and login context. Additional parameters allow the caller to limit the check by organization scope and to target a specific interface set. The function also declares an IN OUT NOCOPY error text parameter, which is populated with a descriptive message when validation fails. Because the routine is a function returning an integer, callers are expected to test the return value rather than rely on exceptions for control flow. The AUTHID CURRENT_USER declaration means the package executes with the privileges of the invoking user, so callers must themselves hold the necessary object privileges or be granted through APPS.

Tables Accessed

  • MTL_SYSTEM_ITEMS_INTERFACE — Referenced through an APPS synonym. This is the staging table into which item records are loaded prior to validation and import into MTL_SYSTEM_ITEMS_B and related tables. INVPUPI2 reads this table to inspect the flag columns and related control attributes that determine how each pending item will be processed. No other tables are documented for this package, indicating a deliberately narrow scope focused on pre-import flag verification. The function does not appear to write to the interface table; its purpose is diagnostic rather than corrective, leaving the caller responsible for fixing rejected records.

Usage Notes

INVPUPI2 is typically invoked from custom integration programs, from extensions to the Item Import flow, or from additional PL/SQL logic that must pre-screen staged data before submitting the standard concurrent program. A caller supplies the organization identifier and, optionally, the concurrent program, request, user, and login identifiers so that validation can be scoped to a particular import run. The xset_id parameter permits validation against a specific interface set when multiple feeds share the same organization. If the function returns a non-success value, the err_text output parameter contains the reason, and the calling process should halt submission and present the message to the operator or log it for reconciliation.

Because the package relies on APPS synonyms and executes under AUTHID CURRENT_USER, custom code should be compiled and run in a context where APPS objects are accessible. The metadata indicates that one other package references INVPUPI2, suggesting that it is also consumed internally by related inventory interface logic. The header comment records a last revision date of 2004, implying the package predates 12.x and has been carried forward largely unchanged; developers should therefore treat its behavior as stable but also confirm applicability against the specific patch level of their 12.1.1 or 12.2.2 environment.