Search Results check_add_funding_ok




Overview

PA_AGREEMENT_PVT is a private (PVT) PL/SQL package body owned by APPS that encapsulates the core business logic supporting project agreement and project funding maintenance in Oracle Projects. It is not a public API; rather, it functions as the internal validation and utility layer invoked by public APIs, forms, and interface processes that create, update, and delete agreement and funding records. The package centralizes the referential and validation rules that govern how agreements and their associated funding records are constructed, checked, and persisted.

The package opens with two package-level constants that anchor its behavior. G_PKG_NAME holds the package name ('PA_AGREEMENT_PVT') and is used to prefix error message text. G_AGREEMENT_CODE is a VARCHAR2(9) constant set to 'AGREEMENT' and is used to identify the agreement entity when raising or formatting error messages. Additional global constants capture the runtime FND_GLOBAL user and login identifiers for audit and concurrency purposes. The body also declares a header revision line, confirming that this is the pl/sql source stored in the APPS schema for Oracle E-Business Suite 12.1.1 and 12.2.2.

Key Procedures and Functions

The package exposes fifteen documented subprograms, organized around four functional concerns: reference resolution, agreement validation, funding validation, and generic checks.

Tables Accessed

The package reads and writes the following tables through APPS synonyms:

  • PA_AGREEMENTS_ALL — The primary agreement table; used by the convert and fetch routines to resolve agreement identifiers and by the agreement create, update, and delete checks.
  • PA_PROJECT_FUNDINGS — Stores funding records; used by the funding convert, fetch, and validation logic.
  • PA_PROJECTS_ALL — Used to confirm that an agreement or funding record relates to a valid project.
  • PA_PROJECT_TYPES_ALL — Used to apply project-type-specific rules during validation.
  • PA_TASKS — Used when funding or agreement validation requires task-level context.

Usage Notes

PA_AGREEMENT_PVT is classified as a private API and is not intended for direct customer invocation. It is typically called by the public Oracle Projects APIs (such as the agreement and funding public APIs) from Oracle Projects forms, by external interface programs that load agreement and funding data, and by custom extensions that have been granted execute privilege on the APPS package. Because it is a PVT package, Oracle does not guarantee backward compatibility of its signatures, and custom code should prefer the corresponding public API wrappers. The G_AGREEMENT_CODE constant ensures that any error raised within the package is attributed to the AGREEMENT entity in the message stack when surfaced through FND_MSG_PUB.