Search Results ap_acctg_data_fix_pkg
Overview
APPS.AP_ACCTG_DATA_FIX_PKG is a corrective maintenance package in the Oracle E-Business Suite Payables (AP) module. Its purpose is remediation of corrupt or inconsistent accounting data — the subledger entries in AP_ACCOUNTING_EVENTS_ALL, the distribution and payment history rows that feed them, and the corresponding balances in General Ledger. Such inconsistencies typically arise after failed accounting submission, orphaned Subledger Accounting (SLA) events, period-close anomalies, or data corruption introduced during upgrades or patches. In Oracle EBS 12.1.1 the accounting model is based on the legacy create_accounting_entries PL/SQL path, while 12.2.x routes AP accounting through Subledger Accounting; the package bridges these by manipulating both AP distribution tables and the XLA accounting events, so it must be used with a full understanding of the target release.
The package is owned by the APPS schema, is classified as OTHER (not a public API), and is self-referenced, meaning it invokes its own internal routines. It is not called by any other documented package, confirming that it is a stand-alone utility invoked directly.
Key Procedures and Functions
- APPS_INITIALIZE — standard environment initialisation; sets the application context (org_id, user, responsibility) before other routines execute.
- OPEN_LOG_OUT_FILES / CLOSE_LOG_OUT_FILES — open and close output files for diagnostics using UTL_FILE.
- PRINT / PRINT_HTML_TABLE — write plain-text and HTML-formatted log output.
- CREATE_TEMP_ACCTG_TABLES — create temporary staging tables used to hold accounting rows before and after correction.
- GET_COLS — utility to retrieve column metadata for dynamic SQL.
- BACK_UP_ACCTG / BACKUP_DATA — snapshot accounting data before any modification, enabling rollback.
- CHECK_PERIOD / IS_PERIOD_OPEN / GET_OPEN_PERIOD_START_DATE — validate that the AP and GL periods involved are open or determine the earliest open period date.
- CHECK_CCID — validate a GL code combination identifier before use.
- UNDO_ACCOUNTING / UNDO_ACCTG_ENTRIES — reverse previously created accounting entries.
- DEL_NONFINAL_XLA_ENTRIES — delete Subledger Accounting events that were not finalised.
- DELETE_CASCADE_ADJUSTMENTS — remove adjustment distributions that cascade from a corrected source row.
- REPOP_PREPAY_DISTS — rebuild prepayment application distributions.
- FINAL_PAY_ROUND_DFIX — repair rounding discrepancies in final payment distributions.
- PUSH_ERROR — centralised error log routine.
Tables Accessed
- AP_ACCOUNTING_EVENTS_ALL — the core accounting event rows being corrected or removed.
- AP_INVOICE_DISTRIBUTIONS_ALL — invoice distribution lines that generate accounting.
- AP_PAYMENT_HIST_DISTS — payment history distributions and their accounting.
- AP_PREPAY_APP_DISTS / AP_PREPAY_HISTORY_ALL — prepayment application and history distributions.
- AP_INVOICES_ALL / AP_INVOICE_PAYMENTS_ALL / AP_PAYMENT_HISTORY_ALL — parent invoice and payment records for validation.
- AP_SELF_ASSESSED_TAX_DIST_ALL — self-assessed tax distributions.
- GL_CODE_COMBINATIONS — validates that accounting flexfield combinations are valid.
- AP_SUPPLIERS / AP_SUPPLIER_SITES_ALL / PO_VENDORS — supplier and site validation.
- FND_USER / FND_RESPONSIBILITY_TL — audit trail for the user and responsibility performing the fix.
- MO_GLOBAL — multi-org (operating unit) security context.
Usage Notes
AP_ACCTG_DATA_FIX_PKG is not exposed through a standard Payables form or concurrent program menu. It is typically invoked from a dedicated data-fix concurrent program, an SQL*Plus session, or a custom wrapper after Oracle Support or an approved change request authorises the correction. Because the routines physically delete and rebuild accounting, they should only be run after the BACKUP_DATA routine has captured the affected rows, with the operating unit set and the AP/GL periods confirmed open. The log files created via OPEN_LOG_OUT_FILES and the PRINT/PRINT_HTML_TABLE routines should be retained as evidence of the fix. On 12.2.x systems, DEL_NONFINAL_XLA_ENTRIES is of particular importance because Subledger Accounting events must be reconciled with the underlying AP distributions; on 12.1.1 the corrective emphasis is on AP_ACCOUNTING_EVENTS_ALL and the transfer to GL. Given the destructive nature of the operations, direct execution outside a supported remediation script is discouraged.
-
PACKAGE: APPS.AP_ACCTG_DATA_FIX_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AP_ACCTG_DATA_FIX_PKG, status:VALID,
-
PACKAGE BODY: APPS.AP_ACCTG_DATA_FIX_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AP_ACCTG_DATA_FIX_PKG, status:VALID,
-
PACKAGE: APPS.AP_ACCTG_DATA_FIX_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:AP_ACCTG_DATA_FIX_PKG, status:VALID,
-
SYNONYM: APPS.AP_PREPAY_APP_DISTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_PREPAY_APP_DISTS, status:VALID,
-
SYNONYM: APPS.AP_PAYMENT_HIST_DISTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_PAYMENT_HIST_DISTS, status:VALID,
-
PACKAGE BODY: APPS.AP_ACCTG_DATA_FIX_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_ACCTG_DATA_FIX_PKG, status:VALID,
-
SYNONYM: APPS.FND_RESPONSIBILITY_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FND_RESPONSIBILITY_TL, status:VALID,
-
SYNONYM: APPS.AP_ACCOUNTING_EVENTS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_ACCOUNTING_EVENTS_ALL, status:VALID,
-
SYNONYM: APPS.AP_ACCOUNTING_EVENTS_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AP_ACCOUNTING_EVENTS_ALL, status:VALID,
-
PACKAGE: APPS.AP_XLA_EVENTS_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AP_XLA_EVENTS_PKG, status:VALID,
-
PACKAGE: APPS.AP_ACCTG_PAY_ROUND_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AP_ACCTG_PAY_ROUND_PKG, status:VALID,
-
SYNONYM: PUBLIC.UTL_TCP
12.2.2
owner:PUBLIC, object_type:SYNONYM, object_name:UTL_TCP, status:VALID,
-
PACKAGE: APPS.XLA_DATAFIXES_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:XLA_DATAFIXES_PUB, status:VALID,
-
PACKAGE: APPS.AP_ACCOUNTING_PAY_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AP_ACCOUNTING_PAY_PKG, status:VALID,
-
SYNONYM: APPS.PO_VENDOR_LIST_ENTRIES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_VENDOR_LIST_ENTRIES, status:VALID,
-
PACKAGE: APPS.AP_ACCTG_PAY_DIST_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AP_ACCTG_PAY_DIST_PKG, status:VALID,
-
SYNONYM: PUBLIC.UTL_SMTP
12.2.2
owner:PUBLIC, object_type:SYNONYM, object_name:UTL_SMTP, status:VALID,
-
PACKAGE: APPS.AP_ACCTG_PREPAY_DIST_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AP_ACCTG_PREPAY_DIST_PKG, status:VALID,
-
PACKAGE: APPS.AP_ACCOUNTING_EVENTS_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AP_ACCOUNTING_EVENTS_PKG, status:VALID,
-
SYNONYM: APPS.PO_RFQ_VENDORS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_RFQ_VENDORS, status:VALID,
-
SYNONYM: APPS.AP_PREPAY_HISTORY_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_PREPAY_HISTORY_ALL, status:VALID,
-
SYNONYM: APPS.PO_REQEXPRESS_LINES_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_REQEXPRESS_LINES_ALL, status:VALID,
-
PACKAGE: APPS.AP_ACCTG_DATA_FIX_PKG
12.1.1
-
SYNONYM: APPS.XLA_TRANSACTION_ENTITIES_UPG
12.2.2
owner:APPS, object_type:SYNONYM, object_name:XLA_TRANSACTION_ENTITIES_UPG, status:VALID,
-
SYNONYM: APPS.AP_PAYMENT_HISTORY_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_PAYMENT_HISTORY_ALL, status:VALID,
-
PACKAGE: APPS.AP_INVOICES_UTILITY_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AP_INVOICES_UTILITY_PKG, status:VALID,
-
SYNONYM: APPS.PO_HEADERS_ARCHIVE_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_HEADERS_ARCHIVE_ALL, status:VALID,
-
SYNONYM: APPS.AP_SELF_ASSESSED_TAX_DIST_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_SELF_ASSESSED_TAX_DIST_ALL, status:VALID,
-
SYNONYM: APPS.GL_BC_PACKETS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:GL_BC_PACKETS, status:VALID,
-
SYNONYM: APPS.GMS_AWARD_DISTRIBUTIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:GMS_AWARD_DISTRIBUTIONS, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
12.1.1 DBA Data
12.1.1
-
SYNONYM: APPS.XLA_TRANSACTION_ENTITIES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:XLA_TRANSACTION_ENTITIES, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
PACKAGE: APPS.PO_UOM_S
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PO_UOM_S, status:VALID,
-
PACKAGE: APPS.XLA_EVENTS_PUB_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:XLA_EVENTS_PUB_PKG, status:VALID,
-
SYNONYM: APPS.AP_INVOICE_PAYMENTS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_INVOICE_PAYMENTS_ALL, status:VALID,
-
SYNONYM: PUBLIC.ALL_TAB_COLUMNS
12.2.2
owner:PUBLIC, object_type:SYNONYM, object_name:ALL_TAB_COLUMNS, status:VALID,
-
SYNONYM: APPS.AP_INVOICE_DISTRIBUTIONS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_INVOICE_DISTRIBUTIONS_ALL, status:VALID,
-
SYNONYM: APPS.XLA_EVENTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:XLA_EVENTS, status:VALID,
-
SYNONYM: APPS.AP_SYSTEM_PARAMETERS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_SYSTEM_PARAMETERS_ALL, status:VALID,
-
SYNONYM: PUBLIC.ALL_TAB_COLUMNS
12.1.1
owner:PUBLIC, object_type:SYNONYM, object_name:ALL_TAB_COLUMNS, status:VALID,
-
SYNONYM: APPS.FND_LOG_MESSAGES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FND_LOG_MESSAGES, status:VALID,
-
SYNONYM: APPS.XLA_AE_LINES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:XLA_AE_LINES, status:VALID,
-
VIEW: SYS.ALL_TAB_COLUMNS
12.2.2
owner:SYS, object_type:VIEW, object_name:ALL_TAB_COLUMNS, status:VALID,
-
SYNONYM: APPS.AP_SUPPLIER_SITES_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_SUPPLIER_SITES_ALL, status:VALID,
-
SYNONYM: PUBLIC.DBMS_OUTPUT
12.2.2
owner:PUBLIC, object_type:SYNONYM, object_name:DBMS_OUTPUT, status:VALID,
-
SYNONYM: APPS.GL_CODE_COMBINATIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:GL_CODE_COMBINATIONS, status:VALID,
-
SYNONYM: PUBLIC.UTL_FILE
12.2.2
owner:PUBLIC, object_type:SYNONYM, object_name:UTL_FILE, status:VALID,