Search Results xtr_clear_journal_process_p




Overview

The APPS.XTR_CLEAR_JOURNAL_PROCESS_P package is a member of the Oracle E-Business Suite Treasury (ETRM) module, which manages deal capture, journal generation, and settlement processing for financial instruments such as foreign exchange contracts, money market deals, and loans. Within this framework, the package provides a controlled mechanism for clearing journal entries that have been generated against treasury transactions. Clearing, in this context, refers to the process by which journals are flagged, reconciled, or removed from the active ledger flow once the corresponding accounting or settlement activity has been completed.

The package header, identified by the source control comment $Header: xtrcljns.pls 120.1 2005/06/29, is declared with AUTHID CURRENT_USER, meaning its procedures execute with the privileges of the calling user rather than the definer. This design choice allows the package to be invoked from a variety of session contexts while respecting the invoker's security profile and organization-level access. The package's public interface exposes two procedures, confirming that the object as documented represents a focused utility rather than a broad business API. It is classified as an OTHER API in the ETRM metadata, indicating that it is a supporting program unit rather than one of the primary external-facing APIs in the Treasury product.

Key Procedures and Functions

  • CLEAR_JOURNAL_PROCESS — This is the primary driver procedure. It accepts run-time parameters that scope the clearing operation, including a company code (p_company_code), a batch identifier range (p_batch_id_from and p_batch_id_to), and standard concurrent program OUT parameters (errbuf and retcode) for error reporting and completion status. Its purpose is to orchestrate the clearing of journal entries for the identified batches and company, iterating over the relevant transaction records and performing the clearing logic against each qualifying journal.
  • CLEAR_JOURNALS — This procedure performs the granular clearing work for a single company and a single batch, taking in_company and in_batch_id as inputs. It is effectively the workhorse called by the driver procedure for each batch in the requested range, encapsulating the row-level processing required to clear journals associated with that specific batch.

Tables Accessed

  • XTR_BATCHES — Stores batch header information for treasury deal processing. The package reads batch identifiers to scope the clearing range and processes journals belonging to those batches.
  • XTR_JOURNALS — The central journal table holding generated accounting entries. This is the primary table that the clearing logic reads and updates.
  • XTR_PARTY_INFO — Holds counterparty and company information; the party_code column supplies the company code used in the run-time parameters.
  • XTR_BATCH_EVENTS — Records lifecycle events associated with batches, supporting the identification of journals eligible for clearing.
  • XTR_DEAL_DATE_AMOUNTS — Stores dated amount information for deals, used to validate the accounting context of journals prior to clearing.

Usage Notes

This package is typically invoked through an Oracle EBS concurrent program, as indicated by the errbuf/retcode signature of CLEAR_JOURNAL_PROCESS, which follows the standard Oracle concurrent manager convention. A system administrator or treasury user submits the program with a company code and a batch ID range, and the procedure drives clearing across the matching journals. It may also be called from custom PL/SQL when automated reconciliation or period-end cleanup is required.

Because the package references dated amounts and batch events, it should be invoked after journal generation and settlement activity has completed for the target batches. The ETRM metadata records no other packages referencing this one, indicating it is a leaf-level utility rather than a dependency for broader Treasury processing flows.