Search Results validate_element




Overview

CLN_RN_UTILS is a utility package body owned by APPS in the Oracle E-Business Suite, associated with the RosettaNet (CLN) integration modules. Its primary business function is to provide reusable conversion and validation services required by RosettaNet message processing within Oracle EBS 12.1.1 and 12.2.2. Specifically, the package centralizes time zone conversion logic — translating dates between the database server time zone and the RosettaNet (UTC) time zone — along with XML parsing, validation, tag extraction, and various RosettaNet identifier formatting routines. The package is classified under the ETRM API classification "OTHER," indicating it is an internal utility layer rather than a public, standalone API. The source header identifies version 120.8, dated 2006/04/06, reflecting the package's long-standing stability across EBS releases. Standard FND debug instrumentation is embedded throughout via CLN_DEBUG_PUB, gated by the profile option CLN_DEBUG_LEVEL.

Key Procedures and Functions

The package exposes 22 documented procedures and functions, organized into distinct functional groups. The time zone conversion group includes CONVERT_TO_RN_TIMEZONE, which converts an input date from the database server time zone into the RosettaNet time zone by invoking FND_TIMEZONES.GET_SERVER_TIMEZONE_CODE and FND_TIMEZONES_PVT.ADJUST_DATETIME; CONVERT_TO_RN_DATETIME, CONVERT_TO_RN_DATE_EVENT, and CONVERT_TO_RN_DATE, which apply similar conversion semantics to different date representations; and CONVERT_TO_DB_DATE, which performs the inverse conversion from RosettaNet/UTC time back to database time. A numeric formatting utility, CONVERT_NUMBER_TO_CHAR, is also documented.

RosettaNet partner routing and role resolution is handled by GET_FROM_ROLE and GET_TO_ROLE, which determine the originating and destination partner roles for message exchange. XML processing is supported by VALIDATE_XML, GET_TAG_VALUE_FROM_XML, and GETTAGPARAMVALUE, which parse inbound or outbound RosettaNet payloads and extract element values. Item configuration utilities include GET_ITEM_CONFIG_PARAMS and CREATE_ITEM_CONFIG_TAG. Identity and identifier helpers include GET_USER_ID, which resolves an FND user, and a set of purchase order-related identifier builders: GETPURCHASEORDERNUM, GETRELNUM, GETREVNUM, CONCAT_PO_RELNUM, and CONCAT_PORELNUM_REVNUM, which assemble composite PO, release, and revision numbers. Finally, TRUNCATE_STRING provides a defensive string-length utility.

Tables Accessed

The package references several APPS synonyms for data retrieval and logging. CLN_RN_VALIDATIONS stores RosettaNet validation rules consulted during XML validation. ECX_DOCLOGS and ECX_TP_HEADERS support the EDI/XML Gateway transaction logging and trading partner infrastructure. FND_USER is read by GET_USER_ID to map user names to internal user identifiers. HR_LOCATIONS_ALL, HZ_CONTACT_POINTS, and HZ_PARTIES supply location, contact point, and party data used in partner and role resolution. WF_EVENT_T is used in the Oracle Workflow event context. XMLDOM, XMLPARSER, and DBMS_LOB support XML parsing and large object manipulation, while DUAL and PLITBLM are system-level references.

Usage Notes

CLN_RN_UTILS is typically invoked indirectly rather than directly by end users. It is referenced by three other packages, indicating it serves as a shared dependency for higher-level RosettaNet processing logic. Common invocation contexts include RosettaNet outbound message construction (where dates and identifiers must be formatted correctly), inbound message validation, and concurrent program or workflow-driven processing that requires time zone normalization or XML tag extraction. Custom extensions that need to convert between database and RosettaNet time zones, or parse RosettaNet XML payloads, can call these utilities directly. Because the package is an internal utility with an "OTHER" classification, it carries no formal public API guarantee, and developers should verify signature stability against the specific EBS release before depending on it in custom code. Debug output is controlled through the CLN_DEBUG_LEVEL profile option, which is useful when diagnosing conversion or validation failures in integration flows.