Search Results init_approvers_rec
Overview
APPS.AMS_APPROVERS_PVT is a private PL/SQL package in the Oracle E-Business Suite Marketing (AMS) module, responsible for managing approver records associated with approval details. In the Oracle EBS 12.1.1 and 12.2.2 releases, this package functions as the internal processing layer that supports the AMS approval workflow — the mechanism by which marketing objects such as campaigns, events, and other marketing entities are routed through a defined chain of approvers.
The package is declared AUTHID CURRENT_USER and is classified as a Private API (PVT). This classification indicates that it is not intended for direct invocation by end users or external integrations; rather, it is called by other packages and components within the AMS approval framework. The header comment confirms its purpose: "This package is a Private API for managing Approvers in AMS. It contains specification for pl/sql records and tables." The most recent documented revision (115.8, dated 29-DEC-2002) uncommented the security_group_id element in the record type, reflecting multi-org security considerations.
Key Procedures and Functions
The package exposes nine documented procedures and functions:
- CREATE_APPROVERS — Creates a new approver entry, accepting an approvers record as its primary parameter.
- UPDATE_APPROVERS — Modifies an existing approver record.
- DELETE_APPROVERS — Removes an approver entry.
- LOCK_APPROVERS — Acquires a lock on an approver record, typically used to serialize concurrent modifications.
- VALIDATE_APPROVERS — Performs validation logic on approver data prior to persistence.
- CHECK_APPROVERS_ITEMS — Verifies approver items against defined business rules.
- CHECK_APPROVERS_RECORD — Validates the integrity and completeness of an approvers record.
- INIT_APPROVERS_REC — Initializes the
Approvers_Rec_Typerecord structure with default values. - COMPLETE_APPROVERS_REC — Populates derived or remaining attributes after initial processing.
The package also declares the Approvers_Rec_Type record type, which mirrors the AMS_APPROVERS table and includes fields such as APPROVER_ID, AMS_APPROVAL_DETAIL_ID, APPROVER_SEQ, APPROVER_TYPE, OBJECT_APPROVER_ID, NOTIFICATION_TYPE, NOTIFICATION_TIMEOUT, SEEDED_FLAG, ACTIVE_FLAG, START_DATE_ACTIVE, and END_DATE_ACTIVE. This record type is the object most commonly referenced by the term "approvers_rec_type" in searches.
Tables Accessed
The package references several tables through APPS synonyms:
- AMS_APPROVERS — The primary transactional table storing approver assignments.
- AMS_APPROVERS_S — The shadow/security table supporting multi-org or audit requirements.
- AMS_APPROVAL_DETAILS — Parent table defining approval chains to which approvers belong.
- JTF_RS_ROLES_B and JTF_RS_ROLE_RELATIONS — Resource-role tables used to resolve approver roles and hierarchical relationships.
- DUAL — Used for lightweight PL/SQL expressions and default resolution.
Usage Notes
Because this is a private API, it is typically invoked from other AMS packages and from the Marketing approval forms rather than from custom code. Direct calls are generally discouraged; customers extending approval logic should prefer supported public APIs or view-based integration. The package performs both DML and validation, so any custom invocation must respect transaction boundaries and the FND_API-style expectation that initialization, validation, and completion are sequenced before commit. The reference from one other package confirms its role as a shared internal utility within the AMS approval subsystem.
-
PACKAGE: APPS.AMS_APPROVERS_PVT
12.1.1
-
PACKAGE: APPS.AMS_APPROVERS_PVT
12.2.2
-
PACKAGE: APPS.AHL_APPROVALS_PVT
12.1.1
-
PACKAGE: APPS.AHL_APPROVALS_PVT
12.2.2
-
PACKAGE: APPS.AMS_APPROVERS_PVT_W
12.1.1
-
PACKAGE: APPS.AMS_APPROVERS_PVT_W
12.2.2
-
PACKAGE BODY: APPS.AMS_APPROVERS_PVT_W
12.2.2
-
PACKAGE BODY: APPS.AMS_APPROVERS_PVT_W
12.1.1
-
PACKAGE BODY: APPS.AMS_APPROVERS_PVT
12.2.2
-
PACKAGE BODY: APPS.AMS_APPROVERS_PVT
12.1.1
-
PACKAGE BODY: APPS.AHL_APPROVALS_PVT
12.1.1
-
PACKAGE BODY: APPS.AHL_APPROVALS_PVT
12.2.2
-
APPS.AMS_APPROVERS_PVT dependencies on FND_API
12.1.1
-
APPS.AMS_APPROVERS_PVT dependencies on FND_API
12.2.2
-
APPS.AHL_APPROVALS_PVT dependencies on FND_API
12.1.1
-
APPS.AHL_APPROVALS_PVT dependencies on FND_API
12.2.2
-
APPS.AMS_APPROVERS_PVT dependencies on FND_API
12.2.2
-
APPS.AMS_APPROVERS_PVT dependencies on FND_API
12.1.1
-
APPS.AHL_APPROVALS_PVT dependencies on FND_API
12.1.1
-
APPS.AHL_APPROVALS_PVT dependencies on FND_API
12.2.2