Search Results rosetta_table_copy_out_p4




Overview

OKL_VENDOR_REFUND_PVT_W is a private PL/SQL wrapper package in the Oracle EBS Applications (APPS) schema, delivered as part of the Oracle Lease and Finance Management (OKL) module. Its source header indicates a filename of OKLIRFDS.pls and a version of 120.1, shipped as "noship," meaning it is a supporting internal object not exposed as a public API surface. The package belongs to the vendor refund subsystem of the leasing product, which processes refunds owed to or by vendors in lease and finance transactions. The "_W" suffix and the ROSETTA_TABLE_COPY naming convention identify it as a generated wrapper whose sole purpose is to marshal PL/SQL collection types between a calling layer and the underlying business-logic package OKL_VENDOR_REFUND_PVT. Rosetta-style wrappers exist because EBS business logic frequently passes nested and associative table types that cannot be bridged directly across certain call boundaries; the wrapper decomposes those structures into flat JTF typed tables and reassembles them.

The package is classified under ETRM as API classification OTHER, confirming that it is an internal helper rather than a documented integration point. In Oracle EBS 12.1.1 and 12.2.2 the package remains structurally identical, as it is untouched by the online patching and editioning changes that affected higher-level APIs.

Key Procedures and Functions

The package exposes four documented procedures, all of which are conversion shims over the record types defined in OKL_VENDOR_REFUND_PVT. No functions are defined.

  • ROSETTA_TABLE_COPY_IN_P4 — Copies data in to the caller. It accepts a nested table of error records of type okl_vendor_refund_pvt.error_tbl_type as the OUT parameter and receives the corresponding component values as parallel JTF_VARCHAR2_TABLE_200, JTF_VARCHAR2_TABLE_100, and JTF_NUMBER_TABLE collections. The procedure reconstructs the structured error table from the flat inbound arrays.
  • ROSETTA_TABLE_COPY_OUT_P4 — The inverse of the above. It accepts an inbound error_tbl_type and decomposes it into the three outbound JTF collections (200-character, 100-character, and numeric). This is the signature relevant to the user search term "rosetta_table_copy_out_p4."
  • ROSETTA_TABLE_COPY_IN_P5 — Copies in a single error message record of type okl_vendor_refund_pvt.error_message_type, populated from a JTF_VARCHAR2_TABLE_2000 collection.
  • ROSETTA_TABLE_COPY_OUT_P5 — The inverse operation, decomposing an error_message_type record into a JTF_VARCHAR2_TABLE_2000 collection for consumption by the caller.

Each procedure handles one logical grouping of the error structure: P4 covers the tabular error set with message code, message text, and numeric error identifier, while P5 covers the long message text alone.

Tables Accessed

The only table referenced through APPS synonyms is PLITBLM, the standard EBS PL/SQL table (associative array) storage table. Access to PLITBLM is characteristic of EBS collection-handling infrastructure: large PL/SQL tables are persisted server-side through this table when they must survive across call boundaries or be shared between sessions. The wrapper performs no direct DML against business tables; all business-data persistence occurs in OKL_VENDOR_REFUND_PVT, which the wrapper merely feeds. This confirms the package is a transport-layer utility with no independent data ownership.

Usage Notes

Because OKL_VENDOR_REFUND_PVT_W is a private wrapper, it is not invoked by end users, concurrent programs, or forms directly. It is called by OKL_VENDOR_REFUND_PVT or by generated client-side code when a vendor refund operation must exchange structured error collections across a boundary that accepts only flat JTF table types. The "out" procedures are used when the underlying refund logic raises one or more errors that must be returned to the caller as a JTF_VARCHAR2_TABLE; the "in" procedures perform the reverse translation. In 12.1.1 and 12.2.2 the package resides in the APPS schema and should be treated as internal. Customizations should never call or recompile it; instead, custom code should invoke the supported public API in OKL_VENDOR_REFUND_PVT. Referenced by zero other packages in the documented metadata, its callers are limited to the refund package family itself.