Search Results get_regions
Overview
CS_CF_UPG_BUGFIX1_PKG is a one-time upgrade remediation package belonging to the Oracle E-Business Suite Customer Care (CS) foundation schema. Its declared purpose is to correct data defects affecting region definitions that were introduced or left unresolved by earlier upgrade processing. The package is treated as an upgrade utility rather than a runtime application component: the header identifies it as a bugfix script, and the surrounding utility calls (CS_CF_UPG_UTL_PKG) are logging and wrap-up helpers used exclusively by upgrade routines. The package executes against the region metadata owned by the Customer Care foundation tables, which underpin the configurable region and region-item model used to drive Trade Management, order capture, and related Customer Care flows in both 12.1.1 and 12.2.2.
Because the package operates on seeded foundation metadata rather than transactional data, it is intended to be run once, in a controlled upgrade window, and then left dormant. Its naming convention (the BUGFIX1 suffix) confirms it was shipped to address a specific defect identified post-upgrade rather than to provide ongoing functionality.
Key Procedures and Functions
The package body exposes two documented procedures.
- MAIN — The single entry point. MAIN orchestrates the bugfix: it generates a timestamped log filename suffix, initializes logging through
CS_CF_UPG_UTL_PKG.setup_log, emits a start-of-processing statement, and then invokes the region fix for each of three context types —R,A, andGC. On successful completion it callswrapup('SUCCESS'). AnOTHERSexception handler logs an unexpected-error message, callswrapup('ERROR'), and re-raises, ensuring the failure propagates to the caller rather than being silently swallowed. - FIX_REGIONS_BUGFIX1 — Performs the actual remediation for a single context type. It drives the correction by iterating the
get_regionscursor, which selectsregion_codevalues fromak_regionsmatching a base region-code prefix concatenated with a suffix filter. The procedure then uses theregion_existcursor to test for the presence of a target region code, and theget_display_attributescursor to read thenode_display_flagandrequired_flagvalues for a given region/attribute combination. A local counter tracks the number of rows processed. The cursor namedget_regionsis the object most commonly referenced in code searches for this package.
Tables Accessed
- AK_REGIONS — The authoritative store of region definitions. It is read to enumerate candidate region codes and to test whether a target region already exists before any corrective action is taken.
- AK_REGION_ITEMS — Holds per-attribute configuration for each region. It is read to obtain the node display and required flags that drive the bugfix decision logic.
- DUAL — Used solely to generate the date/time string appended to the log file name.
All access is made through the APPS synonyms for these tables, so the calling schema requires no direct grants on the underlying AK objects.
Usage Notes
CS_CF_UPG_BUGFIX1_PKG is not bound to any form, concurrent program, or public API, and no other packages reference it. It is invoked directly as a one-off upgrade step — typically by an upgrade driver or by a DBA executing APPS.CS_CF_UPG_BUGFIX1_PKG.Main from SQL*Plus during a patch or post-upgrade remediation cycle. Because MAIN re-raises exceptions, the calling script must handle failure and inspect the IBUCFUPG- prefixed log written by the utility package. The package should not be scheduled or called repeatedly in a production environment, as it is designed for a single corrective pass over region metadata. The behavior is consistent across 12.1.1 and 12.2.2, since it touches foundation tables that are not modified by the Online Patching editioning model.
-
PACKAGE BODY: APPS.CS_CF_UPG_BUGFIX1_PKG
12.1.1
-
PACKAGE BODY: APPS.CS_CF_UPG_BUGFIX1_PKG
12.2.2
-
PACKAGE: APPS.MSC_SATP_FUNC
12.1.1
-
PACKAGE: APPS.MSC_SATP_FUNC
12.2.2
-
PACKAGE: APPS.JTF_REGION_PUB
12.2.2
-
PACKAGE: APPS.JTF_REGION_PUB
12.1.1
-
PACKAGE BODY: APPS.JTF_REGION_PUB
12.2.2
-
PACKAGE BODY: APPS.JTF_REGION_PUB
12.1.1
-
PACKAGE BODY: APPS.MSC_SCH_WB
12.1.1
-
PACKAGE BODY: APPS.MSC_SCH_WB
12.2.2
-
PACKAGE BODY: APPS.MSC_ATP_PUB
12.1.1
-
PACKAGE BODY: APPS.MSC_ATP_PUB
12.2.2
-
PACKAGE BODY: APPS.MSC_SATP_FUNC
12.2.2
-
PACKAGE BODY: APPS.MSC_SATP_FUNC
12.1.1
-
APPS.MSC_SCH_WB dependencies on FND_API
12.1.1
-
APPS.MSC_SCH_WB dependencies on FND_API
12.2.2
-
PACKAGE: APPS.JTF_REGION_PUB_W
12.1.1
-
PACKAGE: APPS.JTF_REGION_PUB_W
12.2.2
-
APPS.CS_CF_UPG_BUGFIX1_PKG dependencies on CS_CF_UPG_UTL_PKG
12.1.1
-
APPS.CS_CF_UPG_BUGFIX1_PKG dependencies on AK_REGION_ITEMS
12.2.2
-
APPS.CS_CF_UPG_BUGFIX1_PKG dependencies on CS_CF_UPG_UTL_PKG
12.2.2
-
APPS.CS_CF_UPG_BUGFIX1_PKG dependencies on AK_REGION_ITEMS
12.1.1
-
APPS.MSC_SCH_WB dependencies on MSC_SCH_WB
12.2.2
-
APPS.MSC_SCH_WB dependencies on MSC_SCH_WB
12.1.1
-
APPS.MSC_SATP_FUNC dependencies on ORDER_SCH_WB
12.1.1
-
APPS.MSC_SATP_FUNC dependencies on ORDER_SCH_WB
12.2.2
-
APPS.CS_CF_UPG_BUGFIX1_PKG dependencies on FND_LOG
12.2.2
-
APPS.CS_CF_UPG_BUGFIX1_PKG dependencies on FND_LOG
12.1.1
-
APPS.CS_CF_UPG_BUGFIX1_PKG dependencies on CS_CF_UPG_BUGFIX1_PKG
12.1.1
-
APPS.JTF_REGION_PUB_W dependencies on JTF_NUMBER_TABLE
12.1.1
-
APPS.CS_CF_UPG_BUGFIX1_PKG dependencies on CS_CF_UPG_BUGFIX1_PKG
12.2.2
-
APPS.JTF_REGION_PUB_W dependencies on JTF_NUMBER_TABLE
12.2.2
-
APPS.CS_CF_UPG_BUGFIX1_PKG dependencies on AK_REGIONS
12.1.1
-
APPS.CS_CF_UPG_BUGFIX1_PKG dependencies on AK_REGIONS
12.2.2
-
APPS.MSC_ATP_PUB dependencies on FND_API
12.2.2
-
APPS.MSC_ATP_PUB dependencies on FND_API
12.1.1
-
APPS.MSC_SATP_FUNC dependencies on MSC_SCH_WB
12.1.1
-
APPS.MSC_SATP_FUNC dependencies on MSC_SCH_WB
12.2.2
-
APPS.JTF_REGION_PUB_W dependencies on JTF_REGION_PUB
12.1.1
-
APPS.JTF_REGION_PUB_W dependencies on JTF_REGION_PUB
12.2.2
-
APPS.MSC_SATP_FUNC dependencies on MSC_SATP_FUNC
12.2.2
-
APPS.MSC_SATP_FUNC dependencies on MSC_SATP_FUNC
12.1.1
-
PACKAGE BODY: APPS.JTF_REGION_PUB_W
12.2.2
-
PACKAGE BODY: APPS.JTF_REGION_PUB_W
12.1.1
-
APPS.MSC_ATP_PVT dependencies on FND_API
12.1.1
-
APPS.MSC_ATP_PVT dependencies on FND_API
12.2.2
-
APPS.JTF_REGION_PUB_W dependencies on JTF_NUMBER_TABLE
12.1.1
-
APPS.JTF_REGION_PUB_W dependencies on JTF_NUMBER_TABLE
12.2.2
-
APPS.JTF_REGION_PUB_W dependencies on JTF_VARCHAR2_TABLE_100
12.2.2
-
APPS.JTF_REGION_PUB_W dependencies on JTF_VARCHAR2_TABLE_100
12.1.1