Search Results as_lead_log
Overview
The AS_LEAD_LOG table is a core data object within the Oracle E-Business Suite Sales Foundation module (AS). Its primary function is to serve as an audit and change history log for opportunities, which are managed as "Leads" in the application. This table systematically records modifications to opportunity records over time, providing a critical audit trail for sales processes, compliance, and analytical reporting. By tracking historical changes, it enables users to review the evolution of an opportunity, understand past updates, and analyze sales performance trends.
Key Information Stored
While the provided metadata does not list specific columns beyond the primary and foreign keys, the table's description and standard Oracle EBS design patterns indicate it typically stores several key data points. The primary key, LOG_ID, uniquely identifies each change log entry. The foreign key column, LEAD_ID, links each log entry to its parent opportunity record in the AS_LEADS_ALL table. Other columns commonly found in such audit tables include the date and time of the change (LAST_UPDATE_DATE), the user who made the modification (LAST_UPDATED_BY), and the specific column or attribute that was altered. It may also store the old value and the new value for the changed field, along with the type of change operation (e.g., INSERT, UPDATE).
Common Use Cases and Queries
The primary use case for AS_LEAD_LOG is generating audit reports and analyzing the history of opportunity updates. A sales manager might query this table to see all changes made to a high-value deal, or to monitor the frequency of updates as an indicator of sales activity. A common reporting pattern involves joining the log table with the lead and salesperson tables to provide context. A sample query to retrieve the change history for a specific opportunity might resemble:
- SELECT log.LOG_ID, log.LAST_UPDATE_DATE, usr.USER_NAME, log.CHANGED_FIELD, log.OLD_VALUE, log.NEW_VALUE
- FROM AS_LEAD_LOG log, FND_USER usr
- WHERE log.LEAD_ID = :p_lead_id
- AND log.LAST_UPDATED_BY = usr.USER_ID
- ORDER BY log.LAST_UPDATE_DATE DESC;
It is crucial to note the provided metadata states this table is "Not implemented in this database," which may indicate it is a documented but inactive object in standard deployments, or its functionality is provided through an alternative mechanism.
Related Objects
The AS_LEAD_LOG table has a direct and fundamental relationship with the AS_LEADS_ALL table, which holds the current master record for all opportunities. The foreign key constraint (AS_LEAD_LOG.LEAD_ID references AS_LEADS_ALL) enforces this relationship. Depending on the implementation, related objects may include the AS_LEAD_LINES_ALL table for line-item changes, and standard Oracle EBS objects like FND_USER for user information. Programmatic access to lead data, and potentially its history, is typically managed through the public Oracle Sales APIs rather than via direct table manipulation.
-
Table: AS_LEAD_LOG
12.2.2
product: AS - Sales Foundation , description: Holds opportunity change history , implementation_dba_data: Not implemented in this database ,
-
Table: AS_LEAD_LOG
12.1.1
product: AS - Sales Foundation , description: Holds opportunity change history , implementation_dba_data: Not implemented in this database ,
-
Table: AS_LEADS_ALL
12.2.2
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_LEADS_ALL, object_name:AS_LEADS_ALL, status:VALID, product: AS - Sales Foundation , description: Holds sales opportunities , implementation_dba_data: OSM.AS_LEADS_ALL ,
-
Table: AS_LEADS_ALL
12.1.1
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_LEADS_ALL, object_name:AS_LEADS_ALL, status:VALID, product: AS - Sales Foundation , description: Holds sales opportunities , implementation_dba_data: OSM.AS_LEADS_ALL ,
-
12.2.2 FND Design Data
12.2.2
-
TABLE: OSM.AS_SALES_LEADS_LOG
12.2.2
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_SALES_LEADS_LOG, object_name:AS_SALES_LEADS_LOG, status:VALID,
-
TABLE: OSM.AS_SALES_LEADS_LOG
12.1.1
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_SALES_LEADS_LOG, object_name:AS_SALES_LEADS_LOG, status:VALID,
-
12.1.1 FND Design Data
12.1.1
-
TABLE: OSM.AS_LEADS_LOG
12.2.2
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_LEADS_LOG, object_name:AS_LEADS_LOG, status:VALID,
-
TABLE: OSM.AS_LEADS_LOG
12.1.1
owner:OSM, object_type:TABLE, fnd_design_data:AS.AS_LEADS_LOG, object_name:AS_LEADS_LOG, status:VALID,
-
eTRM - AS Tables and Views
12.2.2
description: - Retrofitted ,
-
eTRM - AS Tables and Views
12.1.1
description: - Retrofitted ,