Search Results validate_orgs




Overview

INV_COPY_ORGANIZATION_REPORT is an Oracle EBS Inventory (INV) package owned by the APPS schema. Its purpose is to generate the data required for the Copy Organization Report, a utility used when an organization's setup is copied from a model (source) organization to a new (destination) organization. Because organization copying can fail or produce incomplete setups when required entities are absent in the model organization, this package performs validation of the source and destination organizations and reports discrepancies for the key manufacturing and inventory entities.

The package is classified as OTHER in the ETRM metadata, reflecting that it is not a public open interface or standard API but a supporting report utility. The header comment shows its scope explicitly: it generates data for the Copy Org Report. Successive bug fixes expanded its coverage — Receiving_Subinv_Exist was added for bug 3550415, clob_to_varchar for bug 3683490, Get_Err_Wip_Acc_Classes for R12 WIP accounting class support, and Get_Err_StdOperations for validating standard operations created for a new organization against those in the model organization. The package is compiled and present in both 12.1.1 and 12.2.2, with the source revision 120.1.12000000.2.

Notably, the type declarations that once defined an entity record structure were commented out as no longer required, indicating the package evolved toward a collection of discrete validation functions rather than a single generic entity framework.

Key Procedures and Functions

The documented interface exposes 33 procedures and functions. The central entry point is GENERATE_REPORT_DATA, which assembles the report output. GET_UNIQUE_LIST returns a de-duplicated collection of values used in reporting. VALIDATE_ORGS, VALIDATE_LOCS, and VALIDATE_ENTITIES perform the top-level checks of organizations, locations, and entity definitions.

The bulk of the interface consists of entity-specific error retrieval functions, each of which identifies and returns setup elements missing or mismatched in the copied organization:

These functions do not raise business errors in the traditional sense; they return rows describing entities that failed to copy or were found to be inconsistent, which the report then presents to the user.

Tables Accessed

The package reads from the BOM family of tables through APPS synonyms, which is consistent with its focus on manufacturing setup validation. Documented tables include BOM_DEPARTMENTS, BOM_DEPARTMENT_CLASSES, BOM_DEPARTMENT_RESOURCES, BOM_RESOURCES, BOM_OPERATION_RESOURCES, BOM_STD_OP_RESOURCES, and BOM_STD_SUB_OP_RESOURCES for department and resource checks; BOM_STANDARD_OPERATIONS for standard operation validation; BOM_OPERATIONAL_ROUTINGS, BOM_OPERATION_SEQUENCES, and BOM_COMPONENT_OPERATIONS for routing and operation structure checks; BOM_STRUCTURES_B, BOM_ALTERNATE_DESIGNATORS, and BOM_REFERENCE_DESIGNATORS for bill of material structure and designator checks; and BOM_PARAMETERS for organization-level BOM parameters. The package is documented as referenced by zero other packages, so these tables are accessed only through direct SQL within its own functions.

Usage Notes

INV_COPY_ORGANIZATION_REPORT is normally invoked by a concurrent program or report submission tied to the organization copy process in Oracle Inventory. Its validation functions can also be called directly from custom code when an implementation needs to pre-check the model organization before copying, or to diagnose a partially completed copy. Because the package is not a formal open interface, callers should treat its signatures as internal and expect changes across patch levels; the documented R12-era additions for WIP accounting classes and standard operations illustrate that evolution. All execution occurs in the APPS schema with standard EBS security context, and results should be interpreted as diagnostics rather than as a mechanism for enforcing data integrity.