Results for “ar_bpa_rules_vl”

18 results




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

Overview

The AR_BPA_RULES_VL view is a Receivables (AR) module dictionary view owned by the APPS schema in Oracle E-Business Suite 12.1.1 and 12.2.2. It exposes the rules configured for the Bill Presentment Architecture (BPA), the framework that controls how billing and printing templates are selected and applied to transactions during invoice generation and print. The _VL suffix identifies this as a "view with language" object: it joins the translatable rule name and description from the _TL table to the non-translatable rule definition held in the _B table, filtering rows to the session language via USERENV('LANG').

Technically, AR_BPA_RULES_VL functions as the reporting and integration surface for BPA rule definitions. It is not a table and cannot be updated directly; it presents the effective set of search-ordering and template-matching rules evaluated by BPA when determining which template prints a given transaction. Because it carries the full audit columns and the multi-entity *_SAME_PRT_TMPLT_FLAG attributes, it is the standard object referenced by custom reports, extracts, and data-conversion scripts that audit or migrate BPA configuration.

Underlying Base Objects

The view is defined over two documented base objects, both resolved as synonyms in the APPS schema:

The join condition is B.RULE_ID = T.RULE_ID AND T.LANGUAGE = USERENV('LANG'), so the view returns exactly one translated row per rule for the current session language, with B.ROWID exposed as ROW_ID.

Key Columns

  • RULE_ID — Primary identifier linking the base and translation tables.
  • RULE_NAME / RULE_DESCRIPTION — Language-specific rule labels and explanatory text.
  • PRIMARY_APP_ID / SECONDARY_APP_ID — Application context identifiers that scope the rule; these determine the application combination a rule applies to and are directly relevant to the primary_app_id search term.
  • RULE_SEARCH_ORDER — Ordering sequence in which BPA evaluates rules to determine the winning template.
  • MATCH_ALL_ATTRIBUTES — Flag controlling whether all configured attributes must match or a partial match suffices.
  • SAME_PRINTING_TEMPLATE_FLAG — Whether the same template is reused across qualifying documents.
  • CM/DM/CB/DEP/GUAR_SAME_PRT_TMPLT_FLAG — Per-document-type template-reuse flags (Credit Memo, Debit Memo, Chargeback, Deposit, Guarantee).
  • SEEDED_FLAG — Distinguishes Oracle-seeded rules from user-defined ones.
  • Audit columns — CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN.

Common Use Cases and Queries

Typical scenarios include auditing seeded versus custom rules, resolving which rule wins for a primary application, and extracting configuration for migration between instances.

List all rules for a specific primary application, in evaluation order:

  • SELECT rule_id, rule_name, primary_app_id, secondary_app_id, rule_search_order
  • FROM ar_bpa_rules_vl WHERE primary_app_id = :p_app_id ORDER BY rule_search_order;

Identify custom (non-seeded) rules:

  • SELECT rule_id, rule_name, seeded_flag FROM ar_bpa_rules_vl WHERE seeded_flag = 'N';

Because the view is read-only, any maintenance of rule definitions must target AR_BPA_RULES_B and AR_BPA_RULES_TL directly, respecting language and audit requirements.