Search Results approve_adjustment




Overview

AR_ADJUSTAPI_PUB is the public Application Programming Interface (API) package within the Oracle Receivables (AR) module of Oracle E-Business Suite. It resides in the APPS schema and is classified as a PUB package, meaning it is a formally supported public interface intended for external invocation by forms, concurrent programs, and custom code. Its purpose is to encapsulate the business logic required to create, modify, reverse, and approve adjustments against Receivables transactions. Adjustments are used to alter the outstanding balance of an invoice, debit memo, chargeback, or similar transaction without modifying the original transaction amount. By exposing this functionality through a PL/SQL API, Oracle provides a validated, rules-enforcing entry point that bypasses the need for direct table manipulation, ensuring that Receivables accounting, payment schedule distribution, and validation logic remain consistent.

Key Procedures and Functions

The package documents four public procedures, each corresponding to a distinct stage or action in the adjustment lifecycle:

  • CREATE_ADJUSTMENT — Inserts a new adjustment against a specified transaction, validating input attributes such as the adjustment activity, amount, and reason, and applying the adjustment to the transaction balance and payment schedules.
  • MODIFY_ADJUSTMENT — Updates the attributes of an existing, previously created adjustment, subject to the API's validation rules governing which fields may be altered and under what status conditions.
  • REVERSE_ADJUSTMENT — Reverses a previously applied adjustment, restoring the transaction's outstanding balance to reflect the removal of the adjustment.
  • APPROVE_ADJUSTMENT — Approves a pending adjustment so that it becomes effective and participates in the accounting and payment schedule calculations. This reflects Receivables' support for adjustment approval workflows.

Parameter lists are not reproduced here; the procedures follow the standard Oracle PL/SQL API convention of accepting business attribute inputs together with standard API parameters (p_init_msg_list, p_commit, x_return_status, x_msg_count, x_msg_data) for message handling and transaction control.

Tables Accessed

Per the documented metadata, the package references the following tables through APPS synonyms:

  • AR_ADJUSTMENTS — The primary table storing adjustment records. The API reads and writes this table to persist the created, modified, reversed, or approved adjustment rows.
  • AR_PAYMENT_SCHEDULES — Stores the payment schedule and balance information for each transaction. The API updates this table so that adjustment amounts are correctly reflected in the transaction's outstanding balance and aging.
  • V$TIMER — An Oracle dynamic performance view used to obtain timing information, typically to record timestamps or apply consistent date/time logic during processing.

The dependency listing also confirms references to AR_ADJUSTMENTS and to the FND_API package, which supplies the standard message-handling and error-stack utilities used by all EBS public APIs.

Usage Notes

AR_ADJUSTAPI_PUB is typically invoked from the Receivables Adjustments form, from concurrent programs that process adjustments in batch, and from custom PL/SQL integrations that create or reverse adjustments programmatically. Custom code should always call the PUB procedures rather than inserting into AR_ADJUSTMENTS directly, because the API enforces validation, approval logic, payment schedule updates, and consistent error messaging. Because it is registered as a PUB package, it carries Oracle's public interface support commitment, though callers must still supply correctly validated inputs and check x_return_status after each call. No other packages within the documented scope reference AR_ADJUSTAPI_PUB, indicating it is a top-level entry point rather than an internal helper.