Search Results oe_ak_return_reason_v




Overview

OE_AK_RETURN_REASON_V is a lightweight Oracle E-Business Suite view owned by the APPS schema and classified under the Order Management (ONT) product family. It functions as a filtered presentation layer over the broader Oracle Receivables lookup view OE_AR_LOOKUPS_V, exposing only those lookup codes whose lookup type resolves to CREDIT_MEMO_REASON. In the context of Oracle EBS 12.1.1 and 12.2.2, the view serves reporting, integration, and extensibility requirements where a consuming component needs a discrete, governed list of valid return reasons without traversing the full lookup framework.

The object carries a VALID status in the ETRM data dictionary, confirming it is deployed and supported in the documented release. Although the name suggests a return reason domain, the definition reveals its true semantic scope: the underlying filter targets credit memo reasons. This distinction is significant for implementers, because the view is commonly surfaced when users or developers search for "credit_memo_reason" rather than for return authorisation reasons.

Because the view performs no joins, aggregations, or transformations beyond a single predicate, it is inexpensive to query and safe for high-frequency read access in reports and interfaces.

Underlying Base Objects

The documented base object referenced by OE_AK_RETURN_REASON_V is a single view:

  • OE_AR_LOOKUPS_V (VIEW)

OE_AR_LOOKUPS_V is the Order Management / Receivables lookup abstraction that presents lookup code and meaning pairs from the underlying Oracle Applications lookup tables, typically FND_LOOKUP_VALUES, filtered to the relevant lookup types. OE_AK_RETURN_REASON_V does not address FND_LOOKUP_VALUES directly; it inherits all filtering, security, and translation behaviour supplied by OE_AR_LOOKUPS_V.

At runtime, Oracle's cost-based optimiser may merge the two views, pushing the LOOKUP_TYPE = 'CREDIT_MEMO_REASON' predicate down to the base lookup table. From an administration standpoint, however, the dependency chain remains OE_AK_RETURN_REASON_V → OE_AR_LOOKUPS_V → FND lookup data.

Key Columns

The view exposes a single projected column per the documented definition:

  • RETURN_REASON_CODE — the lookup code value returned by OE_AR_LOOKUPS_V for lookup type CREDIT_MEMO_REASON. This corresponds to the lookup code that identifies a specific credit memo reason, for example a code representing a pricing dispute, damaged goods, or customer satisfaction adjustment. In the view definition, the projected expression is LOOKUP_CODE, aliased or presented as RETURN_REASON_CODE.

Because only the code is projected, the view does not return lookup meanings, descriptions, language-specific translations, enabled/disabled flags, or effective date ranges. Consumers requiring the human-readable meaning must join back to FND_LOOKUP_VALUES or to OE_AR_LOOKUPS_V on the lookup code.

Common Use Cases and Queries

Typical scenarios include populating a return-reason or credit-memo-reason list of values in a custom concurrent program, validating inbound interface data, and driving conditional logic in Order Management extensions. The following query lists all valid credit memo reasons exposed by the view:

  • SELECT return_reason_code FROM apps.oe_ak_return_reason_v ORDER BY 1;

To obtain descriptive meanings alongside the codes, join to the lookup values table:

  • SELECT v.return_reason_code, l.meaning FROM apps.oe_ak_return_reason_v v, apps.fnd_lookup_values l WHERE l.lookup_type = 'CREDIT_MEMO_REASON' AND l.lookup_code = v.return_reason_code AND l.language = USERENV('LANG') AND l.enabled_flag = 'Y';

A validation pattern for an inbound interface is an existence check of the submitted code against the view. Because the view is inherently constrained to the credit memo reason domain, it eliminates the need for callers to repeat the lookup type predicate, reducing coding error and improving consistency across integrations.