Search Results arp_flex




Overview

ARP_FLEX is a PL/SQL package body owned by the APPS schema in Oracle E-Business Suite, valid in both Release 12.1.1 and 12.2.2. It belongs to the Oracle Receivables (AR) module and serves as the internal accounting flexfield resolution engine used by Receivables reporting and tax-related logic. Its central role is to derive the correct general ledger accounting flexfield combinations for Receivables transactions and tax calculations, and to evaluate the active key flexfield structures and segment values defined in the Applications instance.

The package is classified as OTHER in the ETRM repository, reflecting that it is a supporting internal utility rather than a public, customer-facing API. It is referenced by five other database objects, confirming its role as a shared dependency within the Receivables and tax processing stack. The ETRM metadata lists six documented program units: GL, LOCATION, SETUP_FLEXFIELD, EXPAND, and ACTIVE_SEGMENTS, with GL treated as the primary entry point.

Key Procedures and Functions

  • GL — The principal pro­gram unit driving general ledger flexfield derivation for Receivables processing. It coordinates the remaining units to produce a valid accounting flexfield combination.
  • LOCATION — Resolves and applies the location-related segment information required when deriving a complete accounting flexfield for a transaction context.
  • SETUP_FLEXFIELD — Establishes and caches the key flexfield definitions, structures, and segment metadata needed before expansion or evaluation is performed.
  • EXPAND — Expands a concatenated or shorthand flexfield reference into its individual segment values for validation and downstream processing.
  • ACTIVE_SEGMENTS — Identifies the segments that are currently active and enabled for the applicable flexfield structure.

Additional internal units exist within the package body but are not separately documented in the ETRM listing. All documented units are internal helpers rather than published APIs; no parameter signatures are exposed in the metadata and should not be assumed.

Tables Accessed

ARP_FLEX reads from the following application tables via APPS synonyms:

  • AR_SYSTEM_PARAMETERS — Provides Receivables system-level settings that govern how accounting flexfields and related defaults are determined.
  • FND_FLEX_VALUE_SETS — Supplies the value set definitions that constrain valid segment values.
  • FND_ID_FLEX_STRUCTURES — Provides the key flexfield structure definitions, including the accounting flexfield structure in use.
  • FND_SEGMENT_ATTRIBUTE_VALUES — Supplies segment-level attribute settings used when deciding which segments are active and how they are validated.

Dependency metadata also shows references to FND_ID_FLEX_SEGMENTS_VL, ARP_UTIL_TAX, ARP_STANDARD, APP_EXCEPTION, FND_MESSAGE, FND_PROFILE, and FND_LOG, indicating that the package resolves segment metadata, performs tax-related flexfield work, and applies standard exception, message, profile, and debug logging utilities.

Usage Notes

ARP_FLEX is invoked internally rather than directly by end users. Its documented entry point, GL, is called from Receivables programs and from tax processing logic that requires a resolved accounting flexfield. Typical invocations occur during:

  • Receivables transaction and accounting generation where a GL account combination must be derived.
  • Tax calculation and reporting flows that depend on ARP_UTIL_TAX and require flexfield resolution.
  • Concurrent programs and forms that rely on the shared Receivables infrastructure.

Because ARP_FLEX is not a public API and has no documented parameter interface, customizations should not call it directly without full regression testing on the target release. Oracle may change its internal implementation, and its short name is not guaranteed to remain stable across patches. When extension is required, the supported approach is to use the documented Receivables APIs and concurrent programs that invoke ARP_FLEX on the caller's behalf, leaving the internal package body unmodified.