Search Results g_total_mode




Overview

IEX_ATA_PUB is a public PL/SQL package owned by the APPS schema in Oracle E-Business Suite, classified as a PUB (public) API within the ETRM repository for releases 12.1.1 and 12.2.2. Its name associates it with the Advanced Territory Assignment (ATA) subsystem of Oracle Incentive Compensation / TeleSales territory management. The package serves as a central container of shared declarations — constants, globals, and record/table datatypes — used by the parallel and concurrent worker programs that perform territory assignment processing across accounts, opportunities, and leads.

The spec exposes a modest public surface (three documented programs), but its principal architectural role is to define the structures that worker processes share. The IEX_GLOBALS record, for example, aggregates runtime context such as USER_ID, REQUEST_ID, PREV_REQUEST_ID, PROGRAM_ID, PROGRAM_APPLICATION_ID, and LAST_UPDATE_LOGIN alongside operational controls including NUM_CHILD_PROCESSES, MIN_NUM_PARALLEL_PROC, MAX_RANK, RUN_MODE, NUM_ACCT_QUAL, NUM_OPPOR_QUAL, NUM_ACCT_OPPOR_QUAL, NUM_ROLLUP_DAYS, CONVERSION_TYPE, REC_TO_COMMIT, and REC_TO_OPEN. The package also declares the QUAL_LIST_REC_TYPE and QUAL_LIST_TBL_TYPE structures for holding seeded qualifier identifiers and codes, plus package-level variables that track child worker counts for account, opportunity, and lead processing. Public constants include G_QUALIFIER_CODE_SIZE, G_NEW_MODE, and G_TOTAL_MODE.

Key Procedures and Functions

  • ASSIGN_TERRITORY_ACCESSES — The substantive business program in the package. It performs territory access assignment, distributing qualifying records to the appropriate sales territories based on the seeded territory qualifiers. As the primary worker-facing routine, it consumes the shared globals and datatypes declared in the spec to coordinate parallel execution.
  • SET_AREA_SIZES — The routine identified by the user's search term. Its name indicates a sizing or configuration function that establishes area (territory or processing region) dimensions used during territory assignment. It is typically invoked during setup or initialization phases, before the worker processes execute, so that downstream parallel processing is bounded and allocated correctly.
  • IEX_DEBUG — A diagnostic utility for the IEX subsystem. It provides controlled debug output governed by the DEBUG_FLAG element carried in the IEX_GLOBALS record, allowing developers and support personnel to trace execution of territory assignment programs without modifying production code.

Tables Accessed

  • JTF_TAE_1600_CUST_WINNERS — Stores the winning territory assignments produced for the 1600 qualifier set; the package writes/reads here when committing assignment results.
  • JTF_TAE_1600_CUST_TRANS — The transactional or staging table for the same 1600 qualifier set, holding records under evaluation before winner determination.
  • FND_CONCURRENT_REQUESTS_S — Read to resolve concurrent request context, consistent with the REQUEST_ID and PREV_REQUEST_ID fields in IEX_GLOBALS.
  • V$PARAMETER — Queried to read database initialization parameters, typically to size work or detect configuration relevant to parallel processing.
  • DUAL and PLITBLM — DUAL is used for scalar evaluations and PLITBLM is the standard PL/SQL index-by table used by Oracle's DBMS packages for intermediate processing.

Usage Notes

IEX_ATA_PUB is primarily an internal support package rather than a direct end-user API. It is invoked by the territory assignment concurrent programs and their parallel child workers, which read the shared globals from this package to maintain processing state across requests. SET_AREA_SIZES is called during initialization to establish area sizing before bulk assignment begins. IEX_DEBUG is called throughout worker execution when the debug flag is enabled, and ASSIGN_TERRITORY_ACCESSES performs the core assignment work.

Because the package is classified PUB, its spec is considered a stable interface, but customizations should avoid direct reliance on the global variables, whose values are populated only within the context of a running territory assignment program. The package is referenced by one other package in the ETRM repository, confirming its role as a shared declaration layer. On 12.1.1 and 12.2.2, the header comments indicate a legacy lineage (timestamped 2006), meaning behavior is consistent across both releases and no online patching differences are expected at the package spec level.