Search Results ap_card_validate_pkg




Overview

APPS.AP_CARD_VALIDATE_PKG is a PL/SQL package within the Oracle E-Business Suite Payables module that supports the processing of corporate card transactions. Its primary business function is to validate purchasing card and corporate card transaction data, generate the corresponding accounting distributions, and create the interface records required to feed those transactions into the Payables invoice interface for downstream invoice creation. The package forms part of the broader Procurement Card (P-Card) and corporate card processing flow, where card issuer data is loaded into Oracle Payables and must be validated, distributed, and interfaced before invoices can be generated. The package is owned by the APPS schema and carries an API classification of "OTHER" in the ETRM documentation, indicating it is an internal or utility package rather than a formally published public API.

Key Procedures and Functions

The package exposes three documented procedures that correspond to the major stages of card transaction processing:

  • VALIDATE — Drives validation of card transaction data for a specified card program over an optional date range. It is the entry point for checking the integrity and eligibility of card records before further processing.
  • CREATE_DISTRIBUTIONS — Generates the accounting distributions for validated card transactions. It accepts the card program identifier, an optional date range, an error message output parameter, and a request identifier, returning error information through the output parameter.
  • CREATE_INTERFACE_RECORDS — Creates the interface records that bridge validated card transaction data to the Payables invoice interface. This is the procedure most relevant to the user's search term "create_interface_records." It accepts the card program identifier, an input/output invoice identifier, optional start and end dates, and a rollup flag defaulting to 'Y'. The invoice identifier is passed as an IN OUT NOCOPY parameter, and the rollup flag controls whether transactions are grouped during interface record creation.

No documented functions are present; all three members are procedures.

Tables Accessed

The package references a set of Payables and card-related tables through APPS synonyms. Card configuration and transaction data are drawn from AP_CARDS, AP_CARDS_ALL, AP_CARD_CODES, AP_CARD_PROFILES, and AP_CARD_PROGRAMS. Distribution-related data is managed through AP_EXPENSE_FEED_DISTS, AP_EXPENSE_FEED_DISTS_ALL, AP_EXPENSE_FEED_DISTS_S, and AP_EXPENSE_FEED_LINES, which hold the expense feed distributions and lines corresponding to card transactions. AP_SYSTEM_PARAMETERS is referenced for system-level configuration and defaults. These tables support the validation, distribution generation, and interface record creation described above, with the distribution tables being written during the CREATE_DISTRIBUTIONS stage and the interface feed tables populated during CREATE_INTERFACE_RECORDS.

Usage Notes

AP_CARD_VALIDATE_PKG is typically invoked from concurrent programs or internal Payables processing logic rather than directly from end-user forms. The procedures are designed to be called in sequence — validation first, then distribution creation, then interface record creation — as part of the corporate card transaction processing cycle. The presence of the P_REQUEST_ID parameter on CREATE_DISTRIBUTIONS confirms concurrent program invocation, allowing results and errors to be tracked against a specific request. Because the ETRM classification is "OTHER" and the package header is marked "noship," it is intended for internal use by Oracle Payables components rather than as a supported customer-facing API. Customizations that invoke this package directly should do so with caution, as the interface contract is not guaranteed across releases. The package is referenced by one other package in the documented metadata, reflecting its role as a supporting utility within the card processing subsystem.