Search Results validate_flex




Overview

The APPS.OE_VALIDATE_LINE package is a server-side PL/SQL validation library within the Oracle E-Business Suite Order Management (OE) module. Its business function is to centralize the attribute-level and entity-level validation logic applied to order lines before those lines are committed to the order management data model. Because order lines carry a large number of interdependent attributes — inventory items, ship-to and bill-to parties, pricing, warehouse assignments, and shipping set memberships — the Order Management application requires a controlled, reusable layer that can verify these values consistently regardless of whether the line arrives through the Order Management HTML user interface, Oracle Forms, an order import concurrent program, or a public API call.

OE_VALIDATE_LINE fulfills this role by exposing a small set of validation entry points that other OE packages invoke during order and line processing. Its metadata classifies it under the generic "OTHER" API category and marks it as VALID in the APPS schema across both the 12.1.1 and 12.2.2 releases, indicating a stable and long-lived component of the order entry stack.

Key Procedures and Functions

The documented package interface contains seven procedures and functions:

  • CHECK_BOOK_REQD_ATTRIBUTES — verifies that the attributes required for booking an order line are populated and permissible, supporting the booking workflow performed by OE_ORDER_BOOK_UTIL.
  • ENTITY — provides entity-level validation for an order line, treating the line as a complete logical entity rather than a single column value.
  • ATTRIBUTES — performs attribute-level validation across the line's fields, ensuring individual values conform to the expected domain and business rules.
  • ENTITY_DELETE — supports validation logic associated with the deletion of an order line entity.
  • VALIDATE_FLEX — validates descriptive flexfield content on the order line, confirming that flexfield segments satisfy their defined value sets.
  • VALIDATE_SHIPSET_SMC — validates shipping set membership and the associated ship-set model/configuration, ensuring lines grouped into a shipping set are internally consistent.
  • VALIDATE_DECIMAL_QUANTITY — confirms that a line quantity conforms to decimal precision rules, guarding against invalid or over-precise quantity values.

Tables Accessed

Through APPS synonyms the package references customer and item master data needed for line validation. Customer-related tables include HZ_CUST_ACCOUNTS, HZ_CUST_ACCOUNTS_ALL, HZ_CUST_ACCOUNT_ROLES, HZ_CUST_ACCT_RELATE, HZ_CUST_ACCT_RELATE_ALL, HZ_CUST_ACCT_SITES, HZ_CUST_ACCT_SITES_ALL, HZ_CUST_SITE_USES_ALL, and HZ_PARTY_SITES, which are consulted to validate account, site, and party relationships referenced by the line. Item cross-reference validation relies on MTL_CROSS_REFERENCES, MTL_CROSS_REFERENCE_TYPES, MTL_CUSTOMER_ITEMS, and MTL_CUSTOMER_ITEM_XREFS, enabling customer item numbers to be resolved and verified. System parameter tables AR_SYSTEM_PARAMETERS_ALL and FINANCIALS_SYSTEM_PARAMETERS are read to honor set-of-books and financials configuration that influences validation behavior. The package also depends on FND_API, FND_PROFILE, and OE_ORDER_PUB.

Usage Notes

OE_VALIDATE_LINE is not typically called directly by end users. It is invoked internally by OE_LINE_UTIL, OE_DEFAULT_LINE, OE_CONFIG_UTIL, OE_ORDER_PVT, OE_SET_UTIL, OE_ORDER_BOOK_UTIL, and OE_OE_PRICING_AVAILABILITY — packages responsible for line defaulting, configuration, pricing availability, order booking, and overall order processing. This positioning places it on the standard path of order entry, order import, and booking flows. Custom extensions that insert or modify order lines should respect the same validation semantics, and developers integrating with the Order Management public APIs should be aware that this package enforces the underlying rules indirectly, even though it is not part of the formally published API surface.