Search Results oe_prn_order_lines_v
Overview
OE_PRN_ORDER_LINES_V is a reporting view owned by the APPS schema in Oracle E-Business Suite Release 12.1.1 and 12.2.2. It belongs to the ONT (Order Management) product family and is documented in ETRM as VALID. Its stated purpose is to supply line-level details required for printing a sales order — for example, the printed order acknowledgement, pick ticket, or packing slip. The view consolidates order line attributes, item identification, pricing, dates, and shipping information into a single denormalized row set that a report or concurrent program can consume without re-implementing the underlying decode and formatting logic.
Because it is a view and not a table, OE_PRN_ORDER_LINES_V stores no data. It is a read-only projection over the Order Management transaction tables, enriched with lookups, translated descriptions, and calls to several PL/SQL packages that perform currency formatting, line-number concatenation, and discount derivation. This makes it equally suitable for Oracle Reports, BI Publisher, custom concurrent programs, and ad hoc SQL, and it insulates report authors from the physical column changes across the 12.1.3 and 12.2.x code lines.
Underlying Base Objects
The documented referenced objects show that the view is anchored on OE_ORDER_HEADERS_ALL (alias H) and OE_ORDER_LINES_ALL (alias L), which supply the header and line transaction data respectively. Translated and descriptive attributes are resolved through MTL_SYSTEM_ITEMS_TL and MTL_SYSTEM_ITEMS_KFV for item descriptions and concatenated flexfield segments, MTL_CUSTOMER_ITEMS and MTL_CROSS_REFERENCES for customer item numbers, and MTL_UNITS_OF_MEASURE_TL for the unit of measure name. Transaction type context comes from OE_TRANSACTION_TYPES_ALL, while payment and agreement context come from RA_TERMS_TL, RA_RULES, OE_AGREEMENTS_TL, and OE_BLANKET_HEADERS_ALL.
Several package calls are embedded directly in the view definition: OE_ORDER_MISC_PUB.GET_CONCAT_LINE_NUMBER builds the printable line number; FND_CURRENCY.SAFE_GET_FORMAT_MASK supplies the currency format mask for price columns; OE_OE_TOTALS_SUMMARY.GET_DISCOUNT derives the discount amount; and OE_SYS_PARAMETERS and OE_TOTALS_GRP provide system-level and totals-grouping behavior. Each of these base objects is a synonym or package in APPS, so the view resolves entirely within the APPS schema.
Key Columns
The view exposes identifiers and descriptive columns that map directly to printed document fields:
- LINE_ID, HEADER_ID, ORG_ID — primary keys and operating unit context for joining and filtering.
- LINE, LINE_NUMBER — the concatenated printable line number and the raw numeric line number.
- ITEM_NUMBER, ITEM_DESCRIPTION — decoded item identification, honoring the ITEM_IDENTIFIER_TYPE of CUST, INT, or null, selecting customer item number, concatenated flexfield segments, or the ordered item as appropriate.
- ORDERED_QUANTITY, ORDER_QUANTITY_UOM — quantity, negated for return lines via DECODE on LINE_CATEGORY_CODE, together with the unit of measure name.
- UNIT_LIST_PRICE, UNIT_SELLING_PRICE, DISCOUNT — price columns formatted with the transactional currency mask; discount is derived from the list and selling price.
- REQUEST_DATE, PROMISE_DATE, SCHEDULE_ARRIVAL_DATE, SCHEDULE_SHIP_DATE — the scheduling and commitment dates shown on the printed order.
- SOLD_TO_ORG_ID, SHIP_TO_ORG_ID, SHIP_FROM_ORG_ID, INVOICE_TO_ORG_ID and their contact counterparts — address and contact resolution points.
- SHIPPING_INSTRUCTIONS, CUST_PO_NUMBER, TAX_EXEMPT_NUMBER, TAX_CODE, TAX_RATE — fulfilment and tax attributes carried onto the document.
- ATO_LINE_ID, CONFIGURATION_ID, TOP_MODEL_LINE_ID, COMPONENT_SEQUENCE_ID — configuration and model structure for configured items.
Common Use Cases and Queries
The principal use case is feeding a sales order print report, where the view provides one row per order line already decoded for display. Secondary uses include reconciliation of pricing and discount values, verification of shipped quantities and dates, and data extraction for downstream document generation. A typical query filters by header and organization:
SELECT line, item_number, item_description, ordered_quantity, order_quantity_uom, unit_selling_price, discount, promise_date, ship_to_org_id FROM oe_prn_order_lines_v WHERE header_id = :p_header_id AND org_id = :p_org_id ORDER BY line_number;
For a range of orders, the header identifier can be joined back to OE_ORDER_HEADERS_ALL to obtain the order number and customer name, which the view does not itself expose. When extracting data for BI Publisher, select only the columns required by the template, since the view embeds package function calls whose cost is incurred per row. When filtering by customer, use SOLD_TO_ORG_ID rather than a name column, as no customer name is projected. Because the view performs currency formatting as character data, numeric comparison on the price columns requires casting or the use of the underlying OE_ORDER_LINES_ALL columns instead.
-
View: OE_PRN_ORDER_LINES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_PRN_ORDER_LINES_V, object_name:OE_PRN_ORDER_LINES_V, status:VALID, product: ONT - Order Management , description: The view is for obtaining line details for printing a sales order , implementation_dba_data: APPS.OE_PRN_ORDER_LINES_V ,
-
View: OE_PRN_ORDER_LINES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_PRN_ORDER_LINES_V, object_name:OE_PRN_ORDER_LINES_V, status:VALID, product: ONT - Order Management , description: The view is for obtaining line details for printing a sales order , implementation_dba_data: APPS.OE_PRN_ORDER_LINES_V ,
-
PACKAGE: APPS.OE_TOTALS_GRP
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OE_TOTALS_GRP, status:VALID,
-
SYNONYM: APPS.OE_AGREEMENTS_TL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OE_AGREEMENTS_TL, status:VALID,
-
SYNONYM: APPS.OE_AGREEMENTS_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OE_AGREEMENTS_TL, status:VALID,
-
PACKAGE: APPS.OE_TOTALS_GRP
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OE_TOTALS_GRP, status:VALID,
-
PACKAGE: APPS.OE_ORDER_MISC_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OE_ORDER_MISC_PUB, status:VALID,
-
PACKAGE: APPS.OE_ORDER_MISC_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OE_ORDER_MISC_PUB, status:VALID,
-
PACKAGE: APPS.OE_OE_TOTALS_SUMMARY
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OE_OE_TOTALS_SUMMARY, status:VALID,
-
SYNONYM: APPS.OE_BLANKET_HEADERS_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OE_BLANKET_HEADERS_ALL, status:VALID,
-
SYNONYM: APPS.RA_TERMS_TL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:RA_TERMS_TL, status:VALID,
-
PACKAGE: APPS.OE_OE_TOTALS_SUMMARY
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OE_OE_TOTALS_SUMMARY, status:VALID,
-
SYNONYM: APPS.RA_TERMS_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:RA_TERMS_TL, status:VALID,
-
SYNONYM: APPS.OE_BLANKET_HEADERS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OE_BLANKET_HEADERS_ALL, status:VALID,
-
SYNONYM: APPS.RA_RULES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:RA_RULES, status:VALID,
-
SYNONYM: APPS.OE_TRANSACTION_TYPES_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OE_TRANSACTION_TYPES_ALL, status:VALID,
-
SYNONYM: APPS.MTL_CUSTOMER_ITEMS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MTL_CUSTOMER_ITEMS, status:VALID,
-
SYNONYM: APPS.MTL_CROSS_REFERENCES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MTL_CROSS_REFERENCES, status:VALID,
-
SYNONYM: APPS.RA_RULES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:RA_RULES, status:VALID,
-
SYNONYM: APPS.MTL_CROSS_REFERENCES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MTL_CROSS_REFERENCES, status:VALID,
-
SYNONYM: APPS.OE_TRANSACTION_TYPES_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OE_TRANSACTION_TYPES_ALL, status:VALID,
-
SYNONYM: APPS.MTL_CUSTOMER_ITEMS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MTL_CUSTOMER_ITEMS, status:VALID,
-
12.1.1 FND Design Data
12.1.1
-
SYNONYM: APPS.MTL_UNITS_OF_MEASURE_TL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MTL_UNITS_OF_MEASURE_TL, status:VALID,
-
12.2.2 FND Design Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
SYNONYM: APPS.MTL_UNITS_OF_MEASURE_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MTL_UNITS_OF_MEASURE_TL, status:VALID,
-
VIEW: APPS.OE_PRN_ORDER_LINES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_PRN_ORDER_LINES_V, object_name:OE_PRN_ORDER_LINES_V, status:VALID,
-
VIEW: APPS.OE_PRN_ORDER_LINES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_PRN_ORDER_LINES_V, object_name:OE_PRN_ORDER_LINES_V, status:VALID,
-
SYNONYM: APPS.MTL_SYSTEM_ITEMS_TL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MTL_SYSTEM_ITEMS_TL, status:VALID,
-
SYNONYM: APPS.MTL_SYSTEM_ITEMS_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MTL_SYSTEM_ITEMS_TL, status:VALID,
-
PACKAGE: APPS.OE_OE_TOTALS_SUMMARY
12.1.1
-
PACKAGE: APPS.OE_OE_TOTALS_SUMMARY
12.2.2
-
PACKAGE: APPS.OE_SYS_PARAMETERS
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OE_SYS_PARAMETERS, status:VALID,
-
PACKAGE: APPS.OE_SYS_PARAMETERS
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OE_SYS_PARAMETERS, status:VALID,
-
PACKAGE: APPS.FND_CURRENCY
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_CURRENCY, status:VALID,
-
PACKAGE: APPS.FND_CURRENCY
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_CURRENCY, status:VALID,
-
SYNONYM: APPS.OE_ORDER_HEADERS_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OE_ORDER_HEADERS_ALL, status:VALID,
-
SYNONYM: APPS.OE_ORDER_HEADERS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OE_ORDER_HEADERS_ALL, status:VALID,
-
SYNONYM: APPS.OE_ORDER_LINES_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OE_ORDER_LINES_ALL, status:VALID,
-
SYNONYM: APPS.MTL_SYSTEM_ITEMS_KFV
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MTL_SYSTEM_ITEMS_KFV, status:VALID,
-
SYNONYM: APPS.MTL_SYSTEM_ITEMS_KFV
12.2.2
owner:APPS, object_type:SYNONYM, object_name:MTL_SYSTEM_ITEMS_KFV, status:VALID,
-
SYNONYM: APPS.OE_ORDER_LINES_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OE_ORDER_LINES_ALL, status:VALID,
-
PACKAGE BODY: APPS.OE_OE_TOTALS_SUMMARY
12.2.2
-
PACKAGE BODY: APPS.OE_OE_TOTALS_SUMMARY
12.1.1
-
eTRM - ONT Tables and Views
12.2.2
description: OM WorkFlow Activity Skip Log. ,
-
12.2.2 DBA Data
12.2.2
-
eTRM - ONT Tables and Views
12.1.1
description: OM WorkFlow Activity Skip Log. ,
-
12.1.1 DBA Data
12.1.1