Search Results assign_management_segment
Overview
APPS.GL_MANAGEMENT_SEGMENT_UPGRADE is a public PL/SQL package in the Oracle E-Business Suite General Ledger module, defined with AUTHID CURRENT_USER. Its stated purpose in the package header is to provide "package procedures for the Management Segment Upgrade Program," a one-time data migration utility that transitions a ledger's chart of accounts from the pre-11i style structure (where the balancing segment and management segment were implicit) to the Management Segment architecture introduced in Release 11i and carried forward through 12.1.1 and 12.2.2. The program assigns management segment values to existing code combinations and journal lines, and stages that transformation through dedicated upgrade tables. The package is functionally isolated: it is referenced by zero other packages, which confirms it is invoked by concurrent programs and administrator-driven scripts rather than by other application APIs. The header revision ($Header: glumsups.pls 120.1 2005/05/05) indicates the code stabilized at Release 11i and has been retained without structural change in subsequent releases.
Key Procedures and Functions
The package exposes five documented entry points.
- REQUEST_LOCK — Acquires a user name lock keyed on the chart of accounts, using DBMS_LOCK. The caller supplies the chart of accounts identifier, a lock mode, a timeout in seconds, a flag indicating whether to keep retrying, a retry count, and a wait interval between retries. It returns TRUE on success and FALSE on failure. The header explicitly documents the available DBMS_LOCK mode constants, including nl_mode (1), ss_mode (2, "Intended Share"), sx_mode (3, "Intended Exclusive"), s_mode (4), ssx_mode (5), and x_mode (6). This list is the direct source of the "s_mode" search term; s_mode is a documented valid argument value for REQUEST_LOCK, not a separate package object.
- RELEASE_LOCK — Releases the user name lock previously taken for a given chart of accounts. Returns TRUE on success and FALSE on failure. The header illustrates balanced usage: request_lock, perform work, then release_lock.
- SETUP_UPGRADE — Performs the preparatory phase of the Management Segment upgrade, establishing the control records required before processing begins.
- PROCESS_INCREMENTAL_DATA — Processes incremental upgrade data, applying the management segment transformation to records accumulated after the initial setup pass.
- ASSIGN_MANAGEMENT_SEGMENT — Performs the core assignment, populating management segment values for the chart of accounts being upgraded.
Tables Accessed
Through APPS synonyms, the package reads and writes the following. FND_ID_FLEX_SEGMENTS and FND_ID_FLEX_STRUCTURES supply the key flexfield definition and segment metadata that determine whether and how a management segment is configured. GL_CODE_COMBINATIONS is the primary target of value assignment. GL_JE_BATCHES, GL_JE_BATCHES_S, GL_JE_HEADERS, and GL_JE_LINES provide the journal data whose management segment attribute must be populated, with GL_JE_SEGMENT_VALUES holding the per-line segment values. GL_LEDGERS identifies the ledger context. GL_MGT_SEG_UPGRADE, GL_MGT_SEG_UPGRADE_GT, and GL_MGT_SEG_UPGRADE_H are the dedicated upgrade control, staging, and history tables that track progress and enable restart. DBA_SEQUENCES supports key generation, DBMS_LOCK provides the locking primitive, and DUAL is used for expression evaluation.
Usage Notes
Typical invocation occurs through concurrent programs and administrative SQL*Plus sessions rather than through application forms. A standard sequence is to call REQUEST_LOCK, run SETUP_UPGRADE, execute PROCESS_INCREMENTAL_DATA, invoke ASSIGN_MANAGEMENT_SEGMENT, and finally call RELEASE_LOCK, so that competing sessions on the same chart of accounts are serialized. Custom code referencing this package should treat it as a deployment or upgrade utility, not a general-purpose API, because it is not called by other seeded packages and its tables are transient staging objects.
-
PACKAGE: APPS.GL_MANAGEMENT_SEGMENT_UPGRADE
12.2.2
-
PACKAGE: APPS.GL_MANAGEMENT_SEGMENT_UPGRADE
12.1.1
-
PACKAGE BODY: APPS.GL_MANAGEMENT_SEGMENT_UPGRADE
12.2.2
-
PACKAGE BODY: APPS.GL_MANAGEMENT_SEGMENT_UPGRADE
12.1.1
-
APPS.GL_MANAGEMENT_SEGMENT_UPGRADE dependencies on GL_MANAGEMENT_SEGMENT_UPGRADE
12.1.1
-
APPS.GL_MANAGEMENT_SEGMENT_UPGRADE dependencies on FND_FILE
12.1.1
-
APPS.GL_MANAGEMENT_SEGMENT_UPGRADE dependencies on GL_MANAGEMENT_SEGMENT_UPGRADE
12.2.2
-
APPS.GL_MANAGEMENT_SEGMENT_UPGRADE dependencies on FND_FILE
12.2.2
-
APPS.GL_MANAGEMENT_SEGMENT_UPGRADE dependencies on GL_MESSAGE
12.1.1
-
APPS.GL_MANAGEMENT_SEGMENT_UPGRADE dependencies on GL_MESSAGE
12.2.2