Search Results earned_discount_amount_trx




Overview

FII.FII_AR_RECAPP_MERGE_GT is a global temporary table owned by the FII (Financial Intelligence for Receivables) schema in Oracle E-Business Suite. It functions as an intermediate staging structure used by the Receivables application-merge reconciliation programs that populate the FII receivables fact and dimension tables. The table carries a data duration of SYS$SESSION; rows inserted by a session are visible only to that session and are purged automatically when the session terminates. This makes it unsuitable for persistent storage but ideal for in-memory processing of application and receipt-application rows prior to load or merge.

From a Data Vault modeling perspective, the mined heuristic classification for this object is standalone. Because the table is a transient global temporary structure rather than a persistent entity, treating it as an isolated staging construct—rather than as a hub, link, or satellite—is the appropriate suggestion. The only documented referential constraint is on RECEIPT_METHOD_ID, which points to AR_RECEIPT_METHODS, though in practice many of the ID columns reference Receivables transactional entities.

Key Information Stored

The table contains 53 documented columns spanning application, receipt, discount, and audit attributes. The most significant columns are:

No unique index is documented beyond the application identifier, so RECEIVABLE_APPLICATION_ID combined with CASH_RECEIPT_ID serves as the practical business-key candidate for staging joins.

Common Use Cases and Queries

The primary use case is reconciliation of earned and unearned discount amounts across currencies before they are merged into FII fact tables. A typical query aggregates earned discount by transaction and operating unit:

SELECT ORG_ID, CURRENCY_CODE,
       SUM(EARNED_DISCOUNT_AMOUNT_TRX)  AS earned_trx,
       SUM(EARNED_DISCOUNT_AMOUNT_FUNC) AS earned_func
FROM   FII.FII_AR_RECAPP_MERGE_GT
WHERE  APPLY_DATE BETWEEN :p_from AND :p_to
GROUP  BY ORG_ID, CURRENCY_CODE;

Other uses include comparing AMOUNT_APPLIED_TRX against payment-schedule expectations, validating GL_DATE ranges, and isolating rows where unearned discount remains outstanding for period-end accruals. Because the table is session-scoped, any query must run in the same session that populated it.

Related Objects

These relationships make FII_AR_RECAPP_MERGE_GT the transient bridge between Receivables transactional tables and the FII analytical layer.