Search Results rg_report_calculations




Overview

The RG_REPORT_CALCULATIONS table is a core data object within the Application Report Generator (RG) module of Oracle E-Business Suite (EBS) 12.1.1 and 12.2.2. It serves as the central repository for defining and storing calculation rules that are applied to rows and columns within financial and managerial reports built using the Report Generator tool. This table is essential for implementing complex financial logic, such as variance analysis, period-to-date totals, and custom aggregations, directly within the report structure. Its existence underscores the power and flexibility of the RG module to create sophisticated, calculation-driven reports beyond simple data listings.

Key Information Stored

The table's structure is designed to link calculations to specific axes (rows or columns) within a report definition. The primary key consists of AXIS_SET_ID, AXIS_SEQ, and CALCULATION_SEQ, which together uniquely identify a calculation step for a particular axis set. The AXIS_SET_ID and AXIS_SEQ columns link the calculation to a specific row or column axis defined in the RG_REPORT_AXES table. The CALCULATION_SEQ determines the order of execution for multiple calculations. Additional key columns, as indicated by the foreign key relationships, include AXIS_SEQ_HIGH and AXIS_SEQ_LOW. These columns are critical for range-based calculations, allowing a single calculation rule to be applied across a defined span of rows or columns (e.g., "calculate the sum from row 5 to row 10").

Common Use Cases and Queries

This table is primarily accessed during the runtime generation of a Report Definition. A common use case is troubleshooting or auditing the calculation logic embedded in a financial report. For instance, a developer might query this table to understand all calculations associated with a specific report axis set. A sample query to retrieve calculation sequences for an axis set would be:

  • SELECT axis_set_id, axis_seq, calculation_seq FROM rg_report_calculations WHERE axis_set_id = &axis_set_id ORDER BY axis_seq, calculation_seq;

Another critical scenario involves impact analysis before modifying a report definition. Administrators can query dependencies to see which specific axes (via AXIS_SEQ, AXIS_SEQ_LOW, and AXIS_SEQ_HIGH) are referenced by calculation rules, ensuring changes do not break existing report logic.

Related Objects

The RG_REPORT_CALCULATIONS table has a direct and integral relationship with the RG_REPORT_AXES table, which defines the rows and columns for reports. As documented in the ETRM metadata, three foreign key relationships exist between these tables:

  • RG_REPORT_CALCULATIONS.AXIS_SET_ID, RG_REPORT_CALCULATIONS.AXIS_SEQ references RG_REPORT_AXES. This links a calculation to its primary target axis.
  • RG_REPORT_CALCULATIONS.AXIS_SET_ID, RG_REPORT_CALCULATIONS.AXIS_SEQ_HIGH references RG_REPORT_AXES. This links to the axis defining the high end of a calculation range.
  • RG_REPORT_CALCULATIONS.AXIS_SET_ID, RG_REPORT_CALCULATIONS.AXIS_SEQ_LOW references RG_REPORT_AXES. This links to the axis defining the low end of a calculation range.

These relationships enforce referential integrity, ensuring calculations are defined only for valid, existing report axes. The table is also fundamentally linked to the broader RG_REPORT_DEFINITIONS and RG_REPORT_SETS objects through the shared AXIS_SET_ID.