Search Results ozf_utility_pvt
Overview
OZF_UTILITY_PVT is a private PL/SQL utility package in the APPS schema that underpins the Oracle E-Business Suite Trade Management (formerly Oracle Trade Management, OZF) and Marketing (AMS) application family. It consolidates a wide range of low-level helper routines — currency conversion, timezone handling, lookup validation, foreign-key verification, uniqueness checking, and standardized message/logging utilities — into a single repository consumed across the OZF and AMS modules. Although the package is classified as PVT (private), meaning it is not intended as a public integration API, it is referenced by 159 other database objects, making it one of the most pervasive internal dependencies in the Trade Management schema. It provides a consistent framework for defensive data validation and error handling that the calling packages rely on for data integrity and user-facing diagnostics.
Key Procedures and Functions
The package exposes 65 documented procedures and functions. They can be grouped as follows:
- Message and logging utilities: DEBUG_MESSAGE, LOG_MESSAGE, LOGGING_ENABLED, ERROR_MESSAGE, DISPLAY_MESSAGES, CREATE_LOG. These write to the FND_LOG and message stack infrastructure and control diagnostic verbosity.
- Data validation helpers: CHECK_FK_EXISTS, CHECK_LOOKUP_EXISTS, CHECK_UNIQUENESS, IS_Y_OR_N. These perform referential and lookup integrity checks before insert or update operations.
- Lookup and metadata retrieval: GET_LOOKUP_MEANING, GET_OBJECT_NAME, GET_QUAL_TABLE_NAME_AND_PK, GET_SOURCE_CODE. These resolve codes, meanings, and table metadata used throughout the OZF/AMS codebase.
- Currency and timezone functions: CONVERT_CURRENCY, GET_SYSTEM_TIMEZONE, GET_USER_TIMEZONE, CONVERT_TIMEZONE. These normalize monetary and temporal values for cross-region processing.
- Resource and security helpers: GET_RESOURCE_NAME, IS_IN_MY_DIVISION. These support role-based and organizational access checks.
Tables Accessed
Through APPS synonyms the package reads and writes a range of foundation and Trade Management tables. AMS_ACT_LOGS, AMS_ACT_LOGS_S, and AMS_ACT_LOGS_TRANSACTION_ID_S support activity logging; AMS_CAMPAIGN_SCHEDULES, AMS_SOURCE_CODES, AMS_STATUS_ORDER_RULES, AMS_USER_STATUSES_TL, AMS_MEDIA_TL, and AMS_CUSTOM_SETUP_ATTR provide campaign and media metadata. FND_LOOKUP_VALUES supplies lookup validation, while HR_ALL_ORGANIZATION_UNITS_TL, JTF_RS_ROLE_RELATIONS, HZ_CUST_ACCOUNTS, HZ_PARTIES, and MTL_SYSTEM_ITEMS_KFV support organizational, customer, and product validations. Additional references include OZF_ACT_BUDGETS, OZF_FUNDS_ALL_B/VL, OZF_OBJECT_FUND_SUMMARY, OZF_OFFERS, OZF_SYS_PARAMETERS_ALL, and OZF_LOOKUPS for core Trade Management data, plus FND_CURRENCIES_VL, GL_CURRENCY_API, GL_MC_CURRENCY_PKG, and GL_SETS_OF_BOOKS for currency and ledger processing.
Usage Notes
OZF_UTILITY_PVT is invoked primarily by other PL/SQL packages within Trade Management and Marketing rather than directly by end users. It is called during form saves, concurrent program executions, workflow business events, and custom code extensions that require standardized validation, currency conversion, or logging. Because it depends on FND_API, FND_MSG_PUB, FND_GLOBAL, and FND_PROFILE, correct initialization of the FND session context is required before invocation. Developers extending OZF or AMS functionality should treat the package as read-only infrastructure and avoid modifying it, since its behavior cascades to 159 dependent objects. Custom code that calls these utilities must observe the same error-handling conventions (message stack population and exceptions via FND_API) expected by the surrounding application code.
-
PACKAGE BODY: APPS.OZF_UTILITY_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_UTILITY_PVT, status:VALID,
-
PACKAGE: APPS.OZF_RESALE_COMMON_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OZF_RESALE_COMMON_PVT, status:VALID,
-
PACKAGE: APPS.OZF_FUNDS_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OZF_FUNDS_PVT, status:VALID,
-
PACKAGE BODY: APPS.OZF_UTILITY_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_UTILITY_PVT, status:VALID,
-
SYNONYM: APPS.AMS_MEDIA_TL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AMS_MEDIA_TL, status:VALID,
-
SYNONYM: APPS.AMS_MEDIA_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AMS_MEDIA_TL, status:VALID,
-
PACKAGE: APPS.OZF_UTILITY_PVT_W
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OZF_UTILITY_PVT_W, status:VALID,
-
SYNONYM: APPS.OZF_ACT_BUDGETS_INT
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OZF_ACT_BUDGETS_INT, status:VALID,
-
SYNONYM: APPS.AMS_CAMPAIGN_SCHEDULES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AMS_CAMPAIGN_SCHEDULES, status:VALID,
-
PACKAGE BODY: APPS.OZF_VOL_OFFR_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_VOL_OFFR_PKG, status:VALID,
-
SYNONYM: APPS.OZF_FUNDS_ALL_B_INT
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OZF_FUNDS_ALL_B_INT, status:VALID,
-
PACKAGE BODY: APPS.OZF_UTILITY_PVT_W
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_UTILITY_PVT_W, status:VALID,
-
PACKAGE BODY: APPS.OZF_MO_PRESET_TIERS_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_MO_PRESET_TIERS_PKG, status:VALID,
-
PACKAGE BODY: APPS.OZF_OFFER_ADJ_LINE_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_OFFER_ADJ_LINE_PKG, status:VALID,
-
PACKAGE BODY: APPS.OZF_OFFER_ADJUSTMENT_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_OFFER_ADJUSTMENT_PKG, status:VALID,
-
SYNONYM: APPS.AMS_ACT_LOGS_S
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AMS_ACT_LOGS_S, status:VALID,
-
PACKAGE BODY: APPS.OZF_LE_UPGRADE_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_LE_UPGRADE_PVT, status:VALID,
-
PACKAGE BODY: APPS.OZF_VO_DISC_STRUCT_NAME_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_VO_DISC_STRUCT_NAME_PKG, status:VALID,
-
PACKAGE BODY: APPS.OZF_LOCATION_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_LOCATION_PVT, status:VALID,
-
PACKAGE BODY: APPS.OZF_CLAIM_LINES_INT_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_CLAIM_LINES_INT_PUB, status:VALID,
-
PACKAGE BODY: APPS.OZF_OFFER_ADJUSTMENT_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_OFFER_ADJUSTMENT_PKG, status:VALID,
-
PACKAGE BODY: APPS.OZF_VOL_OFFR_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_VOL_OFFR_PKG, status:VALID,
-
SYNONYM: APPS.AMS_USER_STATUSES_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AMS_USER_STATUSES_TL, status:VALID,
-
PACKAGE BODY: APPS.OZF_DEBUG_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_DEBUG_PVT, status:VALID,
-
PACKAGE: APPS.AMS_OBJECTATTRIBUTE_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AMS_OBJECTATTRIBUTE_PVT, status:VALID,
-
SYNONYM: APPS.OE_SYS_PARAMETERS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OE_SYS_PARAMETERS_ALL, status:VALID,
-
PACKAGE BODY: APPS.OZF_RESALE_ADJUSTMENTS_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_RESALE_ADJUSTMENTS_PKG, status:VALID,
-
PACKAGE: APPS.AMS_OBJECTATTRIBUTE_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:AMS_OBJECTATTRIBUTE_PVT, status:VALID,
-
PACKAGE BODY: APPS.OZF_OFFER_ADJ_LINE_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_OFFER_ADJ_LINE_PKG, status:VALID,
-
SYNONYM: APPS.AMS_STATUS_ORDER_RULES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AMS_STATUS_ORDER_RULES, status:VALID,
-
PACKAGE BODY: APPS.OZF_OFFER_ADJ_TIER_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_OFFER_ADJ_TIER_PKG, status:VALID,
-
SYNONYM: APPS.AMS_STATUS_ORDER_RULES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AMS_STATUS_ORDER_RULES, status:VALID,
-
PACKAGE BODY: APPS.OZF_SUPP_TRD_PRFLS_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_SUPP_TRD_PRFLS_PKG, status:VALID,
-
PACKAGE BODY: APPS.OZF_ACTIVITY_DENORM_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_ACTIVITY_DENORM_PVT, status:VALID,
-
PACKAGE BODY: APPS.OZF_RESALE_LINES_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_RESALE_LINES_PKG, status:VALID,
-
PACKAGE: APPS.OZF_UTILITY_PVT_W
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OZF_UTILITY_PVT_W, status:VALID,
-
PACKAGE BODY: APPS.OZF_OFFER_ADJ_TIER_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_OFFER_ADJ_TIER_PVT, status:VALID,
-
PACKAGE BODY: APPS.OZF_ACTFORECAST_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_ACTFORECAST_PVT, status:VALID,
-
PACKAGE BODY: APPS.OZF_NA_RULE_HEADER_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_NA_RULE_HEADER_PVT, status:VALID,
-
PACKAGE BODY: APPS.OZF_DENORM_QUERIES_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_DENORM_QUERIES_PVT, status:VALID,
-
PACKAGE BODY: APPS.OZF_OFFR_QUAL_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_OFFR_QUAL_PVT, status:VALID,
-
PACKAGE BODY: APPS.OZF_LE_UPGRADE_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_LE_UPGRADE_PVT, status:VALID,
-
SYNONYM: APPS.AMS_CAMPAIGN_SCHEDULES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AMS_CAMPAIGN_SCHEDULES, status:VALID,
-
PACKAGE BODY: APPS.OZF_CLAIMS_INT_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_CLAIMS_INT_PUB, status:VALID,
-
PACKAGE BODY: APPS.OZF_MO_PRESET_TIERS_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_MO_PRESET_TIERS_PVT, status:VALID,
-
SYNONYM: APPS.AMS_ACT_LOGS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AMS_ACT_LOGS, status:VALID,
-
PACKAGE BODY: APPS.OZF_NA_DDN_RULE_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_NA_DDN_RULE_PVT, status:VALID,
-
PACKAGE BODY: APPS.OZF_ACTFORECAST_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_ACTFORECAST_PVT, status:VALID,
-
PACKAGE BODY: APPS.OZF_NA_DDN_RULE_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_NA_DDN_RULE_PVT, status:VALID,
-
PACKAGE BODY: APPS.OZF_QUAL_MARKET_OPTION_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OZF_QUAL_MARKET_OPTION_PVT, status:VALID,