Results for “ap_payment_hist_all_mrc_v”
4 results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
AP_PAYMENT_HIST_ALL_MRC_V is a Multi-Report Currency (MRC) view within the Oracle Payables (AP) module. It is documented as a single-org MRC view, meaning it presents payment history records for a single operating unit while exposing amount columns translated into the reporting set of books defined by the MRC architecture. The view is designed to support reporting and integration scenarios where a user needs payment history information reflecting both the operating unit's functional currency and the reporting currency established by Multiple Reporting Currencies.
The name itself signals its purpose: "PAYMENT_HIST" references the source payment history table, "ALL" indicates the multi-org (operating unit) scope, and "MRC" confirms that translated reporting-currency amounts are included. When a user or report references bank_currency_code through this view, it resolves from the underlying base table rather than from any MRC-specific translation column, since currency codes are not themselves translated — only the associated amounts and rates are.
Underlying Base Objects
The view is defined over two documented base objects: AP_PAYMENT_HISTORY_ALL and AP_MC_PAYMENT_HISTORY. The join condition is B.PAYMENT_HISTORY_ID = MC.PAYMENT_HISTORY_ID, linking each payment history row to its corresponding MRC record. A critical filter applies to the MRC side: MC.SET_OF_BOOKS_ID = NVL(TO_NUMBER(SUBSTRB(USERENV('CLIENT_INFO'), 45, 10)), -99). This means the view returns only the MRC translation row for the set of books currently selected in the user's session client_info, defaulting to -99 when no context is set. This construction is characteristic of single-org MRC views and explains why the view is described as single-org.
No base objects were separately documented in the ETRM metadata for this view, but the view text explicitly identifies the two tables above as its sources. The base table AP_PAYMENT_HISTORY_ALL supplies the operating-unit and functional-currency attributes, while AP_MC_PAYMENT_HISTORY (aliased MC) supplies the reporting-currency translated amounts and exchange rate metadata.
Key Columns
The view exposes identifiers and audit columns including PAYMENT_HISTORY_ID, CHECK_ID, ACCOUNTING_EVENT_ID, ORG_ID, REV_PMT_HIST_ID, and the standard WHO columns. Status indicators include POSTED_FLAG and MATCHED_FLAG, with TRANSACTION_TYPE and ACCOUNTING_DATE providing business context.
Amount columns appear in three groups. Bank-currency amounts are TRX_BANK_AMOUNT, ERRORS_BANK_AMOUNT, and CHARGES_BANK_AMOUNT, associated with BANK_CURRENCY_CODE. Payment-currency amounts are TRX_PMT_AMOUNT, ERRORS_PMT_AMOUNT, and CHARGES_PMT_AMOUNT, associated with PMT_CURRENCY_CODE. Base (functional) amounts are TRX_BASE_AMOUNT, ERRORS_BASE_AMOUNT, and CHARGES_BASE_AMOUNT, with corresponding BANK_TO_BASE_XRATE and PMT_TO_BASE_XRATE columns and their type/date companions. The MRC-translated equivalents include MRC_TRX_BASE_AMOUNT, MRC_ERRORS_BASE_AMOUNT, MRC_CHARGES_BASE_AMOUNT, and the MRC_*_XRATE columns. Notably, BANK_CURRENCY_CODE is exposed once and is not duplicated as an MRC column.
Common Use Cases and Queries
Typical uses include reconciling payments by bank currency against reporting-currency amounts, auditing exchange rate application, and feeding downstream reporting that must reflect MRC translated balances.
- Bank currency payment analysis: summarize transactions grouped by
BANK_CURRENCY_CODEto see volume per currency. - MRC rate verification: compare
BANK_TO_BASE_XRATEagainstMRC_BANK_TO_BASE_XRATEto validate translation. - Reconciliation: join
CHECK_IDto payment records to tie history back to source payments.
A representative query selecting bank currency and translated amounts might read:
SELECT payment_history_id, check_id, bank_currency_code, trx_bank_amount, mrc_trx_base_amount FROM ap_payment_hist_all_mrc_v WHERE bank_currency_code = 'USD' AND posted_flag = 'Y';
Because the view restricts MRC rows by session set of books, callers should ensure the appropriate reporting set of books context is initialized before querying; otherwise the NVL default of -99 will yield no MRC rows.
-
SINGLE-ORG MRC view
Not implemented in this database·Explore AP module →
-
SINGLE-ORG MRC view
Not implemented in this database·Explore AP module →
-
12.1.1 FND Design Data 12.1.1
-
12.2.2 FND Design Data 12.2.2