Results for “test_do_autoacc”
8 results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
ARP_AUTO_ACCOUNTING is a core Oracle Receivables PL/SQL package that implements the automatic accounting engine for the Oracle E-Business Suite Release 12.1.1 and 12.2.2 code lines. Its principal business function is to derive the correct General Ledger account combinations for receivable transactions, transaction lines, distributions, taxes, freight, and revenue adjustments without manual accountant intervention. The package resolves accounting flexfield code combinations by interrogating transaction attributes, customer and site information, item and item-category data, system parameters, and pre-defined Account Default rules stored in Receivables. The resulting Code Combination Identifiers (CCIDs) populate the RA_CUST_TRX_LINE_GL_DIST table, which forms the subledger distribution basis for transfer to Oracle General Ledger through the standard Receivables accounting and posting cycle.
The documented API classification for this object is OTHER, indicating that it forms part of Oracle's internal automated accounting infrastructure rather than a published public API. It is invoked extensively as a service routine by the transaction entry, import, and AutoInvoice paths.
Key Procedures and Functions
- DO_AUTOACCOUNTING — The primary driver procedure. It orchestrates the account derivation process for a transaction, evaluating applicable Account Default rules and returning the resolved accounting distribution result.
- QUERY_AUTOACC_DEF — Retrieves the Account Default and Account Default Segment definitions applicable to the transaction context, providing the rule set that DO_AUTOACCOUNTING evaluates.
- SEARCH_GLCC_FOR_CCID — Searches the General Ledger code combination space (GL_CODE_COMBINATIONS) to locate the CCID that corresponds to a resolved accounting flexfield segment string.
- INIT — Initializes package-level state and session context required before account derivation proceeds.
- TEST_HARNESS, TEST_WES, TEST_LOAD, TEST_QUERY, TEST_FIND, TEST_ASSEMBLY, TEST_BUILD_SQL, TEST_DO_AUTOACC — Diagnostic and unit-test procedures used during development and support to exercise the account derivation logic, assemble inputs, build dynamic SQL, and validate the behavior of DO_AUTOACCOUNTING.
Fifteen documented procedures/functions are exposed in total; the test-family routines carry no production business purpose.
Tables Accessed
The package reads reference and setup data through APPS synonyms including AR_SYSTEM_PARAMETERS, RA_BATCH_SOURCES, FND_CURRENCIES, RA_ACCOUNT_DEFAULTS, RA_ACCOUNT_DEFAULT_SEGMENTS, and RA_ACCOUNT_COMBINATIONS (the Account Default rule source), together with MTL_SYSTEM_ITEMS, MTL_ITEM_CATEGORIES, HZ_CUST_SITE_USES, and GL_CODE_COMBINATIONS used to resolve segments into a valid CCID. Transaction context is drawn from the AR_TRX_HEADER_GT, AR_TRX_LINES_GT, and AR_TRX_ERRORS_GT global temporary tables, along with AR_MEMO_LINES. The output of the derivation is written to RA_CUST_TRX_LINE_GL_DIST, the Receivables subledger distribution table. It also depends on ARP_TRX_GLOBAL and FND_FLEX_EXT for shared globals and key flexfield validation.
Usage Notes
ARP_AUTO_ACCOUNTING is not intended for direct invocation by customers. It is called automatically during invoice, credit memo, debit memo, chargeback, and on-account receipt processing, and is referenced by seventeen other packages in the Receivables code tree, including ARP_PROCESS_INVOICE, ARP_PROCESS_HEADER, ARP_PROCESS_LINE, ARP_PROCESS_CREDIT, ARP_PROCESS_FREIGHT, ARP_BILLS_RECEIVABLE_MAIN, ARP_CREDIT_MEMO_MODULE, AR_INVOICE_TABLE_HANDLER, and AR_INVOICE_DEFAULT_PVT. Tracing accounting failures, invalid CCID errors, or distribution discrepancies in AutoInvoice and manual transaction entry normally leads to this package. Custom extensions should never call it directly; the supported integration points are the Receivables open interfaces and the AutoInvoice execution path, which invoke ARP_AUTO_ACCOUNTING on the caller's behalf.