Search Results ar_ramc_audit_trail




Overview

The AR_RAMC_AUDIT_TRAIL table is a core technical object within Oracle E-Business Suite Receivables (AR) modules, specifically for versions 12.1.1 and 12.2.2. Its primary function is to serve as an audit log for tracking revenue-related status changes on invoice lines. The table is integral to the Revenue Management and Compliance (RAMC) framework, which governs revenue recognition policies and ensures adherence to accounting standards. By maintaining a historical record of state transitions for transactional revenue, this table provides a critical audit trail for financial reporting, compliance audits, and troubleshooting revenue recognition processes.

Key Information Stored

While the specific column list is not detailed in the provided metadata, the documented foreign key relationships and primary key define its critical data structure. The primary key is the CUSTOMER_TRX_LINE_ID, directly linking each audit record to a specific invoice line in RA_CUSTOMER_TRX_LINES_ALL. Essential foreign keys include CUSTOMER_TRX_ID (linking to the invoice header), CUST_ACCOUNT_ID, and BILL_TO_SITE_USE_ID for customer and site context. Crucially, it stores references to contract management entities via CONTRACT_ID and CONTRACT_LINE_ID, linking revenue events to their source agreements in the OKC (Oracle Contracts Core) tables. The table inherently stores timestamps, user IDs, and codes representing the previous and new revenue statuses for each change event.

Common Use Cases and Queries

This table is primarily accessed for audit, reporting, and diagnostic purposes. A common use case is tracing the complete revenue recognition history for a specific invoice or contract to verify proper accounting treatment. Support personnel query it to diagnose issues where an invoice line is stuck in an unexpected revenue state. Sample queries often join to transactional and customer tables to produce human-readable reports.

  • Revenue Status History for an Invoice: SELECT audit.*, trx.trx_number FROM ar_ramc_audit_trail audit JOIN ra_customer_trx_all trx ON audit.customer_trx_id = trx.customer_trx_id WHERE trx.trx_number = 'INV-12345';
  • Linking Audit to Contract Lines: SELECT audit.*, okcl.line_number FROM ar_ramc_audit_trail audit JOIN okc_k_lines_b okcl ON audit.contract_line_id = okcl.id WHERE audit.contract_id = 1001;

Related Objects

The AR_RAMC_AUDIT_TRAIL table is centrally connected to major Receivables and Trading Community Architecture (TCA) entities, as documented by its foreign keys.

  • RA_CUSTOMER_TRX_LINES_ALL: Primary key relationship (CUSTOMER_TRX_LINE_ID). The core transactional line item being audited.
  • RA_CUSTOMER_TRX_ALL: Foreign key (CUSTOMER_TRX_ID). The parent invoice header.
  • HZ_CUST_ACCOUNTS: Foreign key (CUST_ACCOUNT_ID). The customer account.
  • HZ_CUST_SITE_USES_ALL: Foreign key (BILL_TO_SITE_USE_ID). The bill-to customer site.
  • OKC_K_HEADERS_B: Foreign key (CONTRACT_ID). The source contract header.
  • OKC_K_LINES_B: Foreign key (CONTRACT_LINE_ID). The specific contract line generating revenue.