Search Results sales_document_type_code
Overview
APPS.OE_ORDER_VERSIONS_V is a reporting and integration view in Oracle E-Business Suite (documented for 12.1.1 and 12.2.2) that consolidates order header version information from both the live order table and the order header history table. It presents, for each header, the version number, a derived sales document type code, a flag indicating whether the version carries a customer signature, and an archival indicator. Its principal role is to give downstream reports, concurrent programs, and interfaces a single, stable read interface for enumerating the version lineage of a sales order without requiring callers to understand the split between OE_ORDER_HEADERS_ALL and OE_ORDER_HEADER_HISTORY.
The view is commonly consulted when implementers search on sales_document_type_code, because that column is projected as the second element of the SELECT list and is central to distinguishing quotation-style, order-style, and return-style documents during version analysis.
Underlying Base Objects
The view is owned by APPS and is defined over two referenced base objects:
- OE_ORDER_HEADERS_ALL (SYNONYM) — the current or "live" order header records. Rows from this table are always tagged with ARCHIVED_YN = 'N'.
- OE_ORDER_HEADER_HISTORY (SYNONYM) — the historical/archived header records. Rows are included only where VERSION_FLAG = 'Y', and are tagged with ARCHIVED_YN = 'Y'.
The two sources are combined with UNION, so a header can appear more than once across the live and archived sets. The union output is ordered by VERSION_NUMBER in descending sequence, so the most recent version appears first. No joins to customer, line, or lookup tables are performed inside the view; it is a pure projection and union of the two header sources.
Key Columns
- HEADER_ID — the order header identifier, provided by both source tables and used to correlate versions back to a specific order.
- SALES_DOCUMENT_TYPE_CODE — the sales document type. It is not exposed directly but through NVL(SALES_DOCUMENT_TYPE_CODE,'O'), so a null source value is returned as 'O' (order).
- VERSION_NUMBER — the version sequence number for the header; the ordering key of the result set (descending).
- SIGNED_YN — derived as DECODE(NVL(TO_CHAR(CUSTOMER_SIGNATURE_DATE),'N'),'N','N','Y'). Returns 'Y' when a customer signature date exists for that version, otherwise 'N'.
- ARCHIVED_YN — a literal discriminator: 'N' for rows sourced from OE_ORDER_HEADERS_ALL, 'Y' for rows from OE_ORDER_HEADER_HISTORY.
Common Use Cases and Queries
Typical uses include auditing version history for a specific order, filtering by document type, and identifying signed or archived versions for compliance or approval reporting.
- Retrieve all versions of a given order, newest first:
SELECT header_id, sales_document_type_code, version_number,
signed_yn, archived_yn
FROM apps.oe_order_versions_v
WHERE header_id = :p_header_id;
- Filter by document type (the column most often searched):
SELECT header_id, version_number FROM apps.oe_order_versions_v WHERE sales_document_type_code = 'O';
- Identify signed, non-archived versions:
SELECT header_id, version_number FROM apps.oe_order_versions_v WHERE signed_yn = 'Y' AND archived_yn = 'N';
Because the view depends only on the two header sources, it is efficient for header-level reporting and is well suited to views, LOVs, and interfaces that must not read base tables directly.
-
VIEW: APPS.OE_ORDER_VERSIONS_V
12.1.1
-
VIEW: APPS.OE_ORDER_VERSIONS_V
12.2.2
-
VIEW: APPS.OE_BLANKET_VERSIONS_V
12.1.1
-
VIEW: APPS.OE_BLANKET_VERSIONS_V
12.2.2
-
View: OE_BLANKET_VERSIONS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_BLANKET_VERSIONS_V, object_name:OE_BLANKET_VERSIONS_V, status:VALID, product: ONT - Order Management , implementation_dba_data: APPS.OE_BLANKET_VERSIONS_V ,
-
View: OE_BLANKET_VERSIONS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_BLANKET_VERSIONS_V, object_name:OE_BLANKET_VERSIONS_V, status:VALID, product: ONT - Order Management , implementation_dba_data: APPS.OE_BLANKET_VERSIONS_V ,
-
View: OE_ORDER_VERSIONS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_ORDER_VERSIONS_V, object_name:OE_ORDER_VERSIONS_V, status:VALID, product: ONT - Order Management , implementation_dba_data: APPS.OE_ORDER_VERSIONS_V ,
-
View: OE_ORDER_VERSIONS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_ORDER_VERSIONS_V, object_name:OE_ORDER_VERSIONS_V, status:VALID, product: ONT - Order Management , implementation_dba_data: APPS.OE_ORDER_VERSIONS_V ,
-
VIEW: ONT.OE_TRANSACTION_TYPES_ALL#
12.2.2
-
VIEW: ONT.OE_BLANKET_HEADERS_ALL#
12.2.2
-
VIEW: ONT.OE_ORDER_HEADERS_ALL#
12.2.2
-
VIEW: ONT.OE_BLANKET_HEADERS_HIST#
12.2.2
-
VIEW: ONT.OE_ORDER_HEADER_HISTORY#
12.2.2
-
VIEW: ONT.OE_TRANSACTION_TYPES_ALL#
12.2.2
owner:ONT, object_type:VIEW, object_name:OE_TRANSACTION_TYPES_ALL#, status:VALID,
-
VIEW: APPS.WSH_TRANSACTION_TYPES_VL
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:WSH.WSH_TRANSACTION_TYPES_VL, object_name:WSH_TRANSACTION_TYPES_VL, status:VALID,
-
VIEW: APPS.OE_TRXT_TYPES_NOORGS_VL
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_TRXT_TYPES_NOORGS_VL, object_name:OE_TRXT_TYPES_NOORGS_VL, status:VALID,
-
VIEW: APPS.OE_TRXT_TYPES_NOORGS_VL
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_TRXT_TYPES_NOORGS_VL, object_name:OE_TRXT_TYPES_NOORGS_VL, status:VALID,
-
VIEW: APPS.WSH_TRANSACTION_TYPES_VL
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:WSH.WSH_TRANSACTION_TYPES_VL, object_name:WSH_TRANSACTION_TYPES_VL, status:VALID,
-
VIEW: APPS.OE_TRANSACTION_TYPES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_TRANSACTION_TYPES_V, object_name:OE_TRANSACTION_TYPES_V, status:VALID,
-
VIEW: APPS.OE_TRANSACTION_TYPES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_TRANSACTION_TYPES_V, object_name:OE_TRANSACTION_TYPES_V, status:VALID,
-
View: WSH_TRANSACTION_TYPES_VL
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:WSH.WSH_TRANSACTION_TYPES_VL, object_name:WSH_TRANSACTION_TYPES_VL, status:VALID, product: WSH - Shipping Execution , implementation_dba_data: APPS.WSH_TRANSACTION_TYPES_VL ,
-
VIEW: APPS.OE_TRANSACTION_TYPES_VL
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_TRANSACTION_TYPES_VL, object_name:OE_TRANSACTION_TYPES_VL, status:VALID,
-
VIEW: APPS.OE_TRANSACTION_TYPES_VL
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_TRANSACTION_TYPES_VL, object_name:OE_TRANSACTION_TYPES_VL, status:VALID,
-
View: OE_TRANSACTION_TYPES_VL
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_TRANSACTION_TYPES_VL, object_name:OE_TRANSACTION_TYPES_VL, status:VALID, product: ONT - Order Management , description: MLS transaction types view for an organization. , implementation_dba_data: APPS.OE_TRANSACTION_TYPES_VL ,
-
View: OE_ORDER_TYPES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_ORDER_TYPES_V, object_name:OE_ORDER_TYPES_V, status:VALID, product: ONT - Order Management , description: This is a view to show order transaction types for a specific organization and language. , implementation_dba_data: APPS.OE_ORDER_TYPES_V ,
-
View: OE_TRANSACTION_TYPES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_TRANSACTION_TYPES_V, object_name:OE_TRANSACTION_TYPES_V, status:VALID, product: ONT - Order Management , implementation_dba_data: APPS.OE_TRANSACTION_TYPES_V ,
-
View: OE_TRANSACTION_TYPES_VL
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_TRANSACTION_TYPES_VL, object_name:OE_TRANSACTION_TYPES_VL, status:VALID, product: ONT - Order Management , description: MLS transaction types view for an organization. , implementation_dba_data: APPS.OE_TRANSACTION_TYPES_VL ,
-
View: OE_ORDER_TYPES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_ORDER_TYPES_V, object_name:OE_ORDER_TYPES_V, status:VALID, product: ONT - Order Management , description: This is a view to show order transaction types for a specific organization and language. , implementation_dba_data: APPS.OE_ORDER_TYPES_V ,
-
View: WSH_TRANSACTION_TYPES_VL
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:WSH.WSH_TRANSACTION_TYPES_VL, object_name:WSH_TRANSACTION_TYPES_VL, status:VALID, product: WSH - Shipping Execution , implementation_dba_data: APPS.WSH_TRANSACTION_TYPES_VL ,
-
View: OE_TRXT_TYPES_NOORGS_VL
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_TRXT_TYPES_NOORGS_VL, object_name:OE_TRXT_TYPES_NOORGS_VL, status:VALID, product: ONT - Order Management , description: Org independent VL view for Shipping integration team to get the Order Type name. , implementation_dba_data: APPS.OE_TRXT_TYPES_NOORGS_VL ,
-
View: OE_TRANSACTION_TYPES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_TRANSACTION_TYPES_V, object_name:OE_TRANSACTION_TYPES_V, status:VALID, product: ONT - Order Management , implementation_dba_data: APPS.OE_TRANSACTION_TYPES_V ,
-
View: OE_TRXT_TYPES_NOORGS_VL
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_TRXT_TYPES_NOORGS_VL, object_name:OE_TRXT_TYPES_NOORGS_VL, status:VALID, product: ONT - Order Management , description: Org independent VL view for Shipping integration team to get the Order Type name. , implementation_dba_data: APPS.OE_TRXT_TYPES_NOORGS_VL ,
-
VIEW: ONT.OE_BLANKET_LINES_ALL#
12.2.2
-
APPS.OE_VALIDATE_WF SQL Statements
12.1.1
-
APPS.OE_VALIDATE_WF SQL Statements
12.2.2
-
VIEW: ONT.OE_BLANKET_HEADERS_ALL#
12.2.2
owner:ONT, object_type:VIEW, object_name:OE_BLANKET_HEADERS_ALL#, status:VALID,
-
VIEW: ONT.OE_BLANKET_LINES_HIST#
12.2.2
-
VIEW: ONT.OE_ORDER_LINES_ALL#
12.2.2
-
VIEW: ONT.OE_ORDER_LINES_HISTORY#
12.2.2
-
VIEW: ONT.OE_ORDER_HEADER_HISTORY#
12.2.2
owner:ONT, object_type:VIEW, object_name:OE_ORDER_HEADER_HISTORY#, status:VALID,
-
VIEW: ONT.OE_ORDER_HEADERS_ALL#
12.2.2
owner:ONT, object_type:VIEW, object_name:OE_ORDER_HEADERS_ALL#, status:VALID,
-
TABLE: ONT.OE_TRANSACTION_TYPES_ALL
12.1.1
owner:ONT, object_type:TABLE, fnd_design_data:ONT.OE_TRANSACTION_TYPES_ALL, object_name:OE_TRANSACTION_TYPES_ALL, status:VALID,
-
VIEW: ONT.OE_BLANKET_HEADERS_HIST#
12.2.2
owner:ONT, object_type:VIEW, object_name:OE_BLANKET_HEADERS_HIST#, status:VALID,
-
TABLE: ONT.OE_TRANSACTION_TYPES_ALL
12.2.2
owner:ONT, object_type:TABLE, fnd_design_data:ONT.OE_TRANSACTION_TYPES_ALL, object_name:OE_TRANSACTION_TYPES_ALL, status:VALID,
-
PACKAGE BODY: APPS.OE_NEGOTIATE_WF
12.1.1
-
PACKAGE BODY: APPS.OE_NEGOTIATE_WF
12.2.2
-
VIEW: APPS.OE_ORDER_TYPES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_ORDER_TYPES_V, object_name:OE_ORDER_TYPES_V, status:VALID,
-
VIEW: APPS.OE_ORDER_TYPES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:ONT.OE_ORDER_TYPES_V, object_name:OE_ORDER_TYPES_V, status:VALID,
-
VIEW: ONT.OE_BLANKET_LINES_ALL#
12.2.2
owner:ONT, object_type:VIEW, object_name:OE_BLANKET_LINES_ALL#, status:VALID,
-
APPS.OE_CONTRACTS_UTIL SQL Statements
12.1.1