Search Results hz_user_party_utils
Overview
APPS.HZ_USER_PARTY_UTILS is a utility package in the Oracle E-Business Suite Trading Community Architecture (TCA) / Receivables stack, shipped under the ARHUSRPB.pls source file. Its stated purpose is to resolve or create a TCA party record based on a user's email address—the identifier referenced by the search term pv_email_address. In Oracle EBS 12.1.1 and 12.2.2, TCA separates "parties" (the master entity) from "users" (FND_USER login accounts) and from contact points (email addresses, phones). This package provides the bridge logic that finds whether a party already exists for a given email, and if not, creates one, returning the party identifier. This supports customer-facing self-service registration and guest checkout flows where a party must be established or reused before orders, relationships, or contact points can be recorded.
Key Procedures and Functions
ETRM documents a single public entry point, plus a private helper declared in the package body. Note that parameter lists are not invented here; only documented names and purposes are described.
- GET_USER_PARTY_ID — The primary public function. Per the embedded comments, it "tries to find a party based on email-address. If party is found the party id is returned. If the party is NOT found a new party is created and party id returned." Documented inputs include user name, first name, last name, and the email address (pv_email_address); it returns the party identifier and a return status. This is the routine most relevant to the pv_email_address search.
- CREATE_PER_PERSON_PARTY — A package-body-level procedure (prototype declared in the body) that accepts a PER person identifier and returns a party identifier via an OUT NOCOPY parameter. It is used internally by GET_USER_PARTY_ID to materialize a party when no match is found, linking the HR/PER person record to the newly created TCA party.
The package also declares standard FND_MSG_PUB message-level constants (unexpected error, error, success, and debug high/medium/low) used for the return-status and message-stack conventions typical of TCA PL/SQL APIs.
Tables Accessed
The documented table list reflects the lookup-and-insert pattern described in the header comments:
- HZ_PARTIES — Read to search for an existing party by name/email context and written when a new party must be created.
- HZ_CONTACT_POINTS — Read to match the email address (pv_email_address); the contact point is what associates an email with a party, so this is central to the lookup.
- HZ_PARTY_NUMBER_S — Sequence used to generate the party number for newly created parties.
- HZ_RELATIONSHIPS — Establishes the relationship between the party and related entities (for example, person-to-organization or contact role associations).
- FND_USER — Read to correlate the application user login with the party.
- PER_ALL_PEOPLE_F — Read when resolving or creating a person party from an HR person record.
- DUAL — Used for single-row scalar operations (sequence lookups, constant selection).
Usage Notes
This is a low-level utility rather than a form-bound API, so it is typically invoked from custom PL/SQL, other TCA packages, or self-service registration logic that must resolve a party from a user's email. ETRM records that it is referenced by two other packages, confirming its role as a shared internal dependency. When invoking it, callers should treat the party creation as transactional and check the returned status and FND_MSG_PUB message stack before committing. Because behavior differs subtly across 12.1.1 and 12.2.2 (12.2.x moved to a unified online patching model and Java-based OAF pages), the package should be used as shipped—modifying it directly invalidates its support status. The pv_email_address input maps to the email contact point lookup, which is the intended key for party resolution.
-
PACKAGE BODY: APPS.HZ_USER_PARTY_UTILS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:HZ_USER_PARTY_UTILS, status:VALID,
-
PACKAGE: APPS.HZ_USER_PARTY_UTILS
12.1.1
owner:APPS, object_type:PACKAGE, object_name:HZ_USER_PARTY_UTILS, status:VALID,
-
PACKAGE: APPS.HZ_USER_PARTY_UTILS
12.2.2
owner:APPS, object_type:PACKAGE, object_name:HZ_USER_PARTY_UTILS, status:VALID,
-
PACKAGE BODY: APPS.HZ_USER_PARTY_UTILS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:HZ_USER_PARTY_UTILS, status:VALID,
-
PACKAGE: APPS.HZ_USER_PARTY_UTILS
12.1.1
-
PACKAGE: APPS.HZ_USER_PARTY_UTILS
12.2.2
-
PACKAGE BODY: APPS.IMC_BOOKMARK_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:IMC_BOOKMARK_PUB, status:VALID,
-
SYNONYM: APPS.HZ_PARTY_NUMBER_S
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_PARTY_NUMBER_S, status:VALID,
-
PACKAGE BODY: APPS.IMC_BOOKMARK_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:IMC_BOOKMARK_PUB, status:VALID,
-
SYNONYM: APPS.HZ_PARTY_NUMBER_S
12.1.1
owner:APPS, object_type:SYNONYM, object_name:HZ_PARTY_NUMBER_S, status:VALID,
-
PACKAGE BODY: APPS.POS_PARTY_MANAGEMENT_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:POS_PARTY_MANAGEMENT_PKG, status:VALID,
-
PACKAGE BODY: APPS.POS_PARTY_MANAGEMENT_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:POS_PARTY_MANAGEMENT_PKG, status:VALID,
-
PACKAGE: APPS.HZ_CONTACT_POINT_V2PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:HZ_CONTACT_POINT_V2PUB, status:VALID,
-
PACKAGE: APPS.HZ_CONTACT_POINT_V2PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:HZ_CONTACT_POINT_V2PUB, status:VALID,
-
PACKAGE: APPS.HZ_PARTY_V2PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:HZ_PARTY_V2PUB, status:VALID,
-
PACKAGE BODY: APPS.HZ_USER_PARTY_UTILS
12.1.1
-
PACKAGE BODY: APPS.HZ_USER_PARTY_UTILS
12.2.2
-
PACKAGE: APPS.HZ_PARTY_V2PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:HZ_PARTY_V2PUB, status:VALID,
-
APPS.POS_PARTY_MANAGEMENT_PKG dependencies on HZ_USER_PARTY_UTILS
12.1.1
-
APPS.HZ_USER_PARTY_UTILS dependencies on HZ_USER_PARTY_UTILS
12.2.2
-
APPS.HZ_USER_PARTY_UTILS dependencies on HZ_USER_PARTY_UTILS
12.1.1
-
APPS.IMC_BOOKMARK_PUB dependencies on HZ_USER_PARTY_UTILS
12.2.2
-
APPS.IMC_BOOKMARK_PUB dependencies on HZ_USER_PARTY_UTILS
12.1.1
-
APPS.POS_PARTY_MANAGEMENT_PKG dependencies on HZ_USER_PARTY_UTILS
12.2.2
-
SYNONYM: APPS.HZ_CONTACT_POINTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_CONTACT_POINTS, status:VALID,
-
SYNONYM: APPS.HZ_CONTACT_POINTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:HZ_CONTACT_POINTS, status:VALID,
-
SYNONYM: APPS.HZ_RELATIONSHIPS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_RELATIONSHIPS, status:VALID,
-
SYNONYM: APPS.HZ_RELATIONSHIPS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:HZ_RELATIONSHIPS, status:VALID,
-
APPS.HZ_USER_PARTY_UTILS dependencies on FND_MSG_PUB
12.1.1
-
APPS.HZ_USER_PARTY_UTILS dependencies on FND_MSG_PUB
12.2.2
-
SYNONYM: APPS.FND_USER
12.1.1
owner:APPS, object_type:SYNONYM, object_name:FND_USER, status:VALID,
-
SYNONYM: APPS.FND_USER
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FND_USER, status:VALID,
-
SYNONYM: APPS.HZ_PARTIES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_PARTIES, status:VALID,
-
SYNONYM: APPS.PER_ALL_PEOPLE_F
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PER_ALL_PEOPLE_F, status:VALID,
-
SYNONYM: APPS.PER_ALL_PEOPLE_F
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PER_ALL_PEOPLE_F, status:VALID,
-
SYNONYM: APPS.HZ_PARTIES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:HZ_PARTIES, status:VALID,
-
PACKAGE: APPS.FND_MSG_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_MSG_PUB, status:VALID,
-
PACKAGE: APPS.FND_PROFILE
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_PROFILE, status:VALID,
-
PACKAGE: APPS.FND_PROFILE
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_PROFILE, status:VALID,
-
PACKAGE: APPS.FND_MSG_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_MSG_PUB, status:VALID,
-
SYNONYM: PUBLIC.DUAL
12.2.2
owner:PUBLIC, object_type:SYNONYM, object_name:DUAL, status:VALID,
-
SYNONYM: PUBLIC.DUAL
12.1.1
owner:PUBLIC, object_type:SYNONYM, object_name:DUAL, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.1.1 DBA Data
12.1.1
-
PACKAGE: APPS.FND_API
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_API, status:VALID,
-
PACKAGE: APPS.FND_API
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_API, status:VALID,
-
PACKAGE: SYS.STANDARD
12.1.1
owner:SYS, object_type:PACKAGE, object_name:STANDARD, status:VALID,