Search Results l_qty
Overview
POA_EDW_RCV_TXNS_PKG is an Oracle E-Business Suite PL/SQL package body owned by APPS and classified as OTHER in the ETRM repository. Its purpose is to support the Oracle Procurement and Receiving data warehouse extraction layer by computing net received quantities for receipt transactions and their corrections. The package isolates the arithmetic needed to reconcile original receiving movements against subsequent correction transactions, thereby providing a stable quantity figure that downstream extraction programs can consume without re-implementing correction logic.
The package depends exclusively on the RCV_TRANSACTIONS table accessed through an APPS synonym. The header comment identifies the source file as poafrcvb.pls, version 120.1, last modified 2005/06/13 by sriswami. The body exposes four documented program units: QTY_NET_CHILD_TXNS, QTY_CORRECTED, QTY_NET_CHILD_TXNS_RECURSIVE, and DATE_LAST_DELIVERY. Two other packages reference this package, confirming that it operates as a shared utility rather than a form-level private library.
Key Procedures and Functions
- QTY_NET_CHILD_TXNS — Returns the total net source document quantity for all transactions of a given transaction type that originate from a specific receipt shipment line. The implementation sums source_doc_quantity for the matching transaction type, then adds the source_doc_quantity of any CORRECT transactions whose parent_transaction_id belongs to the matching set. The function is the core reconciliation primitive and returns zero on null inputs or exceptions.
- QTY_CORRECTED — Returns the total corrections applied against a single parent transaction. It aggregates source_doc_quantity from RCV_TRANSACTIONS rows whose parent_transaction_id equals the supplied transaction. This provides the offsetting quantity that must be netted against an original receiving movement.
- QTY_NET_CHILD_TXNS_RECURSIVE — Extends the net-child quantity concept through recursive traversal, allowing correction chains nested more than one level deep to be fully accumulated. This is required because corrections may themselves be corrected in receiving workflows.
- DATE_LAST_DELIVERY — Returns the date of the last delivery associated with the relevant receipt transaction set, supplying the temporal dimension used by the extraction layer for period assignment and delta detection.
The variable l_qty, which the user searched for, is the local accumulator declared inside QTY_NET_CHILD_TXNS. It is initialized to zero and progressively accumulates the summed source_doc_quantity values before being returned.
Tables Accessed
- RCV_TRANSACTIONS — The sole documented table. It is read to obtain source_doc_quantity, transaction_type, shipment_line_id, parent_transaction_id, and transaction_id. All quantity aggregation, correction linkage, and delivery dating derive from this table. The package performs read-only access through the APPS synonym.
Usage Notes
This package is invoked from data warehouse extraction and reporting programs that populate procurement receiving fact tables. It is not exposed as a user-facing form function; instead, it is called by other PL/SQL packages and concurrent program logic. The two documented dependent packages call these functions to obtain corrected quantities and last-delivery dates before loading or refreshing warehouse aggregates. Because the functions return zero on null input or on any raised exception, callers should treat a zero result as potentially ambiguous and validate source data when exact reconciliation is required. Custom code should invoke the functions through the APPS schema and avoid duplicating the correction-netting logic, since the recursive variant exists precisely to handle multi-level correction chains consistently.
-
PACKAGE BODY: APPS.POA_EDW_RCV_TXNS_PKG
12.1.1
-
VIEW: APPS.JAI_PO_RFQQT_V
12.1.1
-
PACKAGE BODY: APPS.ITG_SYNCPOINBOUND_PVT
12.2.2
-
VIEW: APPS.JAI_PO_RFQQT_V
12.2.2
-
PACKAGE BODY: APPS.ITG_SYNCPOINBOUND_PVT
12.1.1
-
View: JAI_PO_RFQQT_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:JA.JAI_PO_RFQQT_V, object_name:JAI_PO_RFQQT_V, status:VALID, product: JA - Asia/Pacific Localizations , implementation_dba_data: APPS.JAI_PO_RFQQT_V ,
-
View: JAI_PO_RFQQT_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:JA.JAI_PO_RFQQT_V, object_name:JAI_PO_RFQQT_V, status:VALID, product: JA - Asia/Pacific Localizations , implementation_dba_data: APPS.JAI_PO_RFQQT_V ,
-
PACKAGE BODY: APPS.OKE_PA_MDS_RELIEF_PKG
12.2.2
-
PACKAGE BODY: APPS.OKE_PA_MDS_RELIEF_PKG
12.1.1
-
PACKAGE BODY: APPS.ISC_DBI_PAST_DUE_SUM_PKG
12.1.1
-
PACKAGE BODY: APPS.OKE_MDS_RELIEF_PKG
12.1.1
-
APPS.OKE_MDS_RELIEF_PKG SQL Statements
12.2.2
-
APPS.OKE_MDS_RELIEF_PKG SQL Statements
12.1.1
-
VIEW: APPS.JAI_PO_RFQQT_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:JA.JAI_PO_RFQQT_V, object_name:JAI_PO_RFQQT_V, status:VALID,
-
VIEW: APPS.JAI_PO_RFQQT_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:JA.JAI_PO_RFQQT_V, object_name:JAI_PO_RFQQT_V, status:VALID,
-
PACKAGE BODY: APPS.OKE_MDS_RELIEF_PKG
12.2.2
-
PACKAGE BODY: APPS.WIP_WS_SHORTAGE
12.1.1
-
PACKAGE BODY: APPS.WIP_WS_SHORTAGE
12.2.2
-
PACKAGE BODY: APPS.INV_TRX_MGR
12.1.1
-
PACKAGE BODY: APPS.INV_TRX_MGR
12.2.2
-
PACKAGE BODY: APPS.OKS_USAGE_SETTLE_PUB
12.2.2
-
PACKAGE BODY: APPS.OKS_USAGE_SETTLE_PUB
12.1.1
-
APPS.ICX_REQ_TEMPLATES SQL Statements
12.2.2
-
APPS.ICX_REQ_TEMPLATES SQL Statements
12.1.1
-
PACKAGE BODY: APPS.PJM_UTILS
12.2.2
-
PACKAGE BODY: APPS.GME_INCREMENTAL_BACKFLUSH_PVT
12.1.1
-
PACKAGE BODY: APPS.PJM_UTILS
12.1.1
-
PACKAGE BODY: APPS.INV_CONSIGNED_VALIDATIONS_GRP
12.2.2
-
PACKAGE BODY: APPS.INV_CONSIGNED_VALIDATIONS_GRP
12.1.1
-
PACKAGE BODY: APPS.GMI_CMP_TRAN_PVT
12.2.2
-
PACKAGE BODY: APPS.CSP_REPAIR_ORDER_PKG
12.2.2
-
PACKAGE BODY: APPS.GMI_CMP_TRAN_PVT
12.1.1
-
PACKAGE BODY: APPS.GME_INCREMENTAL_BACKFLUSH_PVT
12.2.2
-
APPS.ICX_REQ_CATEGORIES SQL Statements
12.2.2
-
APPS.ICX_REQ_CATEGORIES SQL Statements
12.1.1
-
PACKAGE BODY: APPS.OPI_DBI_CURR_VAR_RPT_PKG
12.1.1
-
APPS.PJM_UTILS SQL Statements
12.2.2
-
APPS.PJM_UTILS SQL Statements
12.1.1
-
PACKAGE BODY: APPS.GMD_SCALE
12.2.2
-
APPS.INV_RMA_SERIAL_PVT SQL Statements
12.1.1
-
APPS.INV_RMA_SERIAL_PVT SQL Statements
12.2.2
-
PACKAGE BODY: APPS.GMD_SCALE
12.1.1
-
APPS.CSP_REPAIR_ORDER_PKG SQL Statements
12.2.2
-
PACKAGE BODY: APPS.OPI_DBI_MFG_VAR_RPT_PKG
12.1.1
-
PACKAGE BODY: APPS.BOM_CSTRUSJA_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.BOM_CSTRUSJA_XMLP_PKG
12.2.2
-
APPS.BOM_CSTRUSJA_XMLP_PKG SQL Statements
12.2.2
-
APPS.BOM_CSTRUSJA_XMLP_PKG SQL Statements
12.1.1
-
PACKAGE BODY: APPS.INV_RMA_SERIAL_PVT
12.1.1
-
APPS.ICX_REQ_SEARCH SQL Statements
12.1.1