Search Results ar_credit_memo_api_pub




Overview

AR_CREDIT_MEMO_API_PUB is the public application programming interface package within the Oracle Receivables (AR) module of Oracle E-Business Suite. Its primary business function is to provide a supported, programmatic entry point for creating and processing credit memo requests — the transaction documents used to reduce a customer's outstanding receivable balance, issue refunds, or correct billing errors. Rather than allowing direct inserts into the Receivables transaction tables, Oracle exposes this package so that external modules, custom extensions, and other Oracle application families can submit credit memo requests while preserving the referential integrity, workflow state, and validation logic that Receivables depends upon. The package acts as a controlled gateway: it accepts a request, validates the supplied parameters (including descriptive flexfield content), generates or registers the credit memo request record, and tracks the request through its approval and creation lifecycle via Oracle Workflow. Because it is classified as a PUB (public) API, it is the supported surface that customers and partners are expected to call, insulating them from internal implementation changes to the underlying RA_CM_REQUESTS workflow architecture.

Key Procedures and Functions

The package exposes seven documented procedures and functions, each serving a distinct stage of the credit memo request lifecycle:

  • CREATE_REQUEST — The central entry point. It accepts the credit memo request details, invokes validation, persists the request into the RA_CM_REQUESTS staging structure, and initiates the associated workflow so the request can be processed into an actual credit memo transaction.
  • VALIDATE_REQUEST_PARAMETERS — Performs pre-submission validation of the request parameters supplied by the caller, ensuring mandatory values, valid lookups, and business-rule conformance before any data is written.
  • GET_REQUEST_STATUS — Returns the current status of a previously submitted request, allowing callers to poll or confirm the outcome of the workflow-driven credit memo creation.
  • PRINT_DEFAULT_PAGE — Generates the default printable output associated with a credit memo request, typically supporting the confirmation or cover page produced through the HTP (HTML) toolkit.
  • VALIDATE_LINE_INT_FLEX — Validates the line-level descriptive flexfield segments attached to a credit memo request line.
  • VALIDATE_INT_DESC_FLEX — Validates the header-level descriptive flexfield segments for the credit memo request.

Two additional documented routines round out the seven-member interface, supporting the same validation and lifecycle objectives.

Tables Accessed

Through APPS synonyms, the package reads and writes the core Receivables credit memo structures. RA_CM_REQUESTS stores the submitted request header, while RA_CM_REQUEST_LINES and RA_CM_REQUEST_LINES_ALL hold the individual line details. RA_CUSTOMER_TRX, RA_CUSTOMER_TRX_ALL, and RA_CUSTOMER_TRX_LINES represent the resulting credit memo transactions once a request is approved and converted. RA_CUST_TRX_TYPES and RA_BATCH_SOURCES provide the transaction type and batch source configuration used to classify the generated memo. AR_PAYMENT_SCHEDULES is accessed to reconcile the credit against open balances. AR_NOTES and ARW_CMREQ_COVER support request annotations and the printable cover page. FND_DESCRIPTIVE_FLEXS supplies the flexfield metadata used during the two validation routines. Workflow tables — WF_ITEMS, WF_PROCESS_ACTIVITIES, WF_ITEM_ACTIVITY_STATUSES, and WF_USERS — are accessed to create, route, monitor, and resolve the credit memo request approval process.

Usage Notes

This package is normally invoked indirectly rather than directly by end users. It is called by the Receivables credit memo request forms and concurrent programs, and it is a documented dependency for several other packages, including AR_CREDIT_MEMO_API_PUB_W, IEX_DISPUTE_PVT, LNS_BILLING_BATCH_PUB, LNS_PAYOFF_PUB, OZF_AR_PAYMENT_PVT, and PON_EMD_AR_INTEGRATION_GRP. Because those six packages reference it, any custom code invoking this API participates in the same workflow-driven lifecycle and must supply valid descriptive flexfield values for the VALIDATE_* routines. Custom integrators should call GET_REQUEST_STATUS after CREATE_REQUEST to confirm completion, and should avoid direct DML against the underlying RA_CM_REQUESTS and RA_CUSTOMER_TRX tables to preserve workflow integrity. The metadata is consistent across EBS 12.1.1 and 12.2.2.