Search Results ap_pol_violations_all
Overview
AP_POL_VIOLATIONS_ALL is a Payables (AP) module table in Oracle E-Business Suite 12.1.1 and 12.2.2 that stores policy violation information detected against expense reports. Each row captures a single violation raised when an expense report line breaches a configured expense policy — for example, exceeding a permitted meal, lodging, or mileage limit. The table is owned by the AP schema and is classified as VALID in the ETRM data dictionary.
Because expense policy checks are evaluated per distribution line, and the same line may simultaneously violate more than one rule, the table is designed to hold multiple violation rows per report line. This makes it a diagnostic record set rather than a transactional control table: it does not itself block or approve an expense report, but provides the evidence trail that Payables uses to inform approvers and to drive expense report workflow outcomes.
Under heuristic Data Vault modeling, AP_POL_VIOLATIONS_ALL is classified as standalone. The mined foreign-key structure shows no enforced parent-child joins beyond its own composite identity, so it is best modeled as an independent satellite-like record set keyed by expense report context rather than as a hub or link. Implementers building a warehouse layer should treat it as an attribute-bearing detail table whose grain is report header, distribution line, and violation sequence.
Key Information Stored
The table contains 17 documented columns. Its composite primary key is AP_POL_VIOLATIONS_PK, defined on (REPORT_HEADER_ID, DISTRIBUTION_LINE_NUMBER, VIOLATION_NUMBER). A second unique index, AP_POL_VIOLATIONS_U1, carries the identical column list, so the documented business-key candidate and the surrogate identity coincide — there is no separate single-column surrogate key.
The most significant columns are:
- REPORT_HEADER_ID — identifies the expense report header that owns the violation.
- DISTRIBUTION_LINE_NUMBER — the specific expense distribution line within the report that breached policy.
- VIOLATION_NUMBER — sequence number distinguishing multiple violations on the same line.
- VIOLATION_TYPE — the category or code of the policy breach.
- ALLOWABLE_AMOUNT — the permitted amount under the applicable policy.
- FUNC_CURRENCY_ALLOWABLE_AMT — the allowable amount expressed in functional currency.
- EXCEEDED_AMOUNT — the amount by which the actual expense exceeded the allowance.
- VIOLATION_DATE — the date the violation was recorded or incurred.
- ORG_ID — the operating unit, supporting multi-org (MOAC) security.
- DUP_REPORT_HEADER_ID, DUP_REPORT_LINE_ID, DUP_DIST_LINE_NUMBER — reference the duplicate expense report artifacts that triggered a duplicate-expense violation.
- CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_LOGIN, LAST_UPDATE_DATE — standard WHO audit columns.
Common Use Cases and Queries
The primary use cases are policy compliance reporting, approver review, and exception trending. Typical queries join back to the report header and distribution tables, filtering by operating unit and violation type.
- Listing violations for a specific expense report:
SELECT REPORT_HEADER_ID, DISTRIBUTION_LINE_NUMBER, VIOLATION_NUMBER, VIOLATION_TYPE, ALLOWABLE_AMOUNT, EXCEEDED_AMOUNT FROM AP.AP_POL_VIOLATIONS_ALL WHERE REPORT_HEADER_ID = :report_header_id ORDER BY DISTRIBUTION_LINE_NUMBER, VIOLATION_NUMBER; - Aggregating exceeded amounts by violation type for a period, using VIOLATION_DATE and ORG_ID to scope the analysis.
- Identifying duplicate-expense exceptions by selecting rows where DUP_REPORT_HEADER_ID is populated.
- Feeding an approval workflow so approvers can see entitlement breaches before authorizing payment.
Because ORG_ID is present, queries should respect MOAC predicates to avoid cross-operating-unit leakage.
Related Objects
Relationship metadata classifies the table as standalone, so joins are predominantly application-level rather than enforced foreign keys. The most significant related objects are:
- AP_EXPENSE_REPORT_HEADERS_ALL — joined on REPORT_HEADER_ID to retrieve expense report context.
- AP_EXPENSE_REPORT_LINES_ALL — joined on REPORT_HEADER_ID and DISTRIBUTION_LINE_NUMBER.
- AP_EXPENSE_REPORT_DISTS_ALL — provides the distribution detail against which violations are recorded.
- AP_POL_VIOLATIONS_PK / AP_POL_VIOLATIONS_U1 — the primary key constraint and unique index enforcing row uniqueness.
- Payables Expense Report workflow and policy engine components — consume these rows during approval and audit.
Related expense report headers, lines, and distribution tables supply the report identity and line context referenced by DUP_REPORT_HEADER_ID, DUP_REPORT_LINE_ID, and DUP_DIST_LINE_NUMBER for duplicate-expense detection.
-
Table: AP_POL_VIOLATIONS_ALL
12.1.1
owner:AP, object_type:TABLE, fnd_design_data:SQLAP.AP_POL_VIOLATIONS_ALL, object_name:AP_POL_VIOLATIONS_ALL, status:VALID, product: AP - Payables , description: This table is used to store policy violation information for expensereports. , implementation_dba_data: AP.AP_POL_VIOLATIONS_ALL ,
-
Table: AP_POL_VIOLATIONS_ALL
12.2.2
owner:AP, object_type:TABLE, fnd_design_data:SQLAP.AP_POL_VIOLATIONS_ALL, object_name:AP_POL_VIOLATIONS_ALL, status:VALID, product: AP - Payables , description: This table is used to store policy violation information for expensereports. , implementation_dba_data: AP.AP_POL_VIOLATIONS_ALL ,
-
VIEW: APPS.APBV_POL_VIOLATIONS
12.2.2
-
VIEW: AP.AP_POL_VIOLATIONS_ALL#
12.2.2
owner:AP, object_type:VIEW, object_name:AP_POL_VIOLATIONS_ALL#, status:VALID,
-
APPS.AP_WEB_EXPENSE_FORM SQL Statements
12.2.2
-
View: APBV_POL_VIOLATIONS
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.APBV_POL_VIOLATIONS, object_name:APBV_POL_VIOLATIONS, status:VALID, product: AP - Payables , description: Based on AP_POL_VIOLATIONS_ALL, this business view contains expense policy violation data. , implementation_dba_data: APPS.APBV_POL_VIOLATIONS ,
-
VIEW: APPS.APBV_POL_VIOLATIONS
12.1.1
-
APPS.AP_WEB_EXPENSE_FORM SQL Statements
12.1.1
-
SYNONYM: APPS.AP_POL_VIOLATIONS_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AP_POL_VIOLATIONS_ALL, status:VALID,
-
View: APBV_POL_VIOLATIONS
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.APBV_POL_VIOLATIONS, object_name:APBV_POL_VIOLATIONS, status:VALID, product: AP - Payables , description: Based on AP_POL_VIOLATIONS_ALL, this business view contains expense policy violation data. , implementation_dba_data: APPS.APBV_POL_VIOLATIONS ,
-
SYNONYM: APPS.AP_POL_VIOLATIONS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_POL_VIOLATIONS_ALL, status:VALID,
-
VIEW: AP.AP_POL_VIOLATIONS_ALL#
12.2.2
-
VIEW: APPS.APBV_POL_VIOLATIONS
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.APBV_POL_VIOLATIONS, object_name:APBV_POL_VIOLATIONS, status:VALID,
-
VIEW: APPS.APBV_POL_VIOLATIONS
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.APBV_POL_VIOLATIONS, object_name:APBV_POL_VIOLATIONS, status:VALID,
-
VIEW: APPS.AP_EXPENSE_REPORT_VIOLATIONS_V
12.1.1
-
PACKAGE BODY: APPS.AP_WEB_DB_VIOLATIONS_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_WEB_DB_VIOLATIONS_PKG, status:VALID,
-
VIEW: APPS.AP_EXPENSE_REPORT_VIOLATIONS_V
12.2.2
-
TABLE: AP.AP_POL_VIOLATIONS_ALL
12.1.1
owner:AP, object_type:TABLE, fnd_design_data:SQLAP.AP_POL_VIOLATIONS_ALL, object_name:AP_POL_VIOLATIONS_ALL, status:VALID,
-
APPS.AP_WEB_MANAGEMENT_REPORTS_PKG SQL Statements
12.1.1
-
SYNONYM: APPS.AP_POL_VIOLATIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_POL_VIOLATIONS, status:VALID,
-
SYNONYM: APPS.AP_POL_VIOLATIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AP_POL_VIOLATIONS, status:VALID,
-
TABLE: AP.AP_POL_VIOLATIONS_ALL
12.2.2
owner:AP, object_type:TABLE, fnd_design_data:SQLAP.AP_POL_VIOLATIONS_ALL, object_name:AP_POL_VIOLATIONS_ALL, status:VALID,
-
PACKAGE BODY: APPS.AP_WEB_EXPENSE_FORM
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_WEB_EXPENSE_FORM, status:VALID,
-
PACKAGE BODY: APPS.AP_WEB_MANAGEMENT_REPORTS_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_WEB_MANAGEMENT_REPORTS_PKG, status:VALID,
-
APPS.AP_WEB_AUDIT_UTILS SQL Statements
12.2.2
-
APPS.AP_WEB_AUDIT_UTILS SQL Statements
12.1.1
-
PACKAGE BODY: APPS.AP_WEB_AME_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AP_WEB_AME_PKG, status:VALID,
-
PACKAGE: APPS.AP_WEB_POLICY_UTILS
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AP_WEB_POLICY_UTILS, status:VALID,
-
PACKAGE BODY: APPS.AP_WEB_MANAGEMENT_REPORTS_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AP_WEB_MANAGEMENT_REPORTS_PKG, status:VALID,
-
PACKAGE BODY: APPS.AP_WEB_EXPENSE_FORM
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AP_WEB_EXPENSE_FORM, status:VALID,
-
APPS.AP_WEB_MANAGEMENT_REPORTS_PKG SQL Statements
12.2.2
-
PACKAGE BODY: APPS.AP_WEB_AME_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_WEB_AME_PKG, status:VALID,
-
PACKAGE BODY: APPS.AP_WEB_AUDIT_PROCESS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_WEB_AUDIT_PROCESS, status:VALID,
-
PACKAGE BODY: APPS.AP_WEB_AUDIT_PROCESS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AP_WEB_AUDIT_PROCESS, status:VALID,
-
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_AME_PKG SQL Statements
12.1.1
-
APPS.AP_WEB_AME_PKG SQL Statements
12.2.2
-
PACKAGE BODY: APPS.AP_WEB_POLICY_UTILS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_WEB_POLICY_UTILS, status:VALID,
-
PACKAGE BODY: APPS.AP_WEB_EXPENSE_FORM
12.1.1
-
View: AP_EXPENSE_REPORT_VIOLATIONS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_EXPENSE_REPORT_VIOLATIONS_V, object_name:AP_EXPENSE_REPORT_VIOLATIONS_V, status:VALID, product: AP - Payables , description: View for all expense report violations and corresponding expense report lines that are ready for payment or have already been paid. , implementation_dba_data: APPS.AP_EXPENSE_REPORT_VIOLATIONS_V ,
-
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,
-
PACKAGE BODY: APPS.AP_WEB_UTILITIES_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_WEB_UTILITIES_PKG, status:VALID,
-
PACKAGE BODY: APPS.AP_WEB_EXPENSE_FORM
12.2.2
-
View: AP_EXPENSE_REPORT_VIOLATIONS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_EXPENSE_REPORT_VIOLATIONS_V, object_name:AP_EXPENSE_REPORT_VIOLATIONS_V, status:VALID, product: AP - Payables , description: View for all expense report violations and corresponding expense report lines that are ready for payment or have already been paid. , implementation_dba_data: APPS.AP_EXPENSE_REPORT_VIOLATIONS_V ,
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.1.1 FND Design Data
12.1.1
-
APPS.AP_WEB_DB_VIOLATIONS_PKG SQL Statements
12.2.2
-
12.1.1 DBA Data
12.1.1