Results for “cr_dr_flag”
50+ results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
OKL_TRX_DISTRIBUTION_UV is a read-only database view owned by the APPS schema within the Oracle E-Business Suite Release 12.1.1 and 12.2.2 environment. It belongs to the OKL product family, commonly referenced as Oracle Leasing and Finance Management. The view consolidates transaction accounting distribution lines and presents them together with decoded, user-facing descriptions, which makes it suitable for accounting inquiry screens, reconciliation reports, and downstream integration extracts without requiring consumers to resolve lookup codes or perform multi-table joins.
Functionally, the view exposes one row per accounting distribution line, joined where applicable to an accounting event template. It bridges the technical distribution table and the presentation layer by invoking several helper functions from the OKL_ACCOUNTING_UTIL package to derive concatenated accounting flexfield segments and to translate coded values into descriptive meanings. Because it is a view and not a table, it carries no independent storage and reflects the current committed state of its underlying distribution data.
In the context of the user search term "okl_ae_line_type," the view is significant because AE_LINE_TYPE is one of its primary classification columns, and the view also surfaces its decoded form as AE_LINE_TYPE_MEANING.
Underlying Base Objects
Per the documented ETRM metadata, OKL_TRX_DISTRIBUTION_UV is defined over the following objects:
- OKL_TRNS_ACC_DSTRS (SYNONYM) — the primary driving table, aliased OTAD in the view text.
- OKL_AE_TEMPLATES_ALL (SYNONYM) — outer-joined to the distribution table on the condition OTAD.TEMPLATE_ID = OAT.ID(+).
- OKL_ACCOUNTING_UTIL (PACKAGE) — invoked repeatedly to decode segments and lookup values.
The distribution table supplies the transaction accounting lines, including the account combination, amounts, debit/credit indicators, and posting status. The templates table supplies the accounting event template name associated with each distribution line. Because the join to OKL_AE_TEMPLATES_ALL is an outer join, distribution rows without a matching template are still returned, with TEMPLATE_NAME null.
Key Columns
- ID — Surrogate identifier of the distribution row (OTAD.ID).
- AE_LINE_TYPE — The accounting event line type code that classifies the nature of the distribution line.
- AE_LINE_TYPE_MEANING — Decoded meaning of AE_LINE_TYPE using lookup type 'OKL_AE_LINE_TYPE'.
- CODE_COMBINATION_ID — Identifier of the accounting flexfield combination.
- CONCATE_SEGMENTS / CONCATE_SEGMENTS_DESC — Concatenated segment string and its description, resolved via OKL_ACCOUNTING_UTIL.
- CR_DR_FLAG / DR_CR_FLAG_MEANING — Debit or credit indicator and its decoded 'DR_CR' meaning.
- AMOUNT — Distribution amount.
- ACCOUNTING_DATE — The GL date (GL_DATE) applicable to the line.
- TEMPLATE_NAME — The accounting event template name, converted to initial-caps form.
- POSTED — Decoded 'YES_NO' posting status.
- SOURCE_ID / SOURCE_TABLE — Origin identifiers of the underlying business transaction.
Common Use Cases and Queries
Typical scenarios include preparing accounting reconciliation extracts, analyzing debit and credit distributions by event line type, and displaying readable account and lookup descriptions in custom reports.
Sample query by event line type:
SELECT ae_line_type_meaning, cr_dr_flag, amount FROM apps.okl_trx_distribution_uv WHERE ae_line_type = :p_line_type AND accounting_date BETWEEN :p_from AND :p_to;
Sample query to trace distributions to their source transaction:
SELECT id, source_table, source_id, concate_segments, template_name, posted FROM apps.okl_trx_distribution_uv WHERE source_id = :p_source_id AND source_table = :p_source_table;
-
APPS.OKL_TRX_DISTRIBUTION_UV·↳ OKL_ACCOUNTING_UTIL·↳ OKL_AE_TEMPLATES_ALL·↳ OKL_TRNS_ACC_DSTRS·Explore OKL module →
-
Distribution plans of translation schemes
-
View: OKL_AP_DIST_UV 12.2.2
APPS.OKL_AP_DIST_UV·↳ AP_ACCOUNTING_EVENTS·↳ AP_AE_HEADERS·↳ AP_AE_LINES·Explore OKL module →
-
View: OKL_FA_DIST_UV 12.1.1
APPS.OKL_FA_DIST_UV·↳ FA_ADDITIONS·↳ FA_ADJUSTMENTS·↳ FA_DEPRN_DETAIL·Explore OKL module →
-
APPS.OKL_TRX_DISTRIBUTION_UV·↳ OKL_ACCOUNTING_UTIL·↳ OKL_AE_TEMPLATES_ALL·↳ OKL_TRNS_ACC_DSTRS·Explore OKL module →
-
View: OKL_AR_DIST_UV 12.2.2
APPS.OKL_AR_DIST_UV·↳ AR_CASH_RECEIPT_HISTORY·↳ AR_DISTRIBUTIONS·↳ AR_PAYMENT_SCHEDULES·Explore OKL module →
-
View: OKL_AP_DIST_UV 12.1.1
APPS.OKL_AP_DIST_UV·↳ AP_ACCOUNTING_EVENTS·↳ AP_AE_HEADERS·↳ AP_AE_LINES·Explore OKL module →
-
Distribution plans of translation schemes
-
View: OKL_FA_DIST_UV 12.2.2
APPS.OKL_FA_DIST_UV·↳ FA_ADDITIONS·↳ FA_ADJUSTMENTS·↳ FA_DEPRN_DETAIL·Explore OKL module →
-
View: OKL_AR_DIST_UV 12.1.1
APPS.OKL_AR_DIST_UV·↳ AR_CASH_RECEIPT_HISTORY·↳ AR_DISTRIBUTIONS·↳ AR_PAYMENT_SCHEDULES·Explore OKL module →
-
View: OKL_TRNS_ACC_DSTRS_UV 12.2.2
APPS.OKL_TRNS_ACC_DSTRS_UV·↳ GL_CODE_COMBINATIONS_KFV·↳ OKL_ACCOUNTING_UTIL·↳ OKL_TRNS_ACC_DSTRS·Explore OKL module →
-
Accounting distributions
-
View: OKL_TRNS_ACC_DSTRS_UV 12.1.1
APPS.OKL_TRNS_ACC_DSTRS_UV·↳ GL_CODE_COMBINATIONS_KFV·↳ OKL_ACCOUNTING_UTIL·↳ OKL_TRNS_ACC_DSTRS·Explore OKL module →
-
Table: FV_IPAC_TRX_ALL 12.1.1
IPAC transactions table
-
Accounting distributions
-
Table: FV_IPAC_TRX_ALL 12.2.2
IPAC transactions table
-
VIEW: AX.AX_DISTRIB_PLANS# 12.2.2
-
VIEW: AX.AX_DISTRIB_PLANS# 12.2.2
-
VIEW: APPS.OKL_AR_DIST_UV 12.1.1
-
VIEW: APPS.OKL_AR_DIST_UV 12.2.2
-
VIEW: APPS.OKL_FA_DIST_UV 12.1.1
-
VIEW: APPS.OKL_FA_DIST_UV 12.2.2
-
VIEW: APPS.OKL_AP_DIST_UV 12.1.1
-
VIEW: APPS.OKL_AP_DIST_UV 12.2.2
-
VIEW: FV.FV_IPAC_TRX_ALL# 12.2.2
-
VIEW: APPS.OKL_AR_DIST_UV 12.1.1
-
VIEW: APPS.OKL_AP_DIST_UV 12.2.2
-
VIEW: APPS.OKL_AR_DIST_UV 12.2.2
-
VIEW: APPS.OKL_AP_DIST_UV 12.1.1
-
View: OKL_TRNS_ACC_DSTRS_V 12.1.1
Accounting distributions
Not implemented in this database·Explore OKL module →
-
VIEW: APPS.OKL_FA_DIST_UV 12.1.1
-
VIEW: APPS.OKL_FA_DIST_UV 12.2.2
-
View: OKL_TRNS_ACC_DSTRS_V 12.2.2
Accounting distributions
Not implemented in this database·Explore OKL module →
-
TABLE: AX.AX_DISTRIB_PLANS 12.1.1
-
TABLE: AX.AX_DISTRIB_PLANS 12.2.2
-
VIEW: FV.FV_IPAC_TRX_ALL# 12.2.2
-
APPS.FV_IPAC SQL Statements 12.1.1