Search Results inv_rma_serial_pvt
Overview
INV_RMA_SERIAL_PVT is a private (PVT classification) PL/SQL package owned by the APPS schema in Oracle E-Business Suite 12.1.1 and 12.2.2. It supports Return Merchandise Authorization (RMA) processing within Oracle Inventory by resolving and staging the serial number information associated with a specific RMA line. Its central purpose is to populate a temporary staging table, MTL_RMA_SERIAL_TEMP, so that downstream RMA receipt/validation logic can determine which serial numbers are expected for a returned item and whether serial control is mandatory for that line.
The package header carries the AUTHID CURRENT_USER clause, meaning its SQL executes with the privileges of the invoking user; because it references APPS synonyms of Inventory and Order Management base tables, callers must operate in a context where those synonyms are resolvable. The header also declares several package-level global variables (g_return_status, g_error_code, g_rma_line_id) that were introduced to support defect fix 3572112, preserving status and error context between the public entry points of the package.
Key Procedures and Functions
- populate_temp_table — The primary documented procedure. It accepts the standard Oracle API framework parameters (API version, initialization of the message list, commit flag, validation level, and the standard OUT trio of return status, message count, and message data) plus an additional error-code OUT parameter. Its functional inputs are the RMA line identifier, the organization identifier, and the inventory item identifier. Its documented role is to populate the temporary table INV_RMA_SERIAL_TEMP based on the supplied RMA line, organization, and item. This corresponds in the ETRM metadata to the staged table MTL_RMA_SERIAL_TEMP.
- validate_serial_required — A function, also added for defect 3572112, that takes the RMA line identifier and returns a numeric result indicating whether serial number capture is required for that line. This allows callers to branch their RMA processing logic before attempting serial validation or staging.
Both entry points are documented in the package specification, and no additional parameters should be assumed beyond those shown in the excerpt.
Tables Accessed
- MTL_RMA_SERIAL_TEMP — The staging table populated by populate_temp_table. It holds the working set of serial numbers for the RMA line so that subsequent validation and receipt steps can process them without repeatedly querying source order data.
- OE_LOT_SERIAL_NUMBERS — The Order Management lot/serial register. It is read to retrieve the serial numbers originally associated with the sales order line underlying the RMA, providing the source data staged into the temporary table.
- OE_ORDER_LINES_ALL — The Order Management order lines table. It supplies the linkage between the RMA line, the originating order line, organization, and item, enabling the package to identify which serial-controlled item and line combination is being processed.
These tables are referenced through APPS synonyms rather than fully qualified base objects, consistent with standard Oracle EBS API coding practice.
Usage Notes
INV_RMA_SERIAL_PVT is a private package and is not intended for direct external invocation; the ETRM metadata records that it is referenced by one other package, which is the standard consumer. It is normally called as part of RMA receipt and return processing flows—typically from the RMA receipt forms or from server-side RMA validation logic—when serial-controlled items are being returned. A caller first invokes validate_serial_required to determine whether serial handling applies to the RMA line, then calls populate_temp_table with the appropriate API version and validation level, passing the RMA line, organization, and item identifiers. Callers must inspect x_return_status, x_msg_count, and x_msg_data, and x_errorcode on completion, and must supply a commit flag consistent with their own transaction boundaries. Because it is a PVT package, it should be invoked only through its supported parent package or form rather than from custom code, and it is subject to change between patch levels without public notice.
-
PACKAGE: APPS.INV_RMA_SERIAL_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:INV_RMA_SERIAL_PVT, status:VALID,
-
PACKAGE: APPS.INV_RMA_SERIAL_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:INV_RMA_SERIAL_PVT, status:VALID,
-
PACKAGE BODY: APPS.INV_RMA_SERIAL_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:INV_RMA_SERIAL_PVT, status:VALID,
-
PACKAGE BODY: APPS.INV_RMA_SERIAL_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:INV_RMA_SERIAL_PVT, status:VALID,
-
PACKAGE: APPS.INV_RMA_SERIAL_PVT
12.1.1
-
PACKAGE: APPS.INV_RMA_SERIAL_PVT
12.2.2
-
SYNONYM: APPS.MTL_RMA_SERIAL_TEMP
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MTL_RMA_SERIAL_TEMP, status:VALID,
-
SYNONYM: APPS.MTL_RMA_SERIAL_TEMP
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MTL_RMA_SERIAL_TEMP, status:VALID,
-
SYNONYM: APPS.OE_LOT_SERIAL_NUMBERS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OE_LOT_SERIAL_NUMBERS, status:VALID,
-
SYNONYM: APPS.OE_LOT_SERIAL_NUMBERS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OE_LOT_SERIAL_NUMBERS, status:VALID,
-
PACKAGE BODY: APPS.INV_UI_ITEM_ATT_LOVS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:INV_UI_ITEM_ATT_LOVS, status:VALID,
-
PACKAGE BODY: APPS.INV_UI_ITEM_ATT_LOVS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:INV_UI_ITEM_ATT_LOVS, status:VALID,
-
PACKAGE: APPS.MTL_SERIAL_CHECK
12.2.2
owner:APPS, object_type:PACKAGE, object_name:MTL_SERIAL_CHECK, status:VALID,
-
PACKAGE: APPS.MTL_SERIAL_CHECK
12.1.1
owner:APPS, object_type:PACKAGE, object_name:MTL_SERIAL_CHECK, status:VALID,
-
PACKAGE BODY: APPS.INV_RMA_SERIAL_PVT
12.2.2
-
PACKAGE BODY: APPS.INV_RMA_SERIAL_PVT
12.1.1
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
APPS.INV_RMA_SERIAL_PVT dependencies on INV_RMA_SERIAL_PVT
12.2.2
-
APPS.INV_RMA_SERIAL_PVT dependencies on INV_RMA_SERIAL_PVT
12.1.1
-
APPS.INV_UI_ITEM_ATT_LOVS dependencies on INV_RMA_SERIAL_PVT
12.1.1
-
APPS.INV_UI_ITEM_ATT_LOVS dependencies on INV_RMA_SERIAL_PVT
12.2.2
-
SYNONYM: APPS.OE_ORDER_LINES_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OE_ORDER_LINES_ALL, status:VALID,
-
SYNONYM: APPS.OE_ORDER_LINES_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OE_ORDER_LINES_ALL, status:VALID,
-
PACKAGE: APPS.FND_MSG_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_MSG_PUB, status:VALID,
-
PACKAGE: APPS.FND_MSG_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_MSG_PUB, status:VALID,
-
PACKAGE: APPS.FND_API
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_API, status:VALID,
-
PACKAGE: APPS.FND_API
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_API, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.1.1 DBA Data
12.1.1
-
PACKAGE: SYS.STANDARD
12.1.1
owner:SYS, object_type:PACKAGE, object_name:STANDARD, status:VALID,