Results for “wsh_regions_interface_v”

18 results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

WSH_REGIONS_INTERFACE_V is a view owned by the APPS schema in Oracle E-Business Suite, belonging to the WSH — Shipping Execution product family. It is an interface view that presents region and location hierarchy data staged for import into Oracle Shipping Execution. Regions in WSH are used to model geographic structures — continents, countries, states, cities, zones, and postal code ranges — that support transit times, routing, and freight rating calculations. This view consolidates the region records held in the interface table together with their translated descriptions, exposing a single denormalized query surface that can be used for data validation, reporting, and pre-import review before the records are processed into the base region tables.

The view is relevant to both Oracle EBS 12.1.1 and 12.2.2. Its object type is VIEW and its status is VALID in the EBS Technical Reference Manual (ETRM). Because it is a view rather than a table, it stores no data itself; it derives all output from its underlying interface tables at query time.

Underlying Base Objects

The view is defined over two documented base objects, both accessed through synonyms:

  • WSH_REGIONS_INTERFACE — the primary interface table holding the region ID, region type, parent relationship, geographic codes, terminal flags, coordinates, time zone, and the processed flag.
  • WSH_REGIONS_TL_INTERFACE — the translated (TL) interface table supplying language-dependent attributes such as continent, country, country region, state, city, zone, and postal code ranges.

The two are joined on REGION_ID, with an additional language filter using USERENV('LANG') so that the translated text returned matches the session language of the querying user. This join pattern mirrors standard EBS MLS (Multi-Language Support) views and explains why the view exposes columns from both interface tables in one result set.

Key Columns

  • REGION_ID — Primary identifier for the region record; the join key between the two interface tables.
  • REGION_TYPE and PARENT_REGION_ID — Define the region's classification and its position in the geographic hierarchy.
  • CONTINENT, COUNTRY, COUNTRY_REGION, STATE, CITY, ZONE — Descriptive geographic attributes from the translated interface table.
  • ZONE_LEVEL, POSTAL_CODE_FROM, POSTAL_CODE_TO — Support postal-zone modelling and range-based rating.
  • COUNTRY_CODE, COUNTRY_REGION_CODE, STATE_CODE, CITY_CODE — Standard codes used for matching and freight calculation.
  • PORT_FLAG — Indicates whether the region represents a seaport. It is one of four terminal-type indicators, alongside AIRPORT_FLAG, ROAD_TERMINAL_FLAG, and RAIL_TERMINAL_FLAG. Because the user searched for "port_flag," this column is the likely focal point: it identifies regions that function as ocean ports and is used when validating or selecting port locations for shipping lanes and transit-time definitions.
  • LONGITUDE, LATITUDE, TIMEZONE — Geographic coordinates and time zone for the region.
  • PROCESSED_FLAG — Marks whether the interface record has already been imported; unprocessed rows (typically 'N') are those pending conversion.
  • CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN — Standard audit columns sourced from the translated interface table.

Common Use Cases and Queries

Typical scenarios include reviewing interface records before running the region import, auditing records that failed validation, and reporting on port locations used in routing. Because the view joins the base and translated interface tables, queries are simple and require no explicit join by the end user.

  • Identify pending region interface records: SELECT region_id, region_type, country_code, processed_flag FROM wsh_regions_interface_v WHERE processed_flag = 'N';
  • List seaport regions for a country: SELECT region_id, city, country_code FROM wsh_regions_interface_v WHERE port_flag = 'Y' AND country_code = 'US';
  • Report all terminal types per region: SELECT region_id, port_flag, airport_flag, road_terminal_flag, rail_terminal_flag FROM wsh_regions_interface_v;
  • Review hierarchy and postal ranges: SELECT region_id, parent_region_id, zone_level, postal_code_from, postal_code_to FROM wsh_regions_interface_v;

Queries against this view operate on interface staging data only; records are not present in the production region tables until the interface has been processed.