Search Results intmed_ship_to_org_id




Overview

WSH_OE_LINES_V2 is a Shipping Execution (WSH) view owned by the APPS schema in Oracle E-Business Suite, valid in both 12.1.1 and 12.2.2. It presents a denormalized, shipping-oriented projection of order line data, joining order lines to their parent order headers so that header-level attributes such as ORDER_NUMBER are available alongside line-level detail. The "_V2" suffix indicates a versioned interface view used by Shipping Execution and its integration points to expose order line information in a consistent, read-only form. Because the view selects from the order management base tables rather than from shipping tables, it functions as a bridge that allows shipping logic to consume sales order line attributes — including ship-from, ship-to, deliver-to, and sold-to organization identifiers — without directly querying OE_ORDER_LINES_ALL. This is the view that answers the common search for the deliver_to_org_id column: it exposes OE.DELIVER_TO_ORG_ID directly, making the deliver-to organization of an order line accessible to shipping reports, concurrent programs, and integration queries.

Note that the view populates DELIVERY_ID and DELIVERY_NAME as hard-coded NULLs (TO_NUMBER(NULL) and TO_CHAR(NULL)), so it does not surface actual delivery associations; those must be obtained from the shipping delivery tables separately.

Underlying Base Objects

Per the documented metadata, WSH_OE_LINES_V2 is defined over two referenced base objects, both exposed as synonyms in the APPS schema:

The join is an inner equijoin on HEADER_ID, so only lines with a matching header are returned. The view does not reference WSH delivery, trip, or stop tables; it is purely an order-line projection relabeled for shipping consumption.

Key Columns

Common Use Cases and Queries

This view is typically used to report order lines by delivery destination, to reconcile shipping demand against ordered quantities, and to feed integrations that require organization identifiers. A representative query retrieving lines for a specific deliver-to organization follows:

  • SELECT order_number, line_id, ordered_item, deliver_to_org_id FROM apps.wsh_oe_lines_v2 WHERE org_id = :p_org_id AND deliver_to_org_id = :p_deliver_to;
  • SELECT h.order_number, l.line_number, l.ordered_quantity, l.shipped_quantity, l.ship_to_org_id, l.deliver_to_org_id FROM apps.wsh_oe_lines_v2 l WHERE l.org_id = :p_org_id AND l.shipped_quantity < l.ordered_quantity;
  • SELECT COUNT(*) FROM apps.wsh_oe_lines_v2 WHERE deliver_to_org_id IS NULL AND org_id = :p_org_id;

Because DELIVERY_ID and DELIVERY_NAME are always NULL, do not rely on this view for delivery grouping; join to the WSH delivery detail tables on LINE_ID instead. Always constrain queries by ORG_ID when MOAC is enabled to avoid cross-operating-unit results.