Search Results validate_oks_flexfield
Overview
OKS_UTIL_PUB is a public utility package in the Oracle E-Business Suite Service Contracts (OKS) module, owned by the APPS schema and defined with AUTHID CURRENT_USER. It provides shared helper functionality used throughout the Service Contracts and related Order Capture/OKC code base, including flexfield value-set resolution, descriptive flexfield validation, status and operating-unit retrieval, contract line naming, contact sales group maintenance, and transaction extension creation. Rather than implementing a single business transaction, the package centralizes reusable routines so that other OKS packages, forms, and concurrent programs can consistently resolve flexfield metadata, validate segment values, and derive descriptive context for contract and installed-base entities.
The package header declares a set of standard constants used by its callers, including G_APP_NAME (initialized from OKC_API.G_APP_NAME), G_APP_ID (515, the Service Contracts application identifier), G_PKG_NAME, G_PRODUCT_STATUS, and the error tokens G_UNEXPECTED_ERROR and G_EXPECTED_ERROR. These constants let dependent code raise and interpret errors in a uniform manner.
Key Procedures and Functions
- GET_VALUESET_ID — Resolves the flexfield value-set identifier and its associated format and validation types for a given flexfield name, context, and segment. This is the routine users search for by the term "get_valueset_id", and it is the primary mechanism by which callers obtain the value set backing a specific descriptive flexfield segment before validating or querying values against it.
- VALIDATE_OKS_FLEXFIELD — Validates a descriptive flexfield value for a specified flexfield name, context, and attribute. It returns separate flags for context, attribute, and value validity, along with the datatype, precedence, and an error code. An optional check_enabled parameter allows callers to bypass enabled-flag checking.
- VALUE_EXISTS_IN_TABLE — Determines whether a supplied value already exists within the table bound to a given value set, returning the matching identifier and value through output parameters.
- GET_OKS_STATUS — Returns the current Service Contracts processing status indicator used by the package.
- RESP_ORG_ID — Returns the operating unit identifier associated with the current responsibility context.
- UPDATE_CONTACTS_SALESGROUP — Concurrent-program-style entry point that updates contact sales group associations for a given contract and group identifier, returning error buffer and return code outputs.
- GET_LINE_NAME — Overloaded function that derives a contract line name from either line-type code and object identifiers or from a subline identifier.
- CREATE_TRANSACTION_EXTENSION — Creates a transaction extension record in the Service Contracts transaction-extension model.
Tables Accessed
The package and its immediate dependencies reference a range of APPS synonyms. Installed-base and configuration data is read from CSI_ITEM_INSTANCES, CSI_SYSTEMS_TL, and CSI_COUNTER_ASSOCIATIONS. Flexfield metadata is resolved through FND_FLEX_VALIDATION_TABLES and FND_APPLICATION. Customer and party information is drawn from HZ_CUST_ACCOUNTS, HZ_CUST_ACCOUNTS_ALL, HZ_CUST_ACCT_SITES_ALL, HZ_CUST_SITE_USES_ALL, HZ_PARTIES, and HZ_PARTY_SITES. Contract structures are accessed via OKC_K_HEADERS_B, OKC_K_ITEMS, OKC_K_GRPINGS, and OKC_CONTACTS.
Usage Notes
OKS_UTIL_PUB is typically invoked from Service Contracts forms, concurrent programs such as those maintaining contact sales groups, and custom extensions that require flexfield resolution or validation. The package is referenced by at least one other package, confirming its role as a shared dependency. Callers should invoke the flexfield routines before performing value lookups, and note that validation behavior can be controlled through the check_enabled parameter. Because the package is AUTHID CURRENT_USER, privilege checks apply against the invoking schema.
-
PACKAGE: APPS.OKS_UTIL_PUB
12.2.2
-
PACKAGE: APPS.OKS_UTIL_PUB
12.1.1
-
PACKAGE BODY: APPS.OKS_UTIL_PUB
12.1.1
-
PACKAGE BODY: APPS.OKS_UTIL_PUB
12.2.2