Results for “rev_pmt_hist_id”

35 results




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

Overview

AP_PAYMENT_HISTORY_ALL is a Payables module table in the AP schema that stores maturity and reconciliation history for payments. It records the accounting lifecycle of a payment instrument — typically a check or electronic payment — as that instrument moves through bank clearing, reconciliation, exchange-rate revaluation, and gain/loss recognition. The table is populated and maintained by Oracle Payables' payment reconciliation and accounting processes, and it serves as the historical audit trail behind the current state of records in AP_CHECKS_ALL.

Within a Data Vault modeling context, the documented foreign-key structure suggests a satellite-leaning classification. The table hangs off AP_CHECKS_ALL and AP_ACCOUNTING_EVENTS_ALL via foreign keys, and it carries a self-referencing key on PAYMENT_HISTORY_ID, which is characteristic of a descriptive/history satellite attached to a core hub-and-link backbone rather than a hub or link in its own right. This classification is a heuristic derived from the FK topology and should be treated as a modeling suggestion rather than a certified Data Vault label.

Key Information Stored

The primary key is AP_PAYMENT_HISTORY_PK, defined on the surrogate key column PAYMENT_HISTORY_ID. Two documented unique indexes serve as business-key candidates: AP_PAYMENT_HISTORY_U1 on PAYMENT_HISTORY_ID and AP_PAYMENT_HISTORY_U2 on REV_PMT_HIST_ID, the latter supporting reversal-to-original linkage. Among the 48 documented columns, the most significant are:

Common Use Cases and Queries

Typical uses include payment reconciliation reporting, bank clearing analysis, realized exchange gain/loss reporting, and audit of payment accounting events. A common pattern joins the history back to the payment instrument:

  • Reconciliation status by payment: join AP_PAYMENT_HISTORY_ALL to AP_CHECKS_ALL on CHECK_ID, filtering on MATCHED_FLAG and POSTED_FLAG.
  • Gain/loss analysis: filter on GAIN_LOSS_INDICATOR = 'Y' and aggregate the base-currency error/charge amounts by accounting period.
  • Reversal tracing: self-join on PAYMENT_HISTORY_ID = REV_PMT_HIST_ID to link reversals to originals.
  • Multi-currency revaluation: compare TRX_BANK_AMOUNT, TRX_PMT_AMOUNT, and TRX_BASE_AMOUNT alongside the stored BANK_TO_BASE_XRATE and PMT_TO_BASE_XRATE.
  • Accounting event audit: join to AP_ACCOUNTING_EVENTS_ALL on ACCOUNTING_EVENT_ID to reconcile the event to its journal entries.

Queries should generally be constrained by ORG_ID and ACCOUNTING_DATE to limit scan size on this high-volume table.

Related Objects

  • AP_CHECKS_ALL — joined on AP_PAYMENT_HISTORY_ALL.CHECK_ID = AP_CHECKS_ALL.CHECK_ID; the primary payment header.
  • AP_ACCOUNTING_EVENTS_ALL — joined on ACCOUNTING_EVENT_ID; the subledger accounting event definition.
  • AP_PAYMENT_HISTORY_ALL (self) — joined on PAYMENT_HISTORY_ID = REV_PMT_HIST_ID for reversal linkage.
  • AP_INVOICE_PAYMENTS_ALL — the invoice-to-payment link, useful when tracing history back to invoices.
  • AP_INVOICES_ALL — the source invoice, reachable through AP_INVOICE_PAYMENTS_ALL.
  • GL_JE_HEADERS / GL_JE_LINES — the general ledger journals created from the referenced accounting events.