Search Results cs_cp_audit
Overview
HZ_CUST_ACCT_SITES_ALL is the Receivables (AR) customer account site table in Oracle E-Business Suite 12.1.1 and 12.2.2. It stores every customer account site across all operating units, making it the transactional address layer that links a customer account (HZ_CUST_ACCOUNTS) to a physical location (HZ_PARTY_SITES). Each row represents one address assigned to one customer account and is qualified by ORG_ID, reflecting its multi-org design.
In the Trading Community Architecture (TCA) model, this table sits between party-level address data and the operational site uses that drive transactions. Order Management, Receivables, Advanced Pricing, Service, and Projects all resolve a bill-to, ship-to, or remit-to location through this table. From a Data Vault modeling perspective, the heuristic classification is a hub: CUST_ACCT_SITE_ID is the durable business key, with HZ_CUST_ACCOUNTS, HZ_PARTY_SITES, and RA_TERRITORIES acting as referenced hubs or dimensions.
Key Information Stored
The surrogate primary key is CUST_ACCT_SITE_ID, enforced by HZ_CUST_ACCT_SITES_PK. Business-key candidates are defined by three unique indexes: HZ_CUST_ACCT_SITES_U1 (CUST_ACCT_SITE_ID), HZ_CUST_ACCT_SITES_U2 (ORIG_SYSTEM_REFERENCE, ORG_ID), and HZ_CUST_ACCT_SITES_U3 (TP_HEADER_ID).
- CUST_ACCT_SITE_ID — surrogate primary key for the site.
- CUST_ACCOUNT_ID — foreign key to HZ_CUST_ACCOUNTS, the owning customer account.
- PARTY_SITE_ID — foreign key to HZ_PARTY_SITES, the underlying party address.
- TERRITORY_ID — foreign key to RA_TERRITORIES, the associated territory.
- ORG_ID — operating unit that owns the site row (multi-org partitioning).
- ORIG_SYSTEM_REFERENCE — source-system identifier for imported or legacy sites (U2).
- TP_HEADER_ID — trading-partner header identifier (U3).
- STATUS — active/inactive state of the site.
- BILL_TO_FLAG, SHIP_TO_FLAG, MARKET_FLAG, KEY_ACCOUNT_FLAG — usage indicator flags.
- CUSTOMER_CATEGORY_CODE — customer classification at the site level.
- ADDRESS_TEXT, TERRITORY, TRANSLATED_CUSTOMER_NAME — descriptive address and territory attributes.
- LANGUAGE — language of the address text.
- OBJECT_VERSION_NUMBER — optimistic locking control column.
Common Use Cases and Queries
The table is most commonly queried to resolve the site-level addresses used on a transaction. Because Order Management header acknowledgements reference it directly (OE_HEADER_ACKS.SHIP_TO_ADDRESS_ID, SOLD_TO_ADDRESS_ID, and INVOICE_ADDRESS_ID all point to CUST_ACCT_SITE_ID), a typical query joins OE_HEADER_ACKS to this table to obtain the actual ship-to, sold-to, and invoice address for an acknowledgement.
Representative patterns include:
- Listing all sites for a customer: SELECT cust_acct_site_id, party_site_id, status FROM hz_cust_acct_sites_all WHERE cust_account_id = :p_account AND org_id = :p_org;
- Identifying bill-to sites: filter on BILL_TO_FLAG = 'Y'.
- Resolving addresses on a Receivables transaction by joining RA_CUSTOMER_TRX_ALL.BILL_TO_ADDRESS_ID or SHIP_TO_ADDRESS_ID to CUST_ACCT_SITE_ID and then to HZ_PARTY_SITES for the location details.
- Cross-validating Order Management header acknowledgements against TCA site data using OE_HEADER_ACKS.
- Reporting site usage across operating units by grouping on ORG_ID and STATUS.
Related Objects
HZ_CUST_ACCT_SITES_ALL is a heavily referenced hub. The most significant dependent objects and join columns are:
- HZ_CUST_ACCOUNTS — parent customer account (HZ_CUST_ACCT_SITES_ALL.CUST_ACCOUNT_ID).
- HZ_PARTY_SITES — physical party address (PARTY_SITE_ID).
- HZ_CUST_SITE_USES_ALL — operational site uses such as bill-to and ship-to (CUST_ACCT_SITE_ID).
- OE_HEADER_ACKS — order acknowledgement header addresses (SHIP_TO_ADDRESS_ID, SOLD_TO_ADDRESS_ID, INVOICE_ADDRESS_ID).
- OE_LINE_ACKS — acknowledgement line ship-to address (SHIP_TO_ADDRESS_ID).
- RA_CUSTOMER_TRX_ALL — Receivables transactions (BILL_TO_ADDRESS_ID, SHIP_TO_ADDRESS_ID, REMIT_TO_ADDRESS_ID).
- RA_REMIT_TOS_ALL — remit-to address definitions.
- HZ_CUST_CONTACT_POINTS — contact points attached to a site (CUST_ACCOUNT_SITE_ID).
- CS_CUSTOMER_PRODUCTS_ALL and CS_SYSTEMS_ALL_B — installed base bill-to site references (BILL_TO_SITE_USE_ID).
- PA_DRAFT_INVOICES_ALL and PA_PROJECT_CUSTOMERS — Projects billing and shipping address references.
-
Table: HZ_CUST_ACCT_SITES_ALL
12.2.2
owner:AR, object_type:TABLE, fnd_design_data:AR.HZ_CUST_ACCT_SITES_ALL, object_name:HZ_CUST_ACCT_SITES_ALL, status:VALID, product: AR - Receivables , description: Stores all customer account sites across all operating units , implementation_dba_data: AR.HZ_CUST_ACCT_SITES_ALL ,
-
Table: HZ_PARTY_SITES
12.2.2
owner:AR, object_type:TABLE, fnd_design_data:AR.HZ_PARTY_SITES, object_name:HZ_PARTY_SITES, status:VALID, product: AR - Receivables , description: Links party to physical locations , implementation_dba_data: AR.HZ_PARTY_SITES ,
-
Table: HZ_PARTY_SITES
12.1.1
owner:AR, object_type:TABLE, fnd_design_data:AR.HZ_PARTY_SITES, object_name:HZ_PARTY_SITES, status:VALID, product: AR - Receivables , description: Links party to physical locations , implementation_dba_data: AR.HZ_PARTY_SITES ,
-
Table: HZ_CUST_ACCT_SITES_ALL
12.1.1
owner:AR, object_type:TABLE, fnd_design_data:AR.HZ_CUST_ACCT_SITES_ALL, object_name:HZ_CUST_ACCT_SITES_ALL, status:VALID, product: AR - Receivables , description: Stores all customer account sites across all operating units , implementation_dba_data: AR.HZ_CUST_ACCT_SITES_ALL ,
-
Table: HZ_CUST_ACCOUNTS
12.1.1
owner:AR, object_type:TABLE, fnd_design_data:AR.HZ_CUST_ACCOUNTS, object_name:HZ_CUST_ACCOUNTS, status:VALID, product: AR - Receivables , description: Stores information about customer accounts. , implementation_dba_data: AR.HZ_CUST_ACCOUNTS ,
-
Table: HZ_CUST_ACCOUNTS
12.2.2
owner:AR, object_type:TABLE, fnd_design_data:AR.HZ_CUST_ACCOUNTS, object_name:HZ_CUST_ACCOUNTS, status:VALID, product: AR - Receivables , description: Stores information about customer accounts. , implementation_dba_data: AR.HZ_CUST_ACCOUNTS ,