Results for “ar_gta_trx_util”
50+ results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
AR_GTA_TRX_UTIL is a utility package body owned by APPS and classified in the ETRM as a UTIL-type API. It forms part of the Global Tax Application (GTA) infrastructure within Oracle Receivables, providing a shared library of helper procedures and functions used to populate, validate, and extract data from the AR_GTA transaction staging tables. Its filename, ARUGTAB.pls, and the header comments confirm that it is a collection of utility procedures and functions rather than a business-event API with a formal public interface. The package supports the transformation of Receivables invoice and line data into GTA tax transactions, including retrieval of amounts, tax registration numbers, bank information, and customer details. It also contains concurrency output handling, date and monetary formatting routines, and cascade deletion of header and line records.
The package was created in April 2005 by Jim Zheng and has been maintained through subsequent releases. The version string references 120.5.12020000.4, dated January 2013, which aligns with the R12.1.x and R12.2.x code lines. The header notes specific modifications relating to registration numbers, tax_line_id selection logic, and the addition of invoice type population logic for R12.1, indicating that the utility evolved alongside the GTA feature set.
Key Procedures and Functions
- Output_Conc / Debug_Output_Conc / Debug_Output — Write diagnostic and concurrent-program output for logging and troubleshooting GTA processing.
- Create_Trxs / Create_Trx — Create GTA transaction header and line records, in bulk and single-record variants.
- Get_Trx — Retrieve an existing GTA transaction record.
- Get_Gtainvoice_Amount / Get_Gtainvoice_Original_Amount / Get_Gtainvoice_Tax_Amount — Return the current, original, and tax amounts associated with a GTA invoice.
- Get_Arinvoice_Amount / Get_Arinvoice_Tax_Amount — Return the corresponding amounts from the Receivables invoice.
- Get_Arline_Amount / Get_Arline_Vattax_Amount / Get_Arline_Vattax_Rate — Return line-level amounts, VAT tax amounts, and VAT rates.
- Check_Taxcount_Of_Arline / Check_Taxcount_Of_Artrx — Validate the number of tax lines associated with an invoice line or transaction.
- Delete_Header_Line_Cascade — Remove GTA header and line records while preserving referential integrity.
- Format_Date / To_Xsd_Date_String / Format_Monetary_Amount — Format dates and monetary values for GTA output, including XSD-compliant date strings.
- Get_Primary_Phone_Number / Get_Operatingunit / Get_Customer_Name / Get_AR_Batch_Source_Name — Retrieve descriptive attributes for reporting and GTA payload generation.
- Get_Bank_Info / Get_Tp_Tax_Registration_Number / Get_Arline_Tp_Taxreg_Number / Verify_Tax_Line / Get_Info_From_Ebtax — Support tax registration retrieval and tax line verification against E-Business Tax data.
- Get_Invoice_Type / Populate_Invoice_Type / Populate_Invoice_Type_Header — Determine and populate invoice type values added for R12.1.
Tables Accessed
The package operates primarily on the GTA staging and rule tables — AR_GTA_TRX_HEADERS_ALL, AR_GTA_TRX_LINES_ALL, AR_GTA_TRX_LINES, AR_GTA_RULE_HEADERS_ALL, AR_GTA_SYSTEM_PARAMETERS_ALL, AR_GTA_TAX_LIMITS_ALL, and AR_GTA_TYPE_MAPPINGS — which hold the transaction data being built and the configuration that governs its creation. It reads Receivables transaction data through RA_CUSTOMER_TRX_ALL, RA_CUST_TRX_LINE_GL_DIST_ALL, and RA_BATCHES_ALL for amounts, distributions, and batch source information. Customer and party attributes are sourced from HZ_CUST_ACCOUNTS and HZ_PARTIES. Tax line detail is obtained from ZX_LINES. FND_APPLICATION and FND_CURRENCIES supply application identifiers and currency attributes used in formatting and validation.
Usage Notes
AR_GTA_TRX_UTIL is an internal utility layer rather than a documented public API. It is referenced by nine other packages in the ETRM, indicating that it is invoked indirectly by GTA processing packages, concurrent programs, and potentially by Receivables forms that display or generate GTA transaction data. Because the procedures are not exposed as a formal API with committed signatures, customizations should avoid calling these routines directly; instead, they should be reached through the higher-level GTA processing entry points. The presence of Output_Conc and Debug_Output routines confirms typical execution from concurrent programs, where diagnostic output is written to the concurrent log. The metadata does not document parameter lists, so signatures must be verified against the deployed package in the target instance before any direct use.
-
SYNONYM: APPS.RA_BATCHES_ALL 12.2.2
-
SYNONYM: APPS.ZX_LINES 12.2.2
-
SYNONYM: APPS.IBY_CREDITCARD 12.2.2
-
12.2.2 DBA Data 12.2.2
-
12.2.2 DBA Data 12.2.2
-
View: AR_GTA_TRX_HEADERS_V 12.2.2
Header level information for gta invoice
APPS.AR_GTA_TRX_HEADERS_V·↳ AR_GTA_RULE_HEADERS_ALL·↳ AR_GTA_TRX_HEADERS_ALL·↳ AR_GTA_TRX_UTIL·Explore AR module →