Results for “delete_records”

50+ results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

JAI_CMN_RGM_TAX_DIST_PKG is an Oracle E-Business Suite PL/SQL package owned by APPS that supports the India localization (JAI – India) tax regime functionality, specifically the distribution and settlement of taxes handled through the Regime Registration and Settlement (RGM) framework. The package header carries the file version identifier jai_cmn_rgm_dist.pls and was originally created on 11-JAN-2005 in association with enhancement bug 4068911. Its stated purpose is to retrieve balances and to insert records into the tax repository, making it a principal engine behind the computation, consolidation, and persistence of tax balances used in Indian statutory reporting such as excise, VAT, cess, and tax collected at source.

The package is invoked by the settlement layer — notably JAI_RGM_SETTLEMENT_PKG — and by the RGM distribution setup forms JAIRGMDT.fmb. Its change history reflects sustained localization maintenance, including forward ports of 11i fixes and enhancements such as tax collection at source in Receivables (bug 5631784), additional SH_CESS parameters (bug 6127194), and corrections incorporated through bug 7445742. Because it is a member of the common (CMN) RGM tax distribution family, it operates for both Oracle EBS 12.1.1 and 12.2.2 with identical documented procedure signatures.

Key Procedures and Functions

The documented API surface comprises nine callable units:

  • GET_BALANCES — Retrieves tax balances for a given balance date, regime, registration, organization, and settlement context. It accepts a request identifier and a p_called_from indicator that lets the same logic serve different consumers. The optional P_ITEM_CLASSIFICATION parameter was added for bug 5631784, and transfer-type handling was extended under bug 5879769.
  • INSERT_RECORDS_INTO_REGISTER — Persists computed balances and tax lines into the RGM register/repository tables.
  • DELETE_RECORDS — Removes previously staged or persisted register entries, typically before a re-run of balance computation to prevent duplication.
  • INSERT_RECORDS_INTO_TEMP — Loads intermediate results into a temporary staging structure for subsequent validation or aggregation.
  • CALCULATE_BALANCES_FOR_IO — Computes balances at the inventory organization level, aggregating transactions to produce organization-scoped tax balances.
  • CALCULATE_BALANCES_FOR_OU — Performs the equivalent aggregation at the operating unit level, supporting higher-level statutory summarization.
  • PUNCH_SETTLEMENT_ID — Populates the settlement identifier on generated balance records, linking computed balances to a specific settlement run.
  • CREATE_IO_REGISTER_ENTRY — Creates register entries for inventory organizations, including the SH_CESS parameters introduced for bug 6127194.
  • F_GET_IO_REGISTER — A function that returns register information for an inventory organization, used by calling forms and packages to resolve the appropriate register context.

Tables Accessed

Through APPS synonyms, the package reads and writes the core India localizations tax tables. Transaction-level sources include JAI_CMN_RG_23AC_II_TRXS, JAI_CMN_RG_PLA_TRXS, and JAI_CMN_RG_OTHERS, which hold excise and other regime transaction lines. Balance and staging data are held in JAI_CMN_RG_BALANCES, JAI_CMN_RG_OTH_BALANCES, and JAI_RGM_BALANCE_T, while JAI_RGM_REGISTRATIONS and JAI_RGM_DEFINITIONS supply registration and regime setup context. Organization mapping is obtained from JAI_CMN_INVENTORY_ORGS. Distribution setup is sourced from JAI_RGM_DIS_SRC_HDRS, JAI_RGM_DIS_DES_HDRS, and JAI_RGM_DIS_DES_TAXES together with their _S date-tracked variants, which drive how source taxes are mapped to destination taxes during distribution.

Usage Notes

JAI_CMN_RGM_TAX_DIST_PKG is not intended for direct ad hoc invocation. It is called from the RGM settlement package and from the RGM distribution forms, and is executed in the context of concurrent request processing where p_request_id tracks the run. Any custom development referencing this package must supply the correct organization and registration identifiers, and should expect balance recalculation to be preceded by DELETE_RECORDS and followed by INSERT_RECORDS_INTO_REGISTER. Because the metadata lists no dependent packages and documents only the nine procedures above, integrators should treat the package as a settlement-layer utility rather than a public API; modifications are best confined to registered localization patches, since statutory formats are subject to periodic change.