Search Results acct_relate
Overview
APPS.CSC_ACCT_RELATIONSHIP_V is a reporting and integration view in Oracle E-Business Suite (12.1.1 and 12.2.2) that exposes customer account relationship data from the Oracle Receivables and Oracle Trading Community Architecture (TCA) model. It is defined in the APPS schema and is primarily consumed by downstream applications, concurrent programs, and interfaces that need a denormalized, human-readable representation of the relationships that exist between customer accounts. For example, it associates a primary customer account with a related account and resolves coded values — the relationship type and the status — into their descriptive text via AR_LOOKUPS.
The code_status search term maps directly to this view: the STATUS column in HZ_CUST_ACCT_RELATE is joined to AR_LOOKUPS.LOOKUP_CODE where LOOKUP_TYPE = 'CODE_STATUS'. This means the view is one of the standard mechanisms through which the meaning of a customer account relationship's code status is presented in reports and integrations.
Underlying Base Objects
Per the documented ETRM 12.2.2 metadata, the view is defined over three referenced base objects:
- HZ_CUST_ACCT_RELATE (SYNONYM) — the driving relationship table (
acct_relatein the view text). It holdsCUST_ACCOUNT_ID,RELATED_CUST_ACCOUNT_ID,RELATIONSHIP_TYPE,STATUS,CUSTOMER_RECIPROCAL_FLAG,BILL_TO_FLAG,SHIP_TO_FLAG, and the DFF/audit columns. - HZ_CUST_ACCOUNTS (SYNONYM) — provides the related account's descriptive attributes (
ACCOUNT_NAME,ACCOUNT_NUMBER), joined onRELATED_CUST_ACCOUNT_ID = CUST_ACCOUNT_ID(cust_acct). - AR_LOOKUPS (VIEW) — used twice to resolve codes into descriptions:
status_lookupfiltered toLOOKUP_TYPE = 'CODE_STATUS'and joined onSTATUS = LOOKUP_CODE, andrelation_lookupfiltered toLOOKUP_TYPE = 'RELATIONSHIP_TYPE'and joined onRELATIONSHIP_TYPE = LOOKUP_CODE.
Note that the relationship-type lookup is an outer join ((+)), whereas the status lookup is an inner join, so every row returned must have a valid CODE_STATUS lookup entry.
Key Columns
- CUST_ACCOUNT_ID / RELATED_CUST_ACCOUNT_ID — the two accounts participating in the relationship.
- ACCOUNT_NAME / ACCOUNT_NUMBER — descriptive identifiers of the related account.
- RELATIONSHIP_TYPE and DESCRIPTION (relation_lookup) — the code and its meaning.
- STATUS and DESCRIPTION (status_lookup, from
CODE_STATUS) — the coded status and its description. - CUSTOMER_RECIPROCAL_FLAG — indicates whether the relationship is reciprocal.
- BILL_TO_FLAG / SHIP_TO_FLAG — whether the related account is used as a bill-to or ship-to site.
- Audit and DFF columns —
CREATION_DATE,CREATED_BY,LAST_UPDATE_DATE,LAST_UPDATED_BY,LAST_UPDATE_LOGIN,OBJECT_VERSION_NUMBER,ATTRIBUTE_CATEGORY, andATTRIBUTE1–ATTRIBUTE15.
Common Use Cases and Queries
Typical uses include customer hierarchy reporting, relationship validation in Order Management and Receivables, and integration extracts that require resolved status descriptions rather than raw codes.
SELECT cust_account_id,
related_cust_account_id,
account_number,
account_name,
relationship_type,
status,
description
FROM apps.csc_acct_relationship_v
WHERE status = 'A';
SELECT r.account_number related_account,
r.description status_description,
r.bill_to_flag,
r.ship_to_flag
FROM apps.csc_acct_relationship_v r
WHERE r.cust_account_id = :p_cust_account_id
AND r.customer_reciprocal_flag = 'Y';
Because all joins are to TCA and AR_LOOKUPS only, the view performs well for point lookups by account, but broad scans should be filtered by CUST_ACCOUNT_ID or STATUS to avoid full scans of HZ_CUST_ACCT_RELATE.
-
VIEW: APPS.CSC_ACCT_RELATIONSHIP_V
12.2.2
-
VIEW: APPS.CSC_ACCT_RELATIONSHIP_V
12.1.1
-
VIEW: APPS.AST_ACCT_RELATIONSHIP_V
12.1.1
-
VIEW: APPS.AST_ACCT_RELATIONSHIP_V
12.2.2
-
View: XNC_ACCT_RELATIONSHIP_V
12.1.1
product: XNC - Sales for Communications (Obsolete) , description: XNC_ACCT_RELATIONSHIP_V retrieves related accounts for a customer account. , implementation_dba_data: Not implemented in this database ,
-
View: XNC_ACCT_RELATIONSHIP_V
12.2.2
product: XNC - Sales for Communications (Obsolete) , description: XNC_ACCT_RELATIONSHIP_V retrieves related accounts for a customer account. , implementation_dba_data: Not implemented in this database ,
-
View: CSC_ACCT_RELATIONSHIP_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:CSC.CSC_ACCT_RELATIONSHIP_V, object_name:CSC_ACCT_RELATIONSHIP_V, status:VALID, product: CSC - Customer Care , description: CSC_ACCT_RELATIONSHIP_V retrieves related accounts for a customer account. , implementation_dba_data: APPS.CSC_ACCT_RELATIONSHIP_V ,
-
View: CSC_ACCT_RELATIONSHIP_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:CSC.CSC_ACCT_RELATIONSHIP_V, object_name:CSC_ACCT_RELATIONSHIP_V, status:VALID, product: CSC - Customer Care , description: CSC_ACCT_RELATIONSHIP_V retrieves related accounts for a customer account. , implementation_dba_data: APPS.CSC_ACCT_RELATIONSHIP_V ,
-
View: AST_ACCT_RELATIONSHIP_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AST.AST_ACCT_RELATIONSHIP_V, object_name:AST_ACCT_RELATIONSHIP_V, status:VALID, product: AST - TeleSales , description: AST_ACCT_RELATIONSHIP_V retrieves related accounts for a customer account. , implementation_dba_data: APPS.AST_ACCT_RELATIONSHIP_V ,
-
View: AST_ACCT_RELATIONSHIP_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AST.AST_ACCT_RELATIONSHIP_V, object_name:AST_ACCT_RELATIONSHIP_V, status:VALID, product: AST - TeleSales , description: AST_ACCT_RELATIONSHIP_V retrieves related accounts for a customer account. , implementation_dba_data: APPS.AST_ACCT_RELATIONSHIP_V ,