Search Results as_current_environment
Overview
The AS_CURRENT_ENVIRONMENT table is a core data object within the Oracle E-Business Suite Sales Foundation (AS) module. It functions as a central repository for storing the current environmental context of a sales entity, typically a customer or prospect. This context is crucial for personalizing sales interactions, understanding customer priorities, and driving targeted marketing efforts. The table acts as a junction, linking key customer profile data from the Trading Community Architecture (TCA) with specific sales-related classifications defined within the Sales Foundation module itself.
Key Information Stored
The table's primary purpose is to associate a customer with their current interests and location. Its structure is defined by a primary key, CURRENT_ENVIRONMENT_ID, and several critical foreign key columns that establish these associations. The most significant columns include CUSTOMER_ID, which links to the HZ_PARTIES table to identify the party, and ADDRESS_ID, which links to HZ_PARTY_SITES to specify the current relevant address. Furthermore, the table stores interest classifications via INTEREST_TYPE_ID, PRIMARY_INTEREST_CODE_ID, and SECONDARY_INTEREST_CODE_ID, all of which reference code tables (AS_INTEREST_TYPES_B and AS_INTEREST_CODES_B) to categorize the customer's primary and secondary areas of focus or need at a given time.
Common Use Cases and Queries
This table is primarily accessed to retrieve a complete, contextual view of a customer for sales and service processes. A common use case is generating a targeted contact list for a product campaign based on customer interest codes. For example, a report to find all customers with a specific primary interest code and their corresponding address details would join AS_CURRENT_ENVIRONMENT with HZ_PARTIES and HZ_PARTY_SITES. Sample SQL to fetch this data would resemble:
- SELECT hzp.party_name, hzps.address1, asce.primary_interest_code_id
- FROM osm.as_current_environment asce,
- hz_parties hzp,
- hz_party_sites hzps
- WHERE asce.customer_id = hzp.party_id
- AND asce.address_id = hzps.party_site_id
- AND asce.primary_interest_code_id = :p_interest_code;
Data in this table is typically maintained through the application's user interface, ensuring referential integrity and business logic compliance.
Related Objects
The AS_CURRENT_ENVIRONMENT table is integral to the Sales Foundation data model, with documented relationships to several key tables. Its foreign key constraints define these critical dependencies:
- HZ_PARTIES: Linked via CUSTOMER_ID. This provides the foundational customer or party record from the TCA registry.
- HZ_PARTY_SITES: Linked via ADDRESS_ID. This supplies the physical or postal address associated with the current environment context.
- AS_INTEREST_TYPES_B: Linked via INTEREST_TYPE_ID. This defines the category or class of interest.
- AS_INTEREST_CODES_B: Linked via both PRIMARY_INTEREST_CODE_ID and SECONDARY_INTEREST_CODE_ID. This table holds the specific interest codes within a type, used to precisely classify the customer's focus.
These relationships ensure that the current environment record is always anchored to valid master data for customers, addresses, and interest classifications.
-
Table: AS_CURRENT_ENVIRONMENT
12.1.1
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_CURRENT_ENVIRONMENT, object_name:AS_CURRENT_ENVIRONMENT, status:VALID, product: AS - Sales Foundation , description: This table stores information about the current environment of the , implementation_dba_data: OSM.AS_CURRENT_ENVIRONMENT ,
-
Table: AS_CURRENT_ENVIRONMENT
12.2.2
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_CURRENT_ENVIRONMENT, object_name:AS_CURRENT_ENVIRONMENT, status:VALID, product: AS - Sales Foundation , description: This table stores information about the current environment of the , implementation_dba_data: OSM.AS_CURRENT_ENVIRONMENT ,
-
Table: AS_INTEREST_CODES_B
12.1.1
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_INTEREST_CODES_B, object_name:AS_INTEREST_CODES_B, status:VALID, product: AS - Sales Foundation , description: Define Interest code - Base table , implementation_dba_data: OSM.AS_INTEREST_CODES_B ,
-
Table: AS_INTEREST_CODES_B
12.2.2
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_INTEREST_CODES_B, object_name:AS_INTEREST_CODES_B, status:VALID, product: AS - Sales Foundation , description: Define Interest code - Base table , implementation_dba_data: OSM.AS_INTEREST_CODES_B ,
-
Table: AS_INTEREST_TYPES_B
12.2.2
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_INTEREST_TYPES_B, object_name:AS_INTEREST_TYPES_B, status:VALID, product: AS - Sales Foundation , description: Define Interest types - base table , implementation_dba_data: OSM.AS_INTEREST_TYPES_B ,
-
Table: AS_INTEREST_TYPES_B
12.1.1
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_INTEREST_TYPES_B, object_name:AS_INTEREST_TYPES_B, status:VALID, product: AS - Sales Foundation , description: Define Interest types - base table , implementation_dba_data: OSM.AS_INTEREST_TYPES_B ,
-
View: AS_CURRENT_ENVIRONMENT_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AS.AS_CURRENT_ENVIRONMENT_V, object_name:AS_CURRENT_ENVIRONMENT_V, status:VALID, product: AS - Sales Foundation , description: Current Environment , implementation_dba_data: APPS.AS_CURRENT_ENVIRONMENT_V ,
-
View: AS_CURRENT_ENVIRONMENT_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AS.AS_CURRENT_ENVIRONMENT_V, object_name:AS_CURRENT_ENVIRONMENT_V, status:VALID, product: AS - Sales Foundation , description: Current Environment , implementation_dba_data: APPS.AS_CURRENT_ENVIRONMENT_V ,