Search Results cust_acct_site_status
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.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: 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: OKX_CUST_SITE_USES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_CUST_SITE_USES_V, object_name:OKX_CUST_SITE_USES_V, status:VALID, product: OKX - Contracts Integration , description: Customer site uses , implementation_dba_data: APPS.OKX_CUST_SITE_USES_V ,
-
VIEW: APPS.WSH_CUSTOMER_SITES_V
12.1.1
-
View: OKX_CUST_SITE_USES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_CUST_SITE_USES_V, object_name:OKX_CUST_SITE_USES_V, status:VALID, product: OKX - Contracts Integration , description: Customer site uses , implementation_dba_data: APPS.OKX_CUST_SITE_USES_V ,
-
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.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_SITES_V
12.2.2
-
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: 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_LOCATIONS_V
12.2.2
-
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: APPS.OKX_CUST_SITE_USES_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.OKX_CUST_SITE_USES_V
12.2.2
-
VIEW: APPS.WSH_CUSTOMER_LOCATIONS_V
12.1.1
-
VIEW: APPS.OKX_CUST_SITE_USES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_CUST_SITE_USES_V, object_name:OKX_CUST_SITE_USES_V, status:VALID,
-
VIEW: APPS.OKX_CUST_SITE_USES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_CUST_SITE_USES_V, object_name:OKX_CUST_SITE_USES_V, status:VALID,
-
PACKAGE BODY: APPS.ASO_CHECK_TCA_PVT
12.2.2
-
PACKAGE BODY: APPS.ASO_CHECK_TCA_PVT
12.1.1
-
PACKAGE BODY: APPS.ASO_MAP_QUOTE_ORDER_INT
12.1.1
-
PACKAGE BODY: APPS.ASO_MAP_QUOTE_ORDER_INT
12.2.2
-
APPS.OKL_QA_DATA_INTEGRITY SQL Statements
12.1.1
-
PACKAGE BODY: APPS.IBE_CUSTOMER_ACCT_PVT
12.2.2
-
PACKAGE BODY: APPS.IBE_CUSTOMER_ACCT_PVT
12.1.1
-
APPS.OKL_QA_DATA_INTEGRITY SQL Statements
12.2.2
-
APPS.ASO_CHECK_TCA_PVT dependencies on ASO_DEBUG_PUB
12.2.2
-
APPS.ASO_CHECK_TCA_PVT dependencies on ASO_DEBUG_PUB
12.1.1
-
APPS.IBE_CUSTOMER_ACCT_PVT dependencies on IBE_UTIL
12.1.1
-
APPS.IBE_CUSTOMER_ACCT_PVT dependencies on IBE_UTIL
12.2.2
-
APPS.ASO_MAP_QUOTE_ORDER_INT dependencies on FND_MESSAGE
12.1.1
-
APPS.ASO_MAP_QUOTE_ORDER_INT dependencies on FND_MESSAGE
12.2.2
-
APPS.ASO_MAP_QUOTE_ORDER_INT dependencies on ASO_DEBUG_PUB
12.1.1
-
APPS.ASO_MAP_QUOTE_ORDER_INT dependencies on ASO_DEBUG_PUB
12.2.2
-
APPS.OKL_QA_DATA_INTEGRITY dependencies on OKC_K_HEADERS_B
12.1.1
-
APPS.OKL_QA_DATA_INTEGRITY dependencies on OKC_K_HEADERS_B
12.2.2
-
APPS.OKL_QA_DATA_INTEGRITY dependencies on OKC_RULES_B
12.1.1
-
APPS.OKL_QA_DATA_INTEGRITY dependencies on OKC_RULES_B
12.2.2
-
APPS.ASO_MAP_QUOTE_ORDER_INT dependencies on FND_API
12.2.2
-
APPS.ASO_MAP_QUOTE_ORDER_INT dependencies on FND_API
12.1.1
-
eTRM - OKX Tables and Views
12.2.2
-
eTRM - OKX Tables and Views
12.1.1
-
APPS.IBE_CUSTOMER_ACCT_PVT dependencies on FND_API
12.1.1
-
APPS.IBE_CUSTOMER_ACCT_PVT dependencies on FND_API
12.2.2
-
eTRM - WSH Tables and Views
12.1.1
description: Stores hierarchy for zones. Each region component of a zone has a record in this table. ,
-
eTRM - WSH Tables and Views
12.2.2
description: Stores hierarchy for zones. Each region component of a zone has a record in this table. ,
-
PACKAGE BODY: APPS.OKL_QA_DATA_INTEGRITY
12.1.1
-
PACKAGE BODY: APPS.OKL_QA_DATA_INTEGRITY
12.2.2
-
PACKAGE BODY: APPS.OKL_OPEN_INTERFACE_PVT
12.1.1
-
PACKAGE BODY: APPS.OKL_OPEN_INTERFACE_PVT
12.2.2