Search Results ari_t1
Overview
APPS.JAI_JOM_LM_TRIGGER_PKG is a PL/SQL package body belonging to the Oracle E-Business Suite localization layer supporting Letter of Credit (LC) processing for Order Management. The package is classified under the ETRM API classification OTHER, indicating it is an internal supporting object rather than a public, supported API. Its specific business purpose is to encapsulate the trigger logic that fires when Letter of Credit and LC matching records are inserted, updated, or deleted. The header comment identifies the package entry point as ARI_T1, which is called from the database trigger JAI_JOM_LM_ARIUD_T1. The naming convention reflects the older trigger JAI_JOM_LM_ARI_T1, which this package replaced. In effect, the package centralizes row-level validation logic that previously resided directly inside the database trigger, allowing validation rules to be versioned and maintained independently of the trigger definition. This refactoring pattern is common in Oracle EBS localization and case-compliance updates, where trigger-resident business rules are migrated into packaged procedures.
Key Procedures and Functions
The documented package exposes a single procedure:
- ARI_T1 — The trigger handler invoked whenever a row is affected by the ARIUD trigger on the LC tracking table. It receives the old and new row records, an action indicator, and returns a return code and return message to the caller. Internally it declares cursors to count matching Letter of Credit header records and to retrieve the LC balance amount, together with local variables for the amount applied, the LC count, the picking line identifier, and the LC balance. The procedure initializes the return code to the successful constant, then determines whether an LC header exists for the LC number carried on the new row and reads the current LC balance. The change history embedded in the source records several significant maintenance events: a fix by Sriram under Bug 2165355 for LC forward porting (October 2002); a June 2005 modification to reference new database entity names for CASE compliance; a related file version update removing SQL literals under Bug 4428980; and a June 2007 change under Bug 6124130 that altered a comparison condition from greater-than to greater-than-or-equal when matching the LC amount. These changes indicate the procedure validates that the amount applied against an LC does not exceed, and is properly bounded by, the available LC balance.
Tables Accessed
The package reads two documented tables through APPS synonyms:
- JAI_OM_LC_HDRS — The Letter of Credit headers table. It is queried both to count LC header rows for the LC number on the incoming record and to retrieve the LC_BALANCE_AMOUNT for validation against the amount applied.
- JAI_OM_LC_MATCHINGS — The Letter of Credit matchings table, which records the association between order or picking data and the Letter of Credit. It forms the transactional context for the trigger and supports the amount-matching validation logic.
The procedures do not appear to write directly to either table within the documented excerpt; their role is primarily read-and-validate, with the trigger itself performing the data modification. Enforcement of balance and matching constraints is achieved by returning a non-success return code to the caller.
Usage Notes
JAI_JOM_LM_TRIGGER_PKG is invoked indirectly rather than called by user interface code or concurrent programs. The database trigger JAI_JOM_LM_ARIUD_T1 fires on insert, update, and delete events against the Letter of Credit tracking structures and delegates processing to the ARI_T1 procedure, passing the old and new row images and the DML action. The package is referenced by one other package according to the ETRM metadata, suggesting some reuse across the localization module. Because the package is classified as OTHER rather than a public API, it should not be called from custom code, and its signature should be treated as internal and subject to change across patches. Administrators and developers reviewing Letter of Credit validation behavior should inspect this package when diagnosing errors raised during LC matching or amount application, particularly in environments that have applied the CASE compliance and Bug 6124130 fixes. The SQL literals referenced in the change history should also be considered when analyzing performance or code scanning results in Oracle EBS 12.1.1 and 12.2.2.
-
PACKAGE BODY: APPS.JAI_JOM_LM_TRIGGER_PKG
12.2.2
-
PACKAGE BODY: APPS.JAI_JOM_LM_TRIGGER_PKG
12.1.1
-
PACKAGE: APPS.JAI_INV_MMT_TRIGGER_PKG
12.2.2
-
PACKAGE: APPS.JAI_AP_DVA_TRIGGER_PKG
12.1.1
-
PACKAGE: APPS.JAI_JOM_LM_TRIGGER_PKG
12.1.1
-
PACKAGE: APPS.JAI_PO_DA_TRIGGER_PKG
12.1.1
-
PACKAGE: APPS.JAI_PO_DA_TRIGGER_PKG
12.2.2
-
PACKAGE: APPS.JAI_INV_MMT_TRIGGER_PKG
12.1.1
-
PACKAGE: APPS.JAI_PO_LA_TRIGGER_PKG
12.2.2
-
PACKAGE: APPS.JAI_PO_LA_TRIGGER_PKG
12.1.1
-
PACKAGE: APPS.JAI_PO_LLA_TRIGGER_PKG
12.1.1
-
PACKAGE: APPS.JAI_AP_DVA_TRIGGER_PKG
12.2.2
-
PACKAGE: APPS.JAI_JOM_LM_TRIGGER_PKG
12.2.2
-
PACKAGE: APPS.JAI_JAP_TY_TRIGGER_PKG
12.1.1
-
PACKAGE: APPS.JAI_AP_ILA_TRIGGER_PKG
12.1.1
-
PACKAGE: APPS.JAI_JAP_TY_TRIGGER_PKG
12.2.2
-
PACKAGE: APPS.JAI_RCV_RT_TRIGGER_PKG
12.2.2
-
PACKAGE: APPS.JAI_PO_RLA_TRIGGER_PKG
12.1.1
-
PACKAGE: APPS.JAI_RCV_RT_TRIGGER_PKG
12.1.1
-
PACKAGE: APPS.JAI_FA_MA_TRIGGER_PKG
12.1.1
-
PACKAGE: APPS.JAI_JAR_TL_TRIGGER_PKG
12.2.2
-
PACKAGE: APPS.JAI_PO_LLA_TRIGGER_PKG
12.2.2
-
PACKAGE: APPS.JAI_JAR_TL_TRIGGER_PKG
12.1.1
-
PACKAGE: APPS.JAI_AP_ILA_TRIGGER_PKG
12.2.2
-
PACKAGE: APPS.JAI_FA_MA_TRIGGER_PKG
12.2.2
-
PACKAGE: APPS.JAI_AR_CR_TRIGGER_PKG
12.1.1
-
PACKAGE: APPS.JAI_AR_CR_TRIGGER_PKG
12.2.2
-
PACKAGE: APPS.JAI_PO_RLA_TRIGGER_PKG
12.2.2
-
PACKAGE BODY: APPS.JAI_AP_DVA_TRIGGER_PKG
12.1.1
-
PACKAGE BODY: APPS.JAI_AP_DVA_TRIGGER_PKG
12.2.2
-
PACKAGE BODY: APPS.JAI_JAP_TY_TRIGGER_PKG
12.1.1
-
PACKAGE BODY: APPS.JAI_JAP_TY_TRIGGER_PKG
12.2.2
-
PACKAGE: APPS.JAI_AR_RCTA_TRIGGER_PKG
12.1.1
-
PACKAGE BODY: APPS.JAI_AR_CR_TRIGGER_PKG
12.1.1
-
PACKAGE: APPS.JAI_AR_RCTLA_TRIGGER_PKG
12.1.1
-
PACKAGE: APPS.JAI_AR_RCTA_TRIGGER_PKG
12.2.2
-
PACKAGE BODY: APPS.JAI_AR_CR_TRIGGER_PKG
12.2.2
-
PACKAGE BODY: APPS.JAI_PO_DA_TRIGGER_PKG
12.2.2
-
PACKAGE: APPS.JAI_AR_RCTLA_TRIGGER_PKG
12.2.2
-
PACKAGE BODY: APPS.JAI_PO_DA_TRIGGER_PKG
12.1.1
-
PACKAGE BODY: APPS.JAI_AP_ILA_TRIGGER_PKG
12.2.2
-
PACKAGE BODY: APPS.JAI_FA_MA_TRIGGER_PKG
12.1.1
-
PACKAGE BODY: APPS.JAI_FA_MA_TRIGGER_PKG
12.2.2
-
APPS.JAI_AP_ILA_TRIGGER_PKG SQL Statements
12.2.2
-
PACKAGE BODY: APPS.JAI_AP_ILA_TRIGGER_PKG
12.1.1
-
PACKAGE BODY: APPS.JAI_PO_LA_TRIGGER_PKG
12.1.1
-
PACKAGE BODY: APPS.JAI_PO_LA_TRIGGER_PKG
12.2.2
-
PACKAGE BODY: APPS.JAI_RCV_RT_TRIGGER_PKG
12.1.1
-
PACKAGE BODY: APPS.JAI_RCV_RT_TRIGGER_PKG
12.2.2
-
PACKAGE BODY: APPS.JAI_PO_LLA_TRIGGER_PKG
12.1.1