Search Results so_lines_view_returns_v
Overview
SO_LINES_VIEW_RETURNS_V is a reporting view owned by the APPS schema in Oracle E-Business Suite, defined in the Order Entry (OE) product family. It presents return-related order line information in a single denormalized result set, joining order header, order line, unit of measure, item master, lookup, and receivables transaction data. The view is designed for reporting and integration scenarios that require a consolidated read of returned order lines, including pricing attributes, descriptive flexfield segments, credit-to-invoice references, and return reason codes.
Because the view exposes the full Pricing_Attribute1 through Pricing_Attribute15 set, it is frequently the target of ad hoc queries where users search for a specific pricing attribute, such as pricing_attribute15, to trace how return lines were priced and how those pricing context values map back to a source order. This makes the view especially relevant for pricing audits, return reason analysis, and reconciliation between Order Management and Receivables.
Underlying Base Objects
The documented metadata lists the following referenced base objects which the view is defined over:
- SO_HEADERS (VIEW) and SO_LINES (VIEW) — the primary order header and order line sources, supplying line identifiers, ordered and cancelled quantities, selling price, return reference types, and all ATTRIBUTE1–15 and PRICING_ATTRIBUTE1–15 columns.
- AR_LOOKUPS (VIEW) — provides lookup meaning text, aliased as RETURN_REASON in the view.
- MTL_UNITS_OF_MEASURE (SYNONYM) — supplies UOM_CODE for the returned line.
- MTL_SYSTEM_ITEMS_VL (VIEW) — supplies the item description (ITEM_DESC), defaulting to 'NO DESCRIPTION AVAILABLE' when null.
- RA_CUSTOMER_TRX (SYNONYM) and RA_CUSTOMER_TRX_LINES (SYNONYM) — used to derive the credit-to-invoice transaction number (CREDIT_TO_INVOICE).
- FND_PROFILE (PACKAGE) and MTL_PARAMETERS (SYNONYM) — used to resolve profile and organization context values.
- OE_QUERY (PACKAGE) — supplies the ITEM_CONC_SEG, ACCEPTED_QTY, and ORDER_TYPE functions used in the select list.
The view therefore acts as a curated join point across Order Management, Inventory, and Receivables data rather than a base table in its own right.
Key Columns
- LINE_ID, HEADER_ID, LINE_NUMBER — order line and header identifiers for joining back to transactional tables.
- OPEN_QUANTITY — derived as NVL(ORDERED_QUANTITY,0) minus NVL(CANCELLED_QUANTITY,0), representing the net open quantity on the line.
- SELLING_PRICE, CURRENCY_CODE — pricing and currency context for the returned line.
- RETURN_REASON — the lookup meaning describing why the line was returned.
- CREDIT_TO_INVOICE — the receivables transaction number associated with the credit.
- ITEM / ITEM_DESC — the concatenated item segment and item description.
- PRICING_ATTRIBUTE1 through PRICING_ATTRIBUTE15 — the complete pricing attribute set, sourced from SO_LINES, with PRICING_CONTEXT supplying the pricing context name. pricing_attribute15 is exposed here directly.
- ATTRIBUTE1 through ATTRIBUTE15 and CONTEXT — the descriptive flexfield segments and their context.
- ACCEPTED_QUANTITY — the accepted quantity calculated via OE_QUERY.ACCEPTED_QTY.
- ORDER_NUMBER, ORDER_TYPE — identifying attributes of the source order.
- RETURN_REFERENCE_TYPE — indicates the reference source for the return.
Common Use Cases and Queries
Typical usage includes pricing audits, return reason reporting, and integration extracts. A common requirement is locating all return lines tied to a particular pricing attribute value:
- SELECT order_number, line_number, inventory_item_id, pricing_attribute15, return_reason FROM so_lines_view_returns_v WHERE pricing_attribute15 = 'VALUE';
- SELECT order_number, SUM(open_quantity) FROM so_lines_view_returns_v GROUP BY order_number;
- SELECT credit_to_invoice, return_reason, selling_price FROM so_lines_view_returns_v WHERE credit_to_invoice IS NOT NULL;
Because the view performs profile and organization lookups via FND_PROFILE.VALUE('SO_ORGANIZATION_ID'), results can differ by organization context. Restricting queries by ORDER_NUMBER, LINE_ID, or organization-specific filters, and adding redundant indexes where execution plans degrade, is recommended for large-volume reporting.
-
View: SO_LINES_VIEW_RETURNS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OE.SO_LINES_VIEW_RETURNS_V, object_name:SO_LINES_VIEW_RETURNS_V, status:VALID, product: OE - Order Entry , implementation_dba_data: APPS.SO_LINES_VIEW_RETURNS_V ,
-
View: SO_LINES_VIEW_RETURNS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OE.SO_LINES_VIEW_RETURNS_V, object_name:SO_LINES_VIEW_RETURNS_V, status:VALID, product: OE - Order Entry , implementation_dba_data: APPS.SO_LINES_VIEW_RETURNS_V ,
-
PACKAGE: APPS.OE_QUERY
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OE_QUERY, status:VALID,
-
PACKAGE: APPS.OE_QUERY
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OE_QUERY, status:VALID,
-
12.1.1 FND Design Data
12.1.1
-
12.2.2 FND Design Data
12.2.2
-
VIEW: APPS.SO_LINES_VIEW_RETURNS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OE.SO_LINES_VIEW_RETURNS_V, object_name:SO_LINES_VIEW_RETURNS_V, status:VALID,
-
VIEW: APPS.SO_LINES_VIEW_RETURNS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OE.SO_LINES_VIEW_RETURNS_V, object_name:SO_LINES_VIEW_RETURNS_V, status:VALID,
-
VIEW: APPS.SO_HEADERS
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OE.SO_HEADERS, object_name:SO_HEADERS, status:VALID,
-
VIEW: APPS.SO_HEADERS
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OE.SO_HEADERS, object_name:SO_HEADERS, status:VALID,
-
VIEW: APPS.SO_LINES
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OE.SO_LINES, object_name:SO_LINES, status:VALID,
-
VIEW: APPS.SO_LINES
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OE.SO_LINES, object_name:SO_LINES, status:VALID,
-
SYNONYM: APPS.RA_CUSTOMER_TRX_LINES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:RA_CUSTOMER_TRX_LINES, status:VALID,
-
SYNONYM: APPS.RA_CUSTOMER_TRX_LINES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:RA_CUSTOMER_TRX_LINES, status:VALID,
-
SYNONYM: APPS.RA_CUSTOMER_TRX
12.1.1
owner:APPS, object_type:SYNONYM, object_name:RA_CUSTOMER_TRX, status:VALID,
-
VIEW: APPS.AR_LOOKUPS
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AR.AR_LOOKUPS, object_name:AR_LOOKUPS, status:VALID,
-
SYNONYM: APPS.MTL_UNITS_OF_MEASURE
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MTL_UNITS_OF_MEASURE, status:VALID,
-
VIEW: APPS.AR_LOOKUPS
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AR.AR_LOOKUPS, object_name:AR_LOOKUPS, status:VALID,
-
SYNONYM: APPS.RA_CUSTOMER_TRX
12.2.2
owner:APPS, object_type:SYNONYM, object_name:RA_CUSTOMER_TRX, status:VALID,
-
SYNONYM: APPS.MTL_UNITS_OF_MEASURE
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MTL_UNITS_OF_MEASURE, status:VALID,
-
VIEW: APPS.MTL_SYSTEM_ITEMS_VL
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:INV.MTL_SYSTEM_ITEMS_VL, object_name:MTL_SYSTEM_ITEMS_VL, status:VALID,
-
eTRM - OE Tables and Views
12.2.2
description: Temporary table ,
-
VIEW: APPS.MTL_SYSTEM_ITEMS_VL
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:INV.MTL_SYSTEM_ITEMS_VL, object_name:MTL_SYSTEM_ITEMS_VL, status:VALID,
-
eTRM - OE Tables and Views
12.1.1
description: Temporary table ,
-
SYNONYM: APPS.MTL_PARAMETERS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MTL_PARAMETERS, status:VALID,
-
SYNONYM: APPS.MTL_PARAMETERS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MTL_PARAMETERS, status:VALID,
-
eTRM - OE Tables and Views
12.2.2
description: Temporary table ,
-
eTRM - OE Tables and Views
12.1.1
description: Temporary table ,
-
12.2.2 DBA Data
12.2.2
-
PACKAGE: APPS.FND_PROFILE
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_PROFILE, status:VALID,
-
PACKAGE: APPS.FND_PROFILE
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_PROFILE, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
eTRM - INV Tables and Views
12.2.2
-
eTRM - INV Tables and Views
12.1.1
-
eTRM - AR Tables and Views
12.1.1
description: Territory information ,
-
eTRM - AR Tables and Views
12.2.2
description: Territory information ,
-
eTRM - INV Tables and Views
12.1.1
-
eTRM - INV Tables and Views
12.2.2
-
eTRM - AR Tables and Views
12.1.1
description: Territory information ,
-
eTRM - AR Tables and Views
12.2.2
description: Territory information ,