Search Results c_debug




Overview

RLM_XML_API is a public API package in the Oracle E-Business Suite Release Management (RLM) module, classified by ETRM as an API. It provides the procedural foundation for generating and interpreting the XML messages that flow between Oracle EBS and external trading partners through the EDI/e-Commerce Gateway infrastructure. In the RLM context, the package supports the exchange of return material authorization (RMA) and repair/replenishment transaction data, translating database records into standards-conformant XML payloads and validating inbound XML content against Oracle validation rules.

A defining characteristic of the package is its pervasive debug instrumentation. The package-level variable l_DEBUG is initialized at load time from the profile option RLM_DEBUG_MODE, defaulting to -1 (disabled) when the profile is null. Every procedure wraps its body in conditional blocks that call rlm_core_sv.start_debug, rlm_core_sv.dpush, rlm_core_sv.dlog, and rlm_core_sv.dpop only when debugging is enabled. The user search term "c_debug" refers to the internal constant passed to dlog to categorize log entries, alongside C_SDEBUG used to mark stack push/pop boundaries. This design imposes negligible overhead in production while allowing full trace capture during partner on-boarding and troubleshooting.

Key Procedures and Functions

Twelve procedures and functions are documented in the ETRM metadata. Two representative examples follow from the source excerpt:

  • ValidateScheduleType — Confirms that an inbound schedule type value equals the constant k_DEMAND; returns k_SUCCESS or k_ERROR through an OUT parameter. It captures a v$timer timestamp to correlate debug entries with elapsed execution time.
  • SetSSSILineDetails — Derives supplier-scheduled line attributes (start date, quantity, subtype, date code, quantity UOM) from raw interface inputs such as line type, required/received/shipped dates, quantities, and UOMs. It declares custom exceptions e_IncompleteData and e_UnknownData and returns error code and message through IN OUT parameters.

The remaining documented units cover companion validation and payload-construction duties, including header-level processing and XML element assembly. No parameter lists beyond those shown in the excerpt should be assumed; callers should confirm signatures against the deployed package specification.

Tables Accessed

Usage Notes

RLM_XML_API is invoked by e-Commerce Gateway concurrent programs and inbound/outbound transaction workflows rather than by forms directly, and ETRM records zero dependent packages, indicating a relatively self-contained API surface. Administrators enable tracing by setting the RLM_DEBUG_MODE profile option to a non-null value; the package then emits tagged entries through rlm_core_sv.dlog(C_DEBUG, ...). Custom extensions should call this API only through its public specification, respect the IN OUT error-handling parameters, and disable debug logging before promoting code to production.