Search Results ar_xml_invoice_tp_v
Overview
AR_XML_INVOICE_TP_V is a Receivables (AR) view owned by the APPS schema in Oracle E-Business Suite 12.1.1 and 12.2.2. Its name follows the AR_XML_* naming convention, which identifies objects built to supply data to the Oracle Receivables e-invoicing and XML invoice generation framework. The suffix "TP" denotes a trading partner perspective, meaning the view assembles the party, account, site, address, and contact information required to render the trading partner (bill-to/customer) block of an outbound XML invoice document.
The view resolves the customer hierarchy model introduced with the Oracle Trading Community Architecture (TCA) and flattens it into a single denormalized row per customer account site use. Rather than exposing raw TCA identifiers alone, it derives formatted address strings and contact display names, making the output directly consumable by XML publishing templates, BI Publisher reports, and custom outbound interfaces. It is a read-only reporting and integration object; no DML is possible against it.
Underlying Base Objects
The view is defined over TCA entity and relationship synonyms, supplemented by two PL/SQL packages and a territory lookup view. The documented base objects are:
- HZ_CUST_ACCOUNTS — the customer account header (account number, account id).
- HZ_PARTIES — the party record supplying the party name and tax reference.
- HZ_CUST_ACCOUNT_ROLES — account role assignments, exposing CUST_ACCOUNT_ROLE_ID.
- HZ_CUST_ACCT_SITES_ALL — the customer account site, used to detect whether an address is defined.
- HZ_CUST_SITE_USES_ALL — the site use (for example bill-to or ship-to), exposing SITE_USE_ID.
- HZ_PARTY_SITES — links the party to its location; drives the USER1–USER5 descriptive flexfield calls.
- HZ_LOCATIONS — the raw address components (ADDRESS1–ADDRESS4, CITY, COUNTY, STATE, PROVINCE, POSTAL_CODE, ADDRESS_STYLE).
- HZ_RELATIONSHIPS — contact relationship data used to reach contact parties.
- FND_TERRITORIES_VL — supplies TERRITORY_SHORT_NAME for the country.
- ARH_ADDR_PKG — provides ARXTW_FORMAT_ADDRESS, invoked twice to produce the ADDRESS and COMPLETE_ADDRESS columns.
- AR_XML_VIEW_FUNCTIONS — provides TP_FUNCTION1 through TP_FUNCTION5, which populate the USER1–USER5 columns from the party site's descriptive flexfield.
Key Columns
- CUST_ACCOUNT_ID, SITE_USE_ID, CUST_ACCOUNT_ROLE_ID — surrogate keys identifying the account, site use, and role.
- PARTY_NAME, ACCOUNT_NUMBER — the trading partner's name and Receivables account number.
- LOCATION — the location identifier associated with the account site.
- ADDRESS — a formatted address string built from ADDRESS1–ADDRESS4 only, returned as NULL when no CUST_ACCT_SITE_ID exists.
- COMPLETE_ADDRESS — the same formatting logic extended to include CITY, COUNTY, STATE, PROVINCE, POSTAL_CODE, and TERRITORY_SHORT_NAME.
- ADDRESS1–ADDRESS4, CITY, COUNTY, STATE, PROVINCE, POSTAL_CODE, TERRITORY_SHORT_NAME — the individual address elements.
- NAME, EMAIL_ADDRESS, PRIMARY_PHONE_* — the contact person's derived display name, email, and phone components.
- TAX_REFERENCE — the party tax registration reference.
- USER1–USER5 — party-site flexfield values returned by TP_FUNCTION1–5.
Common Use Cases and Queries
Typical uses include supplying trading partner blocks to XML invoice templates, validating bill-to address and contact data, and extracting formatted addresses for customer-facing output.
Retrieve the trading partner block for a specific account:
- SELECT party_name, account_number, complete_address, name, email_address FROM ar_xml_invoice_tp_v WHERE cust_account_id = :p_account_id;
- SELECT site_use_id, address, city, state, postal_code, territory_short_name FROM ar_xml_invoice_tp_v WHERE cust_account_role_id = :p_role_id;
- SELECT cust_account_id, party_name, tax_reference FROM ar_xml_invoice_tp_v WHERE tax_reference IS NOT NULL AND territory_short_name = 'US';
- SELECT party_name, account_number, name, primary_phone_number FROM ar_xml_invoice_tp_v WHERE email_address IS NULL;
Because the view joins only base TCA entities and calls package functions on each party site, performance is directly related to the volume of customer sites queried. Filtering on CUST_ACCOUNT_ID, SITE_USE_ID, or CUST_ACCOUNT_ROLE_ID is recommended before applying formatting-level filters.
-
View: AR_XML_INVOICE_TP_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AR.AR_XML_INVOICE_TP_V, object_name:AR_XML_INVOICE_TP_V, status:VALID, product: AR - Receivables , implementation_dba_data: APPS.AR_XML_INVOICE_TP_V ,
-
View: AR_XML_INVOICE_TP_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AR.AR_XML_INVOICE_TP_V, object_name:AR_XML_INVOICE_TP_V, status:VALID, product: AR - Receivables , implementation_dba_data: APPS.AR_XML_INVOICE_TP_V ,
-
PACKAGE: APPS.AR_XML_VIEW_FUNCTIONS
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AR_XML_VIEW_FUNCTIONS, status:VALID,
-
PACKAGE: APPS.AR_XML_VIEW_FUNCTIONS
12.1.1
owner:APPS, object_type:PACKAGE, object_name:AR_XML_VIEW_FUNCTIONS, status:VALID,
-
PACKAGE: APPS.ARH_ADDR_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:ARH_ADDR_PKG, status:VALID,
-
PACKAGE: APPS.ARH_ADDR_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:ARH_ADDR_PKG, status:VALID,
-
VIEW: APPS.AR_XML_INVOICE_TP_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AR.AR_XML_INVOICE_TP_V, object_name:AR_XML_INVOICE_TP_V, status:VALID,
-
VIEW: APPS.AR_XML_INVOICE_TP_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AR.AR_XML_INVOICE_TP_V, object_name:AR_XML_INVOICE_TP_V, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
SYNONYM: APPS.HZ_CUST_ACCOUNT_ROLES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:HZ_CUST_ACCOUNT_ROLES, status:VALID,
-
12.1.1 FND Design Data
12.1.1
-
12.2.2 FND Design Data
12.2.2
-
SYNONYM: APPS.HZ_CUST_ACCOUNT_ROLES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_CUST_ACCOUNT_ROLES, status:VALID,
-
VIEW: APPS.FND_TERRITORIES_VL
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:FND.FND_TERRITORIES_VL, object_name:FND_TERRITORIES_VL, status:VALID,
-
VIEW: APPS.FND_TERRITORIES_VL
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:FND.FND_TERRITORIES_VL, object_name:FND_TERRITORIES_VL, status:VALID,
-
SYNONYM: APPS.HZ_CUST_ACCT_SITES_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:HZ_CUST_ACCT_SITES_ALL, status:VALID,
-
SYNONYM: APPS.HZ_CUST_ACCT_SITES_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_CUST_ACCT_SITES_ALL, status:VALID,
-
SYNONYM: APPS.HZ_CUST_SITE_USES_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:HZ_CUST_SITE_USES_ALL, status:VALID,
-
SYNONYM: APPS.HZ_CUST_SITE_USES_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_CUST_SITE_USES_ALL, status:VALID,
-
SYNONYM: APPS.HZ_RELATIONSHIPS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:HZ_RELATIONSHIPS, status:VALID,
-
SYNONYM: APPS.HZ_RELATIONSHIPS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_RELATIONSHIPS, status:VALID,
-
SYNONYM: APPS.HZ_LOCATIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_LOCATIONS, status:VALID,
-
SYNONYM: APPS.HZ_LOCATIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:HZ_LOCATIONS, status:VALID,
-
SYNONYM: APPS.HZ_PARTY_SITES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:HZ_PARTY_SITES, status:VALID,
-
SYNONYM: APPS.HZ_PARTY_SITES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_PARTY_SITES, status:VALID,
-
SYNONYM: APPS.HZ_CUST_ACCOUNTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:HZ_CUST_ACCOUNTS, status:VALID,
-
SYNONYM: APPS.HZ_CUST_ACCOUNTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_CUST_ACCOUNTS, status:VALID,
-
SYNONYM: APPS.HZ_PARTIES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_PARTIES, status:VALID,
-
SYNONYM: APPS.HZ_PARTIES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:HZ_PARTIES, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
eTRM - AR Tables and Views
12.2.2
description: Territory information ,
-
eTRM - AR Tables and Views
12.1.1
description: Territory information ,
-
eTRM - FND Tables and Views
12.1.1
description: No longer used ,
-
eTRM - FND Tables and Views
12.1.1
description: No longer used ,
-
eTRM - AR Tables and Views
12.1.1
description: Territory information ,
-
eTRM - AR Tables and Views
12.2.2
description: Territory information ,