Results for “arp_process_freight”
50+ results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
ARP_PROCESS_FREIGHT is a private PL/SQL package body in the Oracle E-Business Suite Receivables (AR) module, owned by the APPS schema. It encapsulates the business logic governing freight line processing against customer transactions. Freight charges in Receivables may be defined either at the transaction header level or against an individual transaction line, and the package enforces the integrity rules that prevent conflicting or duplicate freight definitions. Its principal design objective, evidenced by the earliest modification history entry ("12-JUL-95 Subash Chadalavada Created"), is to validate freight insert, update, and delete operations before they reach the underlying transaction tables, and to persist freight amounts as distribution records. The package operates under the API classification OTHER, meaning it is not published as a formally supported public API, and is referenced internally by four other packages in the application.
Key Procedures and Functions
The package exposes nine documented units, all declared in the package body. CHECK_FRT_LINE_COUNT inspects the existing freight lines for a customer transaction and raises an application error when more than one freight line exists at the header or line level, or when freight is being defined simultaneously at both levels. VALIDATE_INSERT_FREIGHT, VALIDATE_UPDATE_FREIGHT, and VALIDATE_DELETE_FREIGHT apply the corresponding validation rules for each DML operation, invoking the line count check and related business constraints before any change is committed. SET_FLAGS manages indicator values on the freight record or its associated transaction lines. INSERT_FREIGHT, UPDATE_FREIGHT, and DELETE_FREIGHT perform the physical persistence of freight lines and their accounting distributions. INIT performs package-level initialization, loading system parameter and currency attributes into package globals. Notably, the body declares globals such as pg_base_precision and pg_base_min_acc_unit from FND_CURRENCIES, and pg_trx_header_level_rounding from AR_SYSTEM_PARAMETERS, which support currency precision and header-level rounding behavior introduced under Bug 3604027.
Tables Accessed
The package reads and writes RA_CUSTOMER_TRX and RA_CUSTOMER_TRX_LINES, which hold the transaction header and its lines including lines of type FREIGHT. The LINK_TO_CUST_TRX_LINE_ID column on RA_CUSTOMER_TRX_LINES distinguishes header-level freight (null link) from line-level freight (populated link). RA_CUST_TRX_LINE_GL_DIST stores the accounting distributions generated for freight amounts. RA_CUST_TRX_TYPES and AR_SYSTEM_PARAMETERS supply transaction type and system parameter context, the latter providing the header-level rounding flag. FND_CURRENCIES provides the base currency precision and minimum accountable unit values used for amount rounding.
Usage Notes
ARP_PROCESS_FREIGHT is not intended for direct invocation by external integrations; it is an internal helper invoked by Receivables transaction APIs and related packages during the creation and maintenance of freight charges. It is typically driven when a user enters or modifies freight in the Receivables transaction window, when AutoInvoice requires freight line validation, or from custom code that manipulates RA_CUSTOMER_TRX_LINES records of type FREIGHT. Because the package is classified as OTHER and is referenced by four other packages, customizations should avoid calling its private procedures directly; standard supported transaction APIs should be used instead, allowing this package to apply its validation and rounding rules implicitly.
-
SYNONYM: APPS.FND_CURRENCIES 12.2.2
-
SYNONYM: APPS.FND_CURRENCIES 12.1.1
-
12.2.2 DBA Data 12.2.2
-
12.2.2 DBA Data 12.2.2
-
12.1.1 DBA Data 12.1.1
-
12.1.1 DBA Data 12.1.1