Search Results pa_batch_sources_pk




Overview

The PA_BATCH_SOURCES table is a system-defined reference table within Oracle E-Business Suite Projects (PA) module. Its primary role is to define and control the valid sources from which expenditure batches for expense reports can originate. This table acts as a master list, ensuring data integrity by restricting batch source entries in transactional tables to a predefined set of values. It is a foundational component for the processing and validation of project-related expenditures imported from external systems, most notably Oracle Payables, where expense reports are typically created and approved before being transferred to Projects for costing and accounting.

Key Information Stored

The table's structure is relatively simple, primarily serving as a lookup. The most critical column is BATCH_SOURCE, which is the table's primary key. This column stores the short code or name identifying the source system, such as 'AP' for Oracle Payables. While the provided ETRM metadata does not list additional columns, typical implementation of such reference tables in Oracle EBS often includes descriptive columns like NAME or DESCRIPTION for a more verbose explanation of the source, and columns for controlling status and system usage. The integrity of the BATCH_SOURCE values is enforced by the primary key constraint PA_BATCH_SOURCES_PK.

Common Use Cases and Queries

The primary use case is validating and reporting on expenditure batches. When expense reports are transferred from Payables to Projects, the batch process references this table to ensure the source is valid. Common queries involve joining this table to the main transactional table, PA_EXPENDITURE_BATCHES_ALL, to generate meaningful reports. For instance, to list all expenditure batches with their source descriptions, one would use a query such as:

  • SELECT eba.batch_name, eba.batch_source, pbs.description FROM pa_expenditure_batches_all eba, pa_batch_sources pbs WHERE eba.batch_source = pbs.batch_source;

Another critical use is in data validation and setup scripts, where confirming the existence of a specific BATCH_SOURCE (like 'AP') is necessary before initiating data loads or interface processes.

Related Objects

The most direct and important relationship for PA_BATCH_SOURCES is with the PA_EXPENDITURE_BATCHES_ALL table. As documented in the ETRM, a foreign key constraint exists where PA_EXPENDITURE_BATCHES_ALL.BATCH_SOURCE references PA_BATCH_SOURCES.BATCH_SOURCE. This ensures that every expenditure batch recorded must have a source defined in this reference table. While not listed in the provided metadata, this table is also implicitly related to the expenditure import processes and APIs, such as the PA_EXPENDITURE_UTILS package, which likely references valid batch sources during transaction processing. Its data is fundamental to the flow of expenses from source systems into Project Accounting.

  • Table: PA_BATCH_SOURCES 12.1.1

    owner:PA,  object_type:TABLE,  fnd_design_data:PA.PA_BATCH_SOURCES,  object_name:PA_BATCH_SOURCES,  status:VALID,  product: PA - Projectsdescription: System-defined sources of expense report expenditure batches ,  implementation_dba_data: PA.PA_BATCH_SOURCES

  • Table: PA_BATCH_SOURCES 12.2.2

    owner:PA,  object_type:TABLE,  fnd_design_data:PA.PA_BATCH_SOURCES,  object_name:PA_BATCH_SOURCES,  status:VALID,  product: PA - Projectsdescription: System-defined sources of expense report expenditure batches ,  implementation_dba_data: PA.PA_BATCH_SOURCES