Search Results validate_order_record




Overview

OZF_TRACING_ORDER_PVT is a private PL/SQL package in the Oracle E-Business Suite (EBS) 12.1.1 and 12.2.2 environments under the APPS schema. It belongs to the Oracle Trade Management (OZF) product family, and specifically supports the order tracing and accrual functionality associated with the chargeback and resale batch process. The package is declared with AUTHID CURRENT_USER, meaning that runtime privilege checks are evaluated against the invoking schema rather than the package owner; this is typical of EBS private APIs that are called by other packages or by public wrapper APIs within the same application.

The primary business function of this package is to trace order information for direct customers, validate that order data against chargeback-specific business rules, and generate accruals based on the results of pricing simulation. It forms part of the internal machinery that ensures chargeback accruals are calculated correctly before downstream settlement and payment activities are initiated.

Key Procedures and Functions

The package exposes three documented procedures. Each follows the standard EBS API parameter convention, accepting p_api_version, p_init_msg_list, p_commit, and p_validation_level as control parameters, along with a business-specific identifier (p_resale_batch_id) and the standard output parameters x_return_status, x_msg_data, and x_msg_count. In line with the EBS API programming standard, the return status is expected to hold one of FND_API.G_RET_STS_SUCCESS, G_RET_STS_ERROR, or G_RET_STS_UNEXPECTED_ERROR.

  • VALIDATE_ORDER_RECORD — Validates order information that is specific to the chargeback process. It is the entry point associated with the search term validate_order_record and is intended to be invoked before or as part of accrual processing so that only valid order records are traced forward.
  • PROCESS_ORDER — Described as the main API for order tracing. It reads order information for direct customers and creates accruals based on the result of the pricing simulation.
  • INITIATE_PAYMENT — Initiates payment for a resale batch, acting on batches previously processed and validated.

Tables Accessed

The package accesses its data through APPS synonyms. The documented tables include the resale batch and header/line structures OZF_RESALE_BATCHES, OZF_RESALE_BATCHES_ALL, OZF_RESALE_HEADERS, OZF_RESALE_LINES, and the interface tables OZF_RESALE_LINES_INT and OZF_RESALE_LINES_INT_ALL. Batch-level logging and audit information is handled through OZF_RESALE_LOGS, OZF_RESALE_LOGS_ALL, and the sequence OZF_RESALE_LOGS_ALL_S. System-level configuration values are read from OZF_SYS_PARAMETERS. PLITBLM is referenced as part of the standard EBS PL/SQL table and messaging infrastructure used for bulk processing and message handling. Collectively these tables allow the package to read staged resale line data, apply validations, produce accrual results, and record processing outcomes.

Usage Notes

OZF_TRACING_ORDER_PVT is classified as a PVT (private) API, which means it is not intended to be called directly by external or customer-written code. It is referenced by two other packages within the Trade Management schema, and those callers are the supported integration points. Customizations should therefore be routed through the calling public APIs or concurrent programs rather than invoking this package directly.

In practice the package is exercised during resale batch processing — for example when a batch is submitted through the Trade Management chargeback/resale concurrent program, or when a form initiates order tracing for a selected batch. Because the procedures accept p_commit, callers control transaction boundaries; passing FND_API.G_FALSE allows the caller to commit or roll back the entire unit of work. The G_DEFAULT_NUM_REC_FETCH constant (30) governs the number of records fetched per call during bulk processing, which is relevant when assessing performance on large batches.