Results for “get_object_owner”
26 results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
AMS_APPROVAL_UTIL_PVT is a private PL/SQL package in the Oracle E-Business Suite Applications (APPS) schema that supports the Oracle Marketing (AMS) and Oracle Trade Management (OZF) approval infrastructure. Its central responsibility is to resolve the owner or approver of a business object participating in one of the Oracle Workflow-based approval processes used by Marketing and Trade Management transactions. The package is declared with AUTHID CURRENT_USER, meaning its procedures execute with the privileges of the invoking session rather than the definer, a common convention for private utility packages that are called from other PL/SQL units operating under APPS.
The four procedures in the package address two orthogonal dimensions of ownership resolution: whether the owner is being sought for the current object or its parent object, and whether the owner is a general object owner or specifically a budget owner. Together they provide the approval engine with the routing identity needed to assign approval notifications correctly.
Key Procedures and Functions
The package exposes four procedures, each accepting a workflow itemtype and itemkey pair to identify the transaction under approval. All four return an approver identifier and a return status to the caller.
- GET_OBJECT_OWNER — Returns the approver identifier for the owner of the object identified by the supplied item type and item key. This is the primary entry point used when the approval process must route a notification to the individual accountable for the transaction itself.
- GET_PARENT_OBJECT_OWNER — Returns the approver identifier for the owner of the parent object, enabling escalation or roll-up routing when approval authority resides at a higher level in the object hierarchy.
- GET_BUDGET_OWNER — Returns the approver identifier for the budget owner of the object, used where budget authority is distinct from general object ownership.
- GET_PARENT_BUDGET_OWNER — Returns the approver identifier for the budget owner of the parent object, combining both the hierarchy and budget dimensions.
Each procedure returns the resolved approver through an OUT parameter and signals success or failure through an OUT return status string, allowing callers to branch safely when no owner can be determined.
Tables Accessed
The package resolves ownership by reading from three documented tables accessed through APPS synonyms. AMS_ACT_OFFERS stores Marketing activity and offer definitions, including the ownership attributes that identify the responsible individual for an offer-based transaction. OZF_ACT_BUDGETS holds budget records associated with Trade Management activities and provides the budget-owner attribution required by the budget-oriented procedures. OZF_FUNDS_ALL_B is the base table for Trade Management funds, supplying fund-level ownership information that may govern approval routing where transactions are funded from a specific accrual or fund.
These three tables indicate that the package is oriented toward the offer, activity budget, and funds domains of Oracle Marketing and Trade Management rather than toward general-purpose workflow objects.
Usage Notes
AMS_APPROVAL_UTIL_PVT is a private package and is not intended for direct invocation by end users or external integrations. It is called from within other APPS PL/SQL units that implement the Marketing and Trade Management approval workflows, most commonly from workflow function activities that need to compute an approver before sending a notification. Because the documented metadata records zero packages referencing it, its callers are likely workflow definition function calls or trigger-driven PL/SQL rather than other packaged APIs.
Users searching for the get_object_owner procedure typically encounter it while troubleshooting approval notifications that fail to route or that return an unexpected approver. In such cases, the item type and item key supplied by the workflow are the critical diagnostic inputs, since the procedure derives ownership solely from those keys. Customizations should not call this private package directly; instead, the supported approach is to modify ownership data in the underlying offer, budget, or funds records so that the standard resolution logic returns the correct approver. The package is present in both EBS 12.1.1 and 12.2.2 with the same signature.
-
PACKAGE: APPS.BSC_IM_UTILS 12.1.1
-
TYPE: SYS.LCR$_DDL_RECORD 12.2.2
-
TYPE: SYS.LCR$_DDL_RECORD 12.1.1
-
TYPE: SYS.LCR$_ROW_RECORD 12.1.1
-
TYPE: SYS.LCR$_ROW_RECORD 12.2.2
-
PACKAGE: APPS.BSC_IM_UTILS 12.1.1