Search Results ap_aud_audit_reasons
Overview
The AP_AUD_AUDIT_REASONS table is a core data repository within the Oracle E-Business Suite Payables (AP) module, specifically for versions 12.1.1 and 12.2.2. It serves a critical control function in the expense report management lifecycle by providing an auditable record of the rationale behind the audit of an employee expense report. When an expense report is flagged for review, the system uses this table to log the specific reason for that audit action. This ensures compliance, supports internal controls, and provides a clear historical trail for financial governance. Its existence is fundamental to the automated and manual audit workflows within Oracle Payables.
Key Information Stored
Based on the provided ETRM metadata, the table's primary purpose is to store discrete audit reason records linked to expense reports. The documented structure highlights the following key identifier:
- AUDIT_REASON_ID: Serves as the primary key for the table, uniquely identifying each audit reason record. This column is the anchor for the table's relationships and data integrity.
While the full column list is not detailed in the excerpt, the table's description and foreign key relationship imply it must also store a foreign key column (likely REPORT_HEADER_ID) to link each reason to a specific expense report header in the AP_EXPENSE_REPORT_HEADERS_ALL table. Additional columns would typically store the audit reason code or description, creation date, and the identifier of the user or process that initiated the audit.
Common Use Cases and Queries
This table is central to audit trail reporting and analysis of expense report reviews. A common use case is generating a report of all expense reports audited within a specific period, along with the documented reasons, for internal audit or manager review. Another scenario involves analyzing audit trends to identify common policy violations or problematic expense categories. A typical query would join this table to the expense report headers to retrieve this information.
Sample Query Pattern:
SELECT aerh.report_header_id, aerh.employee_name, aerh.total_amount,
aar.audit_reason_id, aar.audit_reason_code
FROM ap_expense_report_headers_all aerh,
ap_aud_audit_reasons aar
WHERE aerh.report_header_id = aar.report_header_id
AND aerh.creation_date BETWEEN :p_start_date AND :p_end_date
ORDER BY aerh.creation_date DESC;
Related Objects
The AP_AUD_AUDIT_REASONS table has a documented, direct foreign key relationship with a core Payables table, as per the provided metadata:
- AP_EXPENSE_REPORT_HEADERS_ALL: This is the primary related table. The foreign key from AP_AUD_AUDIT_REASONS (the column REPORT_HEADER_ID, as indicated in the metadata) references the primary key of AP_EXPENSE_REPORT_HEADERS_ALL. This relationship enforces that every audit reason must be associated with a valid expense report header. This is a one-to-many relationship, where a single expense report can have multiple audit reasons recorded against it.
Other related objects not listed in the excerpt but commonly associated would include the AP_AUD_AUDIT_RULES table (which may define the rules triggering the audit) and the AP_AUD_AUDIT_REVIEWS table (which may store the review outcome).
-
Table: AP_AUD_AUDIT_REASONS
12.1.1
owner:AP, object_type:TABLE, fnd_design_data:SQLAP.AP_AUD_AUDIT_REASONS, object_name:AP_AUD_AUDIT_REASONS, status:VALID, product: AP - Payables , description: This table stores the reasons why an expense report is audited. , implementation_dba_data: AP.AP_AUD_AUDIT_REASONS ,
-
Table: AP_AUD_AUDIT_REASONS
12.2.2
owner:AP, object_type:TABLE, fnd_design_data:SQLAP.AP_AUD_AUDIT_REASONS, object_name:AP_AUD_AUDIT_REASONS, status:VALID, product: AP - Payables , description: This table stores the reasons why an expense report is audited. , implementation_dba_data: AP.AP_AUD_AUDIT_REASONS ,
-
APPS.AP_WEB_AUDIT_UTILS dependencies on AP_AUD_AUDIT_REASONS
12.1.1
-
APPS.AP_WEB_ARCHIVE_PURGE_ER dependencies on AP_AUD_AUDIT_REASONS
12.2.2
-
APPS.AP_WEB_AUDIT_UTILS dependencies on AP_AUD_AUDIT_REASONS
12.2.2
-
APPS.AP_WEB_AUDIT_PROCESS dependencies on AP_AUD_AUDIT_REASONS
12.2.2
-
APPS.AP_WEB_AUDIT_PROCESS dependencies on AP_AUD_AUDIT_REASONS
12.1.1
-
APPS.AP_WEB_EXPENSE_WF dependencies on AP_WEB_AUDIT_UTILS
12.2.2
-
VIEW: AP.AP_AUD_AUDIT_REASONS#
12.2.2
owner:AP, object_type:VIEW, object_name:AP_AUD_AUDIT_REASONS#, status:VALID,
-
SYNONYM: APPS.AP_AUD_AUDIT_REASONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AP_AUD_AUDIT_REASONS, status:VALID,
-
SYNONYM: APPS.AP_AUD_AUDIT_REASONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_AUD_AUDIT_REASONS, status:VALID,
-
VIEW: AP.AP_AUD_AUDIT_REASONS#
12.2.2
-
APPS.AP_WEB_EXPENSE_WF dependencies on AP_WEB_AUDIT_UTILS
12.1.1
-
TABLE: AP.AP_AUD_AUDIT_REASONS
12.2.2
owner:AP, object_type:TABLE, fnd_design_data:SQLAP.AP_AUD_AUDIT_REASONS, object_name:AP_AUD_AUDIT_REASONS, status:VALID,
-
TABLE: AP.AP_AUD_AUDIT_REASONS
12.1.1
owner:AP, object_type:TABLE, fnd_design_data:SQLAP.AP_AUD_AUDIT_REASONS, object_name:AP_AUD_AUDIT_REASONS, status:VALID,
-
APPS.AP_WEB_EXPENSE_WF dependencies on AP_WEB_AUDIT_QUEUE_UTILS
12.1.1
-
APPS.AP_WEB_ARCHIVE_PURGE_ER dependencies on AP_AUD_AUDIT_REASONS_ARC
12.2.2
-
Table: AP_EXPENSE_REPORT_HEADERS_ALL
12.1.1
owner:AP, object_type:TABLE, fnd_design_data:SQLAP.AP_EXPENSE_REPORT_HEADERS_ALL, object_name:AP_EXPENSE_REPORT_HEADERS_ALL, status:VALID, product: AP - Payables , description: Header information about employee expense reports , implementation_dba_data: AP.AP_EXPENSE_REPORT_HEADERS_ALL ,
-
APPS.AP_WEB_EXPENSE_WF dependencies on AP_WEB_AUDIT_QUEUE_UTILS
12.2.2
-
APPS.AP_WEB_AUDIT_PROCESS dependencies on FND_GLOBAL
12.2.2
-
Table: AP_EXPENSE_REPORT_HEADERS_ALL
12.2.2
owner:AP, object_type:TABLE, fnd_design_data:SQLAP.AP_EXPENSE_REPORT_HEADERS_ALL, object_name:AP_EXPENSE_REPORT_HEADERS_ALL, status:VALID, product: AP - Payables , description: Header information about employee expense reports , implementation_dba_data: AP.AP_EXPENSE_REPORT_HEADERS_ALL ,
-
PACKAGE BODY: APPS.AP_WEB_AUDIT_PROCESS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AP_WEB_AUDIT_PROCESS, status:VALID,
-
APPS.AP_WEB_AUDIT_PROCESS dependencies on FND_GLOBAL
12.1.1
-
PACKAGE BODY: APPS.AP_WEB_AUDIT_PROCESS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_WEB_AUDIT_PROCESS, status:VALID,
-
APPS.AP_WEB_AUDIT_HOOK SQL Statements
12.2.2
-
PACKAGE BODY: APPS.AP_WEB_ARCHIVE_PURGE_ER
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_WEB_ARCHIVE_PURGE_ER, status:VALID,
-
APPS.AP_WEB_AUDIT_UTILS dependencies on AP_WEB_POLICY_UTILS
12.2.2
-
PACKAGE BODY: APPS.AP_WEB_AUDIT_UTILS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AP_WEB_AUDIT_UTILS, status:VALID,
-
PACKAGE BODY: APPS.AP_WEB_AUDIT_UTILS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_WEB_AUDIT_UTILS, status:VALID,
-
APPS.AP_WEB_AUDIT_HOOK SQL Statements
12.1.1
-
APPS.AP_WEB_ARCHIVE_PURGE_ER dependencies on AP_EXP_REPORT_HEADERS_GT
12.2.2
-
APPS.AP_WEB_AUDIT_UTILS dependencies on AP_WEB_POLICY_UTILS
12.1.1
-
APPS.AP_WEB_EXPENSE_WF dependencies on AP_WEB_DB_VIOLATIONS_PKG
12.1.1
-
APPS.AP_WEB_EXPENSE_WF dependencies on AP_WEB_DB_VIOLATIONS_PKG
12.2.2
-
12.2.2 DBA Data
12.2.2
-
PACKAGE BODY: APPS.AP_WEB_AUDIT_HOOK
12.1.1
-
PACKAGE: APPS.AP_WEB_AUDIT_HOOK
12.1.1
-
12.2.2 DBA Data
12.2.2
-
12.1.1 FND Design Data
12.1.1
-
12.2.2 FND Design Data
12.2.2
-
PACKAGE BODY: APPS.AP_WEB_AUDIT_HOOK
12.2.2
-
PACKAGE: APPS.AP_WEB_AUDIT_HOOK
12.2.2
-
APPS.AP_WEB_AUDIT_PROCESS SQL Statements
12.1.1
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
APPS.AP_WEB_AUDIT_PROCESS SQL Statements
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
APPS.AP_WEB_AUDIT_PROCESS dependencies on AP_EXPENSE_REPORT_HEADERS_ALL
12.1.1
-
12.2.2 DBA Data
12.2.2