Search Results wip_move_validator




Overview

The APPS.WIP_MOVE_VALIDATOR package is a server-side PL/SQL validation and error-handling component within the Oracle E-Business Suite Work in Process (WIP) application. Its principal business function is to validate records in the WIP_MOVE_TXN_INTERFACE table before those records are consumed by the move transaction processor. The interface table is the staging area through which move transactions—including those originating from third-party or external systems—are introduced into WIP. If a record contains invalid or incomplete data, the package marks its process_status as WIP_CONSTANTS.ERROR and records a corresponding diagnostic message, thereby preventing the move processor from attempting to execute an invalid transaction. The package header declares a PL/SQL table structure (error_list), built from a request_error record type comprising transaction_id, error_column, and error_message, which serves as an in-memory staging area for validation errors accumulated during a processing run. A second collection type, txnID_list, is keyed to WIP_MOVE_TXN_INTERFACE.transaction_id, allowing errors to be raised against one or many interface rows in a single call.

Key Procedures and Functions

Eight documented procedures and functions comprise the public interface of this package. Those explicitly shown in the extracted source are described below; the remainder are documented only by name in the ETRM metadata.

  • ADD_ERROR — Overloaded to accept either a single transaction identifier or a collection of transaction identifiers, together with an error column and error message. Each invocation appends a row to the in-memory current_errors PL/SQL table.
  • LOAD_ERRORS — Copies all accumulated errors from the current_errors collection into the persistent WIP_TXN_INTERFACE_ERRORS table, making them visible to users and support personnel.
  • VALIDATE — The central validation routine. It accepts a group identifier (p_group_id) matching group_id in WIP_MOVE_TXN_INTERFACE, and a flag (p_initMsgList) that controls whether the message list is initialized. It validates all necessary columns in the interface table. No status is returned; instead, invalid rows are flagged with process_status = WIP_CONSTANTS.ERROR and errors are written to WIP_TXN_INTERFACE_ERRORS.
  • MOVE_TXN_TYPE and GET_MOVE_TXN_TYPE — Procedures relating to the move transaction type, the field commonly referenced by users searching for move_txn_type. These support identification or retrieval of the transaction type associated with an interface record, a critical determinant of which validation rules and processing paths apply.
  • ORGANIZATION_ID — Relates to the inventory organization context under which the move transaction is validated.
  • VALIDATEOATXN — An additional validation routine, evidently scoped to a specific transaction category.

Tables Accessed

The package operates against a broad set of WIP and inventory reference tables. WIP_MOVE_TXN_INTERFACE is the primary table read and updated. BOM_DEPARTMENTS and BOM_STANDARD_OPERATIONS supply departmental and routing operation validation. MTL_SYSTEM_ITEMS, MTL_SYSTEM_ITEMS_KFV, and MTL_ITEM_REVISIONS validate item and revision information. MTL_LOT_NUMBERS and MTL_SERIAL_NUMBERS support lot and serial validation, while MTL_MATERIAL_TRANSACTIONS, MTL_TRANSACTION_REASONS, MTL_PARAMETERS, and MTL_OBJECT_GENEALOGY provide transaction, reason, parameter, and genealogy context. GL_CODE_COMBINATIONS supports account validation, FND_USER validates the acting user, and HR_ORGANIZATION_INFORMATION resolves organization attributes.

Usage Notes

This package is designed primarily for background or batch processing, and is described as particularly useful for transactions inserted by third-party software. It is typically invoked by the WIP move transaction processor, by concurrent programs that push interface records into WIP, or by custom integration code that must pre-validate records before submission. It is referenced by one other package. Callers should invoke VALIDATE with the appropriate group identifier and then inspect WIP_TXN_INTERFACE_ERRORS or the process_status column to determine whether correction and resubmission are required.