Search Results ap_matching_pkg
Overview
APPS.AP_MATCHING_PKG is a core Oracle E-Business Suite Payables package responsible for invoice-to-purchase-order matching logic. In Oracle EBS 12.1.1 and 12.2.2 it centralizes the rules that determine whether an invoice line, distribution, or receipt can be matched against the corresponding purchasing documents — purchase order headers, lines, line locations, releases, and receiving transactions. The package is the shared engine behind manual matching in the Payables Invoice Workbench and behind automated matching processes executed by concurrent programs and complementary packages.
The ETRM metadata classifies the object as VALID under the APPS schema, with an API classification of OTHER. It is a dependent, internal-style package rather than a published open interface, meaning it is not intended as a formally supported extension point but is instead referenced extensively by other Payables matching packages. Nine tables sourced from the Purchasing and Payables schemas are documented as referenced, reflecting the cross-module nature of the matching process.
Key Procedures and Functions
The 12.2.2 ETRM documentation records four procedures or functions within AP_MATCHING_PKG:
- BASE_CREDIT_PO_MATCH — Supports credit memo and negative adjustment matching against purchase order documents, providing the base logic for reversing or offsetting previously matched invoice quantities and amounts.
- PRICE_QUANTITY_CORRECT_INV_PO — Handles price and quantity corrections between invoice lines and purchase order lines, recalculating matched values when invoices deviate from ordered or received quantities.
- QUICK_MATCH_LINE_GENERATION — Generates invoice line candidates for the Quick Match feature, deriving matches from open purchase order shipments and receipts.
- BUILD_PREPAY_ACCOUNT — Constructs the accounting distribution for prepayment-related matching, determining the correct prepayment account to apply against the matched purchase order.
These four routines represent the documented callable surface. No parameter signatures are published in the ETRM excerpt, and callers should treat invocation details as internal implementation.
Tables Accessed
The package reads and writes against both Payables and Purchasing tables via APPS synonyms:
- Payables invoice tables — AP_INVOICES, AP_INVOICES_ALL, AP_INVOICE_LINES, AP_INVOICE_LINES_ALL, AP_INVOICE_DISTRIBUTIONS, AP_INVOICE_DISTRIBUTIONS_ALL, and AP_INVOICE_DISTRIBUTIONS_S store the invoice header, line, and distribution data being matched or corrected. AP_BATCHES and AP_AWT_GROUPS support batch and withholding tax context.
- Purchasing tables — PO_HEADERS, PO_LINES, PO_LINE_LOCATIONS, and PO_RELEASES supply the purchase order structure against which invoice lines are validated and matched.
- Receiving tables — RCV_TRANSACTIONS provides receipt and delivery quantities used in receipt-based (three-way and four-way) matching.
Access to these tables allows the package to determine match eligibility, recalculate quantities and prices, and persist the resulting match state on invoice distributions.
Usage Notes
AP_MATCHING_PKG is invoked indirectly. The ETRM metadata shows it is referenced by seven other packages, including AP_AUTO_DM_CREATION_PKG, AP_MATCHING_UTILS_PKG, AP_PO_AMT_MATCH_PKG, AP_QUICK_CREDIT_PKG, AP_RCT_AMT_MATCH_PKG, AP_RECT_MATCH_PKG, and AP_RECURRING_INVOICES_PKG. It also contains internal self-references.
In practice, this means the package is triggered when users perform Quick Match or manual matching in the Payables Invoice Workbench, when the Payables AutoMatch concurrent program runs, and when receiving-based matching processes execute during invoice validation. Custom code should not call these procedures directly unless the dependency chain is fully understood, because the routines operate on in-progress invoice data and expect the calling package to manage the surrounding transaction and validation context. For supported extensions, Oracle directs developers to the documented Open Interfaces and public APIs rather than this internal matching package.
-
PACKAGE: APPS.AP_MATCHING_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AP_MATCHING_PKG, status:VALID,
-
PACKAGE: APPS.AP_MATCHING_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:AP_MATCHING_PKG, status:VALID,
-
PACKAGE BODY: APPS.AP_MATCHING_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AP_MATCHING_PKG, status:VALID,
-
PACKAGE BODY: APPS.AP_MATCHING_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_MATCHING_PKG, status:VALID,
-
PACKAGE: APPS.AP_RETAINAGE_RELEASE_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AP_RETAINAGE_RELEASE_PKG, status:VALID,
-
SYNONYM: APPS.AP_INVOICE_LINES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_INVOICE_LINES, status:VALID,
-
SYNONYM: APPS.AP_INVOICE_LINES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AP_INVOICE_LINES, status:VALID,
-
PACKAGE: APPS.AP_RETAINAGE_RELEASE_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:AP_RETAINAGE_RELEASE_PKG, status:VALID,
-
PACKAGE: APPS.AP_RCT_AMT_MATCH_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:AP_RCT_AMT_MATCH_PKG, status:VALID,
-
PACKAGE: APPS.AP_PO_AMT_MATCH_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:AP_PO_AMT_MATCH_PKG, status:VALID,
-
PACKAGE: APPS.AP_PO_AMT_MATCH_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AP_PO_AMT_MATCH_PKG, status:VALID,
-
PACKAGE: APPS.AP_RETAINAGE_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AP_RETAINAGE_PKG, status:VALID,
-
PACKAGE: APPS.AP_RCT_AMT_MATCH_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AP_RCT_AMT_MATCH_PKG, status:VALID,
-
PACKAGE: APPS.RCV_INVOICE_MATCHING_SV
12.2.2
owner:APPS, object_type:PACKAGE, object_name:RCV_INVOICE_MATCHING_SV, status:VALID,
-
PACKAGE: APPS.AP_ALLOCATION_RULES_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:AP_ALLOCATION_RULES_PKG, status:VALID,
-
PACKAGE: APPS.PA_AP_INTEGRATION
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PA_AP_INTEGRATION, status:VALID,
-
PACKAGE: APPS.AP_RECT_MATCH_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:AP_RECT_MATCH_PKG, status:VALID,
-
PACKAGE: APPS.AP_RECT_MATCH_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AP_RECT_MATCH_PKG, status:VALID,
-
PACKAGE: APPS.AP_ETAX_UTILITY_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AP_ETAX_UTILITY_PKG, status:VALID,
-
PACKAGE: APPS.RCV_BILL_UPDATING_SV
12.1.1
owner:APPS, object_type:PACKAGE, object_name:RCV_BILL_UPDATING_SV, status:VALID,
-
PACKAGE: APPS.RCV_INVOICE_MATCHING_SV
12.1.1
owner:APPS, object_type:PACKAGE, object_name:RCV_INVOICE_MATCHING_SV, status:VALID,
-
SYNONYM: APPS.PA_EXP_ORGS_IT
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PA_EXP_ORGS_IT, status:VALID,
-
PACKAGE: APPS.RCV_BILL_UPDATING_SV
12.2.2
owner:APPS, object_type:PACKAGE, object_name:RCV_BILL_UPDATING_SV, status:VALID,
-
PACKAGE: APPS.AP_ALLOCATION_RULES_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AP_ALLOCATION_RULES_PKG, status:VALID,
-
PACKAGE: APPS.AP_RETAINAGE_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:AP_RETAINAGE_PKG, status:VALID,
-
PACKAGE: APPS.GMS_AP_API
12.1.1
owner:APPS, object_type:PACKAGE, object_name:GMS_AP_API, status:VALID,
-
PACKAGE: APPS.PA_AP_INTEGRATION
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PA_AP_INTEGRATION, status:VALID,
-
PACKAGE: APPS.AP_INVOICE_LINES_UTILITY_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AP_INVOICE_LINES_UTILITY_PKG, status:VALID,
-
PACKAGE: APPS.GMS_AP_API
12.2.2
owner:APPS, object_type:PACKAGE, object_name:GMS_AP_API, status:VALID,
-
PACKAGE: APPS.AP_MATCHING_UTILS_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:AP_MATCHING_UTILS_PKG, status:VALID,
-
PACKAGE: APPS.AP_INVOICE_LINES_UTILITY_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:AP_INVOICE_LINES_UTILITY_PKG, status:VALID,
-
SYNONYM: APPS.PA_EXP_ORGS_IT
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PA_EXP_ORGS_IT, status:VALID,
-
SYNONYM: APPS.AP_AWT_GROUPS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AP_AWT_GROUPS, status:VALID,
-
PACKAGE: APPS.ZX_AP_TAX_CLASSIFICATN_DEF_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:ZX_AP_TAX_CLASSIFICATN_DEF_PKG, status:VALID,
-
PACKAGE BODY: APPS.AP_RECURRING_INVOICES_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AP_RECURRING_INVOICES_PKG, status:VALID,
-
SYNONYM: APPS.PO_RELEASES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PO_RELEASES, status:VALID,
-
SYNONYM: APPS.AP_BATCHES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_BATCHES, status:VALID,
-
PACKAGE: APPS.AP_ETAX_SERVICES_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:AP_ETAX_SERVICES_PKG, status:VALID,
-
PACKAGE: APPS.AP_ETAX_UTILITY_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:AP_ETAX_UTILITY_PKG, status:VALID,
-
PACKAGE: APPS.AP_EXTENDED_WITHHOLDING_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:AP_EXTENDED_WITHHOLDING_PKG, status:VALID,
-
PACKAGE: APPS.PO_AP_INVOICE_MATCH_GRP
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PO_AP_INVOICE_MATCH_GRP, status:VALID,
-
PACKAGE BODY: APPS.AP_QUICK_CREDIT_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_QUICK_CREDIT_PKG, status:VALID,
-
PACKAGE: APPS.AP_EXTENDED_WITHHOLDING_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AP_EXTENDED_WITHHOLDING_PKG, status:VALID,
-
PACKAGE: APPS.AP_ETAX_SERVICES_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AP_ETAX_SERVICES_PKG, status:VALID,
-
PACKAGE BODY: APPS.AP_QUICK_CREDIT_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AP_QUICK_CREDIT_PKG, status:VALID,
-
SYNONYM: APPS.AP_AWT_GROUPS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_AWT_GROUPS, status:VALID,
-
PACKAGE: APPS.AP_MATCHING_UTILS_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AP_MATCHING_UTILS_PKG, status:VALID,
-
SYNONYM: APPS.PO_RELEASES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_RELEASES, status:VALID,
-
SYNONYM: APPS.AP_BATCHES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AP_BATCHES, status:VALID,
-
PACKAGE BODY: APPS.AP_RECURRING_INVOICES_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_RECURRING_INVOICES_PKG, status:VALID,