Search Results pa_agreements_s




Overview

PA_AGREEMENTS_PKG is a PL/SQL package body owned by the APPS schema in Oracle E-Business Suite. It encapsulates the core Data Manipulation Language operations for project agreements, which in Oracle Projects represent the contractual and billing arrangements negotiated with customers, funding sources, and other external parties. The package functions as a programmatic interface layer between the application's user-facing forms and the underlying agreement tables, providing a controlled and reusable mechanism for inserting, locking, updating, and deleting agreement records. The ETRM metadata classifies this package under the generic API classification "OTHER," and its status is recorded as VALID in both the 12.1.1 and 12.2.2 releases. Notably, the package is not referenced by any other database object, which confirms that it is a foundational rather than a subordinate component. It is, however, referenced by three other packages, indicating that it acts as a shared dependency for higher-level project agreement processing logic.

Key Procedures and Functions

The documented program units consist of four procedures that map directly to standard CRUD operations against the agreement tables:

  • INSERT_ROW — Creates a new agreement record, populating the target table with the supplied agreement attributes and performing any supporting defaulting or validation logic required prior to persistence.
  • LOCK_ROW — Acquires a row-level lock on an existing agreement record, typically using SELECT ... FOR UPDATE, to serialize concurrent modifications and prevent lost updates during an interactive editing session.
  • UPDATE_ROW — Applies modified agreement attributes to an existing record, with validation and change-tracking behavior consistent with the package's table-driven design.
  • DELETE_ROW — Removes an agreement record, including any cascading or dependent cleanup logic that the package enforces.

The ETRM metadata does not publish formal parameter lists for these procedures, so consumers should treat the signatures as internal to the package and invoke them only in accordance with Oracle Projects standards. No standalone functions are documented.

Tables Accessed

The package declares dependencies on three agreement tables through APPS synonyms:

  • PA_AGREEMENTS and PA_AGREEMENTS_ALL — the base and multi-organization views of the agreement entity, which store agreement header information such as agreement number, customer, funding source, and effective dates.
  • PA_AGREEMENTS_S — the sequence used to generate unique agreement identifiers, matching the search term "pa_agreements_s" that surfaced this object.

Additional dependencies include APP_EXCEPTION for error handling, FND_MESSAGE for message resolution, PA_INTERFACE_UTILS_PUB for interface utilities, and the SYS.STANDARD and DUAL objects. These dependencies indicate that the package performs exception-safe database operations with user-facing error messaging.

Usage Notes

PA_AGREEMENTS_PKG is invoked indirectly rather than by name in most supported flows. Oracle Projects forms that maintain agreements, including the Agreement Entry form, call through higher-level packages that in turn reference this package's DML procedures. The presence of a LOCK_ROW procedure and the dependency on FND_MESSAGE strongly suggest interactive form usage, where concurrent editing must be guarded and Oracle Forms errors are surfaced to the user. Because the package is referenced by three other packages but references none of its own dependents, custom code should avoid calling it directly where a higher-level API exists. Database objects in APPS are not supported for direct customer modification; any extension to agreement behavior should be implemented through documented Oracle Projects APIs or custom packages in a separate schema.