Search Results tp_location_code_ext
Overview
WSH_CUSTOMER_SITES_V is a shipping-execution view owned by the APPS schema in Oracle E-Business Suite, valid in both 12.1.1 and 12.2.2. The view consolidates customer account, party, party-site, and site-use attributes into a single denormalized row per customer account site use. Its primary function is to provide Shipping Execution, and any dependent reporting or integration layer, with a flat, pre-joined representation of a ship-to or bill-to address without requiring the caller to traverse the multiple HZ tables that constitute the Trading Community Architecture (TCA) customer model.
Rather than storing data itself, the view exposes the joined result set of five TCA entities. It is commonly referenced by shipping, order management, and custom reporting code where a concise customer address identifier and description are required alongside the internal identifiers used by the shipping modules.
Underlying Base Objects
Per the documented metadata, WSH_CUSTOMER_SITES_V is defined over five base objects, each appearing as a SYNONYM in the APPS schema:
- HZ_CUST_ACCOUNTS — supplies the customer account identifier, account number, and account status via aliases such as CUSTOMER_ID, CUSTOMER_NUMBER, and CUSTOMER_STATUS.
- HZ_CUST_ACCT_SITES_ALL — supplies the customer account site, including ADDRESS_ID, TP_HEADER_ID, ORIG_SYSTEM_REFERENCE, TP_LOCATION_CODE_EXT, CUST_ACCT_SITE_STATUS, and ORG_ID.
- HZ_CUST_SITE_USES_ALL — supplies the site-use level attributes: SITE_USE_ID, SITE_USE_CODE, LOCATION, GSA_INDICATOR, SITE_USE_STATUS, and PRIMARY_FLAG.
- HZ_PARTIES — supplies the party identity, including the DUNS_NUMBER and the truncated CUSTOMER_NAME (SUBSTRB of PARTY_NAME limited to 50 characters).
- HZ_PARTY_SITES — supplies the PARTY_SITE_NUMBER and LOCATION_ID linkage between party and account site.
Joins are established on CUST_ACCOUNT_ID, PARTY_ID, PARTY_SITE_ID, and CUST_ACCT_SITE_ID. Notably, the join between site uses and account sites enforces multi-org consistency through NVL(HCSU.ORG_ID, -999) = NVL(HCAS.ORG_ID, -999), so only site uses whose org context matches the parent account site are returned.
Key Columns
- CUSTOMER_ID / CUSTOMER_NUMBER / CUSTOMER_NAME — the customer account identifier, account number, and party name (truncated to 50 bytes).
- ADDRESS_ID — the CUST_ACCT_SITE_ID, the key identifier for the customer address.
- SITE_USE_ID and SITE_USE_CODE — the site-use surrogate key and its purpose code (for example, SHIP_TO, BILL_TO).
- PRIMARY_FLAG — indicates whether the site use is the primary one for its purpose.
- ORG_ID — the operating unit context carried from the account site, essential for multi-org filtering.
- Status columns (CUSTOMER_STATUS, CUST_ACCT_SITE_STATUS, SITE_USE_STATUS) — enable active/inactive filtering at each level of the hierarchy.
- DUNS_NUMBER, PARTY_SITE_NUMBER, LOCATION_ID, TP_HEADER_ID, ORIG_SYSTEM_REFERENCE, TP_LOCATION_CODE_EXT, GSA_INDICATOR — supporting identifiers and flags used in EDI/trading-partner and location processing.
Common Use Cases and Queries
The view is typically queried to resolve a ship-to address for a sales order or delivery, to populate shipping documentation, or to validate that a customer address is active before a shipment is confirmed. Multi-org environments must filter on ORG_ID. A representative query selecting active primary ship-to sites is shown below.
SELECT customer_id, customer_number, customer_name, address_id, site_use_id, site_use_code, location, primary_flag, org_id FROM wsh_customer_sites_v WHERE site_use_code = 'SHIP_TO' AND site_use_status = 'A' AND cust_acct_site_status = 'A' AND customer_status = 'A' AND org_id = :p_org_id ORDER BY customer_name;
Because the view unions no data and performs inner joins, it returns only customer accounts that have a matching party site and account site use; customers without an address at any level are excluded. This characteristic makes the view suitable for shipping lookups, where an address must exist, but unsuitable as a master customer listing.
-
View: WSH_CUSTOMER_SITES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:WSH.WSH_CUSTOMER_SITES_V, object_name:WSH_CUSTOMER_SITES_V, status:VALID, product: WSH - Shipping Execution , implementation_dba_data: APPS.WSH_CUSTOMER_SITES_V ,
-
VIEW: EC.ECE_ADVO_HEADERS#
12.2.2
-
View: WSH_RCO_ADDRESS_V
12.1.1
product: WSH - Shipping Execution , implementation_dba_data: Not implemented in this database ,
-
View: ECE_DSNO_DELIVERIES_V
12.2.2
product: EC - e-Commerce Gateway , description: No longer used , implementation_dba_data: Not implemented in this database ,
-
View: ECE_ADDRESS_TP
12.1.1
product: EC - e-Commerce Gateway , implementation_dba_data: Not implemented in this database ,
-
View: ECE_ADDRESS_TP
12.2.2
product: EC - e-Commerce Gateway , implementation_dba_data: Not implemented in this database ,
-
View: GML_EC_CONTACT_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:GML.GML_EC_CONTACT_V, object_name:GML_EC_CONTACT_V, status:VALID, product: GML - Process Manufacturing Logistics , description: Customer contact view. , implementation_dba_data: APPS.GML_EC_CONTACT_V ,
-
View: GML_EC_CONTACT_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:GML.GML_EC_CONTACT_V, object_name:GML_EC_CONTACT_V, status:VALID, product: GML - Process Manufacturing Logistics , description: Customer contact view. , implementation_dba_data: APPS.GML_EC_CONTACT_V ,
-
View: WSH_ADDRESS_TP_V
12.1.1
product: WSH - Shipping Execution , implementation_dba_data: Not implemented in this database ,
-
View: ECE_RSU_NOCONTACT
12.1.1
product: EC - e-Commerce Gateway , implementation_dba_data: Not implemented in this database ,
-
View: ECE_RSU_NOCONTACT
12.2.2
product: EC - e-Commerce Gateway , implementation_dba_data: Not implemented in this database ,
-
VIEW: EC.ECE_ADVO_HEADERS_INTERFACE#
12.2.2
-
View: WSH_RCO_ADDRESS_V
12.2.2
product: WSH - Shipping Execution , implementation_dba_data: Not implemented in this database ,
-
View: ECE_RSU_CONTACT
12.2.2
product: EC - e-Commerce Gateway , implementation_dba_data: Not implemented in this database ,
-
View: WSH_ADDRESS_TP_V
12.2.2
product: WSH - Shipping Execution , implementation_dba_data: Not implemented in this database ,
-
VIEW: APPS.GML_EC_CONTACT_V
12.2.2
-
View: WSH_RSU_CONTACT_V
12.2.2
product: WSH - Shipping Execution , implementation_dba_data: Not implemented in this database ,
-
View: WSH_RSU_CONTACT_V
12.1.1
product: WSH - Shipping Execution , implementation_dba_data: Not implemented in this database ,
-
View: ECE_RCO_ADDRESS
12.2.2
product: EC - e-Commerce Gateway , implementation_dba_data: Not implemented in this database ,
-
VIEW: EC.ECE_MVSTO_HEADERS#
12.2.2
-
View: WSH_CUSTOMER_SITES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:WSH.WSH_CUSTOMER_SITES_V, object_name:WSH_CUSTOMER_SITES_V, status:VALID, product: WSH - Shipping Execution , implementation_dba_data: APPS.WSH_CUSTOMER_SITES_V ,
-
View: ECE_RCO_ADDRESS
12.1.1
product: EC - e-Commerce Gateway , implementation_dba_data: Not implemented in this database ,
-
View: WSH_RSU_NOCONTACT_V
12.2.2
product: WSH - Shipping Execution , implementation_dba_data: Not implemented in this database ,
-
View: WSH_RSU_NOCONTACT_V
12.1.1
product: WSH - Shipping Execution , implementation_dba_data: Not implemented in this database ,
-
View: WSH_CUSTOMER_LOCATIONS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:WSH.WSH_CUSTOMER_LOCATIONS_V, object_name:WSH_CUSTOMER_LOCATIONS_V, status:VALID, product: WSH - Shipping Execution , implementation_dba_data: APPS.WSH_CUSTOMER_LOCATIONS_V ,
-
View: ECE_DSNO_DELIVERIES_V
12.1.1
product: EC - e-Commerce Gateway , description: No longer used , implementation_dba_data: Not implemented in this database ,
-
View: WSH_CUSTOMER_LOCATIONS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:WSH.WSH_CUSTOMER_LOCATIONS_V, object_name:WSH_CUSTOMER_LOCATIONS_V, status:VALID, product: WSH - Shipping Execution , implementation_dba_data: APPS.WSH_CUSTOMER_LOCATIONS_V ,
-
VIEW: APPS.WSH_CUSTOMER_SITES_V
12.1.1
-
View: ECE_RSU_CONTACT
12.1.1
product: EC - e-Commerce Gateway , implementation_dba_data: Not implemented in this database ,
-
VIEW: APPS.GML_EC_CONTACT_V
12.1.1
-
VIEW: APPS.WSH_CUSTOMER_SITES_V
12.2.2
-
VIEW: APPS.WSH_CUSTOMER_SITES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:WSH.WSH_CUSTOMER_SITES_V, object_name:WSH_CUSTOMER_SITES_V, status:VALID,
-
VIEW: APPS.WSH_CUSTOMER_SITES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:WSH.WSH_CUSTOMER_SITES_V, object_name:WSH_CUSTOMER_SITES_V, status:VALID,
-
VIEW: APPS.WSH_CUSTOMER_LOCATIONS_V
12.1.1
-
VIEW: APPS.WSH_CUSTOMER_LOCATIONS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:WSH.WSH_CUSTOMER_LOCATIONS_V, object_name:WSH_CUSTOMER_LOCATIONS_V, status:VALID,
-
VIEW: APPS.WSH_CUSTOMER_LOCATIONS_V
12.2.2
-
VIEW: EC.ECE_SPSO_HEADERS#
12.2.2
-
View: ECE_ADVO_HEADERS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:EC.ECE_ADVO_HEADERS_V, object_name:ECE_ADVO_HEADERS_V, status:VALID, product: EC - e-Commerce Gateway , description: This view extracts advice header informationfor the outbound Application Advice (824/APERAK) transaction.@rep:scope private@rep:product EC@rep:lifecycle active@rep:displayname Application Advice Header View@rep:category BUSINESS_ENTITY EC_A , implementation_dba_data: APPS.ECE_ADVO_HEADERS_V ,
-
VIEW: APPS.GML_EC_CONTACT_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:GML.GML_EC_CONTACT_V, object_name:GML_EC_CONTACT_V, status:VALID,
-
VIEW: APPS.WSH_CUSTOMER_LOCATIONS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:WSH.WSH_CUSTOMER_LOCATIONS_V, object_name:WSH_CUSTOMER_LOCATIONS_V, status:VALID,
-
View: ECE_ADVO_HEADERS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:EC.ECE_ADVO_HEADERS_V, object_name:ECE_ADVO_HEADERS_V, status:VALID, product: EC - e-Commerce Gateway , description: This view extracts advice header informationfor the outbound Application Advice (824/APERAK) transaction.@rep:scope private@rep:product EC@rep:lifecycle active@rep:displayname Application Advice Header View@rep:category BUSINESS_ENTITY EC_A , implementation_dba_data: APPS.ECE_ADVO_HEADERS_V ,
-
VIEW: EC.ECE_ADVO_HEADERS#
12.2.2
owner:EC, object_type:VIEW, object_name:ECE_ADVO_HEADERS#, status:VALID,
-
VIEW: APPS.ECE_MVSTO_HEADERS_V
12.2.2
-
View: GML_GPOAO_ORDERS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:GML.GML_GPOAO_ORDERS_V, object_name:GML_GPOAO_ORDERS_V, status:VALID, product: GML - Process Manufacturing Logistics , description: Sales Order Header view , implementation_dba_data: APPS.GML_GPOAO_ORDERS_V ,
-
View: ECE_MVSTO_HEADERS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:EC.ECE_MVSTO_HEADERS_V, object_name:ECE_MVSTO_HEADERS_V, status:VALID, product: EC - e-Commerce Gateway , description: This view extracts header informationfor the outbound Movement Statistics (INTRASTAT) transaction.@rep:scope private@rep:product INV@rep:lifecycle active@rep:displayname Movement Statistics Header View@rep:category BUSINESS_ENTITY INV_MOVEM , implementation_dba_data: APPS.ECE_MVSTO_HEADERS_V ,
-
View: ECE_MVSTO_HEADERS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:EC.ECE_MVSTO_HEADERS_V, object_name:ECE_MVSTO_HEADERS_V, status:VALID, product: EC - e-Commerce Gateway , description: This view extracts header informationfor the outbound Movement Statistics (INTRASTAT) transaction.@rep:scope private@rep:product INV@rep:lifecycle active@rep:displayname Movement Statistics Header View@rep:category BUSINESS_ENTITY INV_MOVEM , implementation_dba_data: APPS.ECE_MVSTO_HEADERS_V ,
-
VIEW: APPS.GML_EC_CONTACT_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:GML.GML_EC_CONTACT_V, object_name:GML_EC_CONTACT_V, status:VALID,
-
View: CLN_XML_DELIVERIES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:CLN.CLN_XML_DELIVERIES_V, object_name:CLN_XML_DELIVERIES_V, status:VALID, product: CLN - Supply Chain Trading Connector for RosettaNet , description: View for SHIPMENT deliveries section in OAG SHOW_SHIPMENT_005 XML payload , implementation_dba_data: APPS.CLN_XML_DELIVERIES_V ,
-
VIEW: EC.ECE_ADVO_HEADERS_INTERFACE#
12.2.2
owner:EC, object_type:VIEW, object_name:ECE_ADVO_HEADERS_INTERFACE#, status:VALID,
-
VIEW: APPS.ECE_ADVO_HEADERS_V
12.1.1