Search Results update_f_ct_id




Overview

ARP_CTL_PKG is a PL/SQL control package in the Oracle E-Business Suite Receivables (AR) module, owned by the APPS schema. Its name—derived from "AR" and "Control"—reflects its role as a low-level repository access layer for the RA_CUSTOMER_TRX_LINES entity, which stores the individual transaction lines that make up an invoice, debit memo, credit memo, or on-account credit. Rather than implementing a formal, published business API with validation and workflow semantics, ARP_CTL_PKG exposes a set of tightly scoped procedures for fetching, locking, inserting, updating, deleting, and displaying customer transaction line records. It is best characterized as an internal pl/sql construct that higher-level Receivables APIs, forms, and concurrent programs call to perform the physical row operations against the transaction line table. The header comment (120.6, last modified 2005) indicates the package has been stable across many releases and is inherited unchanged into 12.1.1 and 12.2.2.

Key Procedures and Functions

The 24 documented procedures fall into logical groups:

The user-searched procedure, UPDATE_F_CT_ID, updates all customer transaction lines belonging to a specified customer_trx_id, optionally filtered by line_type and currency_code. It is the bulk counterpart to UPDATE_P and is typically invoked when an entire transaction's lines must be rewritten, such as during a copy or adjustment operation.

Tables Accessed

The package operates against the core Receivables transaction tables through APPS synonyms: RA_CUSTOMER_TRX, RA_CUSTOMER_TRX_ALL, RA_CUSTOMER_TRX_LINES, RA_CUSTOMER_TRX_LINES_ALL, and RA_CUSTOMER_TRX_LINES_S (the _ALL and _S variants indicate Multi-Org and security-enabled access used from 11i onward). FND_CURRENCIES supplies valid currency codes for amount updates; AR_MEMO_LINES_B and AR_SYSTEM_PARAMETERS provide memo line and system-parameter defaults; DUAL is used for simple scalar queries; PLITBLM and DBMS_SQL support dynamic SQL and PL/SQL table structures.

Usage Notes

ARP_CTL_PKG is a private implementation utility rather than a public integration API. Its 18 documented callers are almost exclusively other Oracle Receivables packages—such as AutoInvoice and the transaction copy/merge routines—plus Receivables forms that need direct row manipulation where no validated API is appropriate. Customizations should avoid calling ARP_CTL_PKG directly because it bypasses the business logic (accounting, tax, and distribution) enforced by the supported AR APIs; direct use can violate data integrity and is not upgrade-safe across 12.1.1 and 12.2.2.