Search Results validate_competitor_id
Overview
APPS.AS_OPP_COMPETITOR_PVT is a private (PVT) PL/SQL package within the Oracle E-Business Suite Sales Foundation (AS) module. It encapsulates the internal business logic that governs competitor information associated with sales leads and opportunities. The package operates under AUTHID CURRENT_USER and is intentionally classified as private, meaning it is not exposed as a public API for external integration. Instead, it functions as the supporting implementation layer beneath the public opportunity and lead interfaces, most notably the AS_OPPORTUNITY_PUB package.
Its principal business purpose is to maintain the association between a sales lead or opportunity and the competing vendors being tracked against it. Sales organizations use this data to record which competitors are engaged in a given pursuit, enabling competitive analysis, win/loss reporting, and pipeline intelligence. In the context of a user searching for the ability to state client competitors in the USA, this package is the underlying engine that validates, creates, updates, and deletes competitor records tied to leads and opportunities visible through the relevant EBS forms.
Key Procedures and Functions
The package exposes nine documented program units, organized around persistence operations and validation.
- CREATE_COMPETITORS — Inserts new competitor associations for a lead or opportunity. It accepts a competitor table type and returns an output competitor table, following the standard EBS API return status and message conventions.
- UPDATE_COMPETITORS — Modifies existing competitor records associated with a lead or opportunity.
- DELETE_COMPETITORS — Removes competitor associations that are no longer relevant.
- VALIDATE_LEAD_COMPETITOR_ID — Confirms that a given lead-competitor relationship identifier is valid prior to processing.
- VALIDATE_LEAD_ID — Verifies that the referenced lead exists and is accessible.
- VALIDATE_COMPETITOR — Validates the competitor entity itself, checking that the referenced competitor is defined and usable.
- VALIDATE_COMPETITOR_ID — Confirms the competitor identifier supplied by the caller is valid.
- VALIDATE_COMPETITOR_REC — Performs record-level validation across the attributes of a competitor entry before persistence.
The validation routines collectively enforce data integrity, ensuring that competitor associations are only written against legitimate leads and defined competitors.
Tables Accessed
The package reads and writes several core tables through APPS synonyms:
- AS_LEADS_ALL — The primary lead table. Competitor records are anchored to a lead, and this table supplies the parent lead context and ownership.
- AS_LEAD_COMPETITORS — The association table storing the competitor relationship for each lead; this is the principal table written by create, update, and delete operations.
- HZ_PARTIES — The Trading Community Architecture party table, used to resolve and validate the party identity of the competitor where the competitor is modeled as a party.
- PLITBLM — The PL/SQL index-by table messaging facility used to accumulate and return error and information messages to the calling API.
Usage Notes
Because AS_OPP_COMPETITOR_PVT is a private package, it is not intended for direct invocation by external or custom code. It is called internally by the public opportunity and lead APIs — the metadata records that it is referenced by one other package, consistent with this role. Typical invocation occurs when a user maintains competitor information on the Lead or Opportunity forms, or when bulk processes and concurrent programs manipulate lead competitor data. Developers integrating with Oracle Sales are advised to call the corresponding public API (AS_OPPORTUNITY_PUB) rather than this package, since the private interface carries no compatibility guarantee across releases and is subject to change between EBS 12.1.1 and 12.2.2.
-
PACKAGE: APPS.AS_OPP_COMPETITOR_PVT
12.1.1
-
PACKAGE: APPS.AS_OPP_COMPETITOR_PVT
12.2.2
-
PACKAGE BODY: APPS.AS_OPP_COMPETITOR_PVT
12.1.1
-
PACKAGE BODY: APPS.AS_OPP_COMPETITOR_PVT
12.2.2
-
APPS.AS_OPP_COMPETITOR_PVT dependencies on AS_UTILITY_PUB
12.1.1
-
APPS.AS_OPP_COMPETITOR_PVT dependencies on AS_UTILITY_PUB
12.2.2
-
APPS.AS_OPP_COMPETITOR_PVT dependencies on AS_UTILITY_PUB
12.2.2
-
APPS.AS_OPP_COMPETITOR_PVT dependencies on AS_UTILITY_PUB
12.1.1
-
APPS.AS_OPP_COMPETITOR_PVT dependencies on FND_API
12.2.2
-
APPS.AS_OPP_COMPETITOR_PVT dependencies on FND_API
12.1.1
-
APPS.AS_OPP_COMPETITOR_PVT dependencies on FND_API
12.1.1
-
APPS.AS_OPP_COMPETITOR_PVT dependencies on FND_API
12.2.2
-
APPS.AS_OPP_COMPETITOR_PVT dependencies on AS_UTILITY_PVT
12.2.2
-
APPS.AS_OPP_COMPETITOR_PVT dependencies on AS_UTILITY_PVT
12.1.1