Search Results delete_flag
Overview
APPS.ENG_CHANGE_ADMIN_UTIL is a utility package body in the Oracle E-Business Suite Engineering (ENG) module. Its business function is to centralize referential-integrity and deletion-eligibility checks for Engineering Change Order (ECO) administrative setup data. Engineering Change Management relies on a set of reusable code lists — change reasons, priorities, statuses, phases, and classifications — that administrators maintain through Oracle Forms. Because these codes are referenced by existing engineering changes and by change type definitions, the application must prevent an administrator from deleting a code that is still in use. This package encapsulates that logic in a single, reusable PL/SQL unit rather than embedding it in each form.
The internal design is consistent across functions. Each routine initializes a local variable named delete_flag to 1, then attempts to select the literal value 2 INTO delete_flag FROM dual WHERE EXISTS (...). If a dependent row is found, delete_flag becomes 2; if no dependent row exists, the query raises NO_DATA_FOUND, the exception handler fires, and the function returns the initial value of 1. The caller therefore interprets 1 as "safe to delete" and 2 as "in use, do not delete." The delete_flag construct referenced in the user's search is thus the return-value mechanism of this package, not a database column.
Key Procedures and Functions
The ETRM metadata documents five functions in this package body:
- CHECK_DELETE_FOR_REASON — Determines whether a given change reason code may be deleted. It checks both the
ENG_ENGINEERING_CHANGEStable and theENG_CHANGE_TYPE_REASONStable, returning the standard flag value. - CHECK_DELETE_FOR_PRIORITY — Determines whether a given priority code may be deleted. It checks
ENG_ENGINEERING_CHANGESandENG_CHANGE_TYPE_PRIORITIES, using aUNION ALLof the two existence tests. - CHECK_DELETE_FOR_STATUS — Determines whether a status code may be deleted. It first opens an explicit cursor against
ENG_CHANGE_STATUSESto detect seeded statuses (SEEDED_FLAG = 'Y'). An existence check againstENG_ENGINEERING_CHANGESis performed only when the status is not seeded, so seeded statuses are protected from deletion by design. - CHECK_DELETE_FOR_PHASE — Determines whether a change phase may be deleted for a given status and change type. The documented source excerpt is truncated, but the function follows the same existence-check pattern against the phase/change-type configuration.
- CHECK_CLASSIFICATIONS_DELETE — Determines whether a classification code may be deleted, based on references in
ENG_CHANGE_TYPE_CLASS_CODESand related change data.
Tables Accessed
All table access is through APPS synonyms. The package reads:
- ENG_ENGINEERING_CHANGES — the core ECO table; existence of any ECO carrying a reason, priority, or status protects that code from deletion.
- ENG_CHANGE_TYPE_REASONS — maps reasons to change types.
- ENG_CHANGE_TYPE_PRIORITIES — maps priorities to change types.
- ENG_CHANGE_STATUSES — source of the seeded-status flag.
- ENG_CHANGE_TYPE_CLASS_CODES — maps classifications to change types.
- DUAL — used as the driving row for the
WHERE EXISTSexistence test.
The package performs read-only queries; no DML is issued.
Usage Notes
This is a UTIL-classified package with no documented inbound references, meaning it is invoked directly rather than called by other PL/SQL packages. Typical invocation points are the Engineering Change Management setup forms (reason, priority, status, phase, and classification maintenance windows), where the form's PRE-DELETE or ON-DELETE trigger calls the appropriate function and raises an error when the flag indicates the code is in use. The package is also suitable for use in custom validation code, concurrent programs, or data-migration scripts that purge or validate ECO setup data. Because the return convention is numeric (1 = deletable, 2 = in use), custom callers must test the returned value explicitly. No error is raised by the functions themselves; they swallow NO_DATA_FOUND and return a flag, so callers are responsible for interpreting and acting on the result.
-
APPS.PA_PJI_MENU_UTIL SQL Statements
12.2.2
-
APPS.PA_PJI_MENU_UTIL SQL Statements
12.1.1
-
APPS.ENG_CHANGE_ADMIN_UTIL SQL Statements
12.1.1
-
APPS.ENG_CHANGE_ADMIN_UTIL SQL Statements
12.2.2
-
PACKAGE BODY: APPS.ENG_CHANGE_ADMIN_UTIL
12.2.2
-
PACKAGE BODY: APPS.ENG_CHANGE_ADMIN_UTIL
12.1.1
-
APPS.IEU_TASKS_ENUMS_PVT SQL Statements
12.1.1
-
APPS.IEU_TASKS_ENUMS_PVT SQL Statements
12.2.2
-
APPS.AHL_DI_DOC_INDEX_PUB SQL Statements
12.1.1
-
APPS.AHL_DI_DOC_INDEX_PUB_W SQL Statements
12.1.1
-
APPS.AHL_DI_DOC_INDEX_PUB SQL Statements
12.2.2
-
APPS.AHL_DI_DOC_INDEX_PUB_W SQL Statements
12.2.2
-
APPS.AHL_DI_ASSO_DOC_ASO_PUB SQL Statements
12.2.2
-
APPS.AHL_DI_ASSO_DOC_ASO_PUB SQL Statements
12.1.1
-
VIEW: IMC.IMC_CSV_EXPORT_ERRORS#
12.2.2
-
VIEW: IEM.IEM_PARSER_DTLS#
12.2.2
-
VIEW: IEM.IEM_MSG_PARTS#
12.2.2
-
VIEW: QA.QA_GRANTED_PRIVILEGES#
12.2.2
-
VIEW: PV.PV_GE_RESP_MAP_RULES#
12.2.2
-
VIEW: IEM.IEM_PARSERS#
12.2.2
-
VIEW: CE.CE_UPG_PURGE_AP_BANKS#
12.2.2
-
VIEW: FV.FV_PYA_AUDITS#
12.2.2
-
VIEW: RLM.RLM_UI_QUERIES#
12.2.2
-
VIEW: JTF.JTY_TERR_VALUES_IDX_HEADER#
12.2.2
-
VIEW: AR.HZ_BUS_OBJ_TRACKING#
12.2.2
-
VIEW: JTF.JTF_RS_CHGD_ROLE_RELATIONS#
12.2.2
-
VIEW: PO.PO_EXHIBIT_DETAILS_DRAFT#
12.2.2
-
VIEW: CE.CE_UPG_PURGE_PAY_ACCTS#
12.2.2
-
VIEW: IBU.IBU_PARTY_CONTRACTS#
12.2.2
-
VIEW: QP.QP_UI_QUERIES_TL#
12.2.2
-
VIEW: PV.PV_PROGRAM_BENEFITS#
12.2.2
-
VIEW: DDR.DDR_WS_JOB_FILE_DLS#
12.2.2
-
VIEW: JTF.JTY_DEA_VALUES_IDX_HEADER#
12.2.2
-
VIEW: AMV.AMV_NEWS#
12.2.2
-
VIEW: CE.CE_UPG_PURGE_AP_ACCTS#
12.2.2
-
VIEW: PO.PO_GA_ORG_ASSIGN_DRAFT#
12.2.2
-
VIEW: CSM.CSF_M_MAIL_RECIPIENTS_INQ#
12.2.2
-
VIEW: HR.PQH_ROUTING_CATEGORIES#
12.2.2
-
VIEW: PO.PO_PRICE_DIFF_DRAFT#
12.2.2
-
VIEW: JA.JAI_OM_OE_BOND_TRXS#
12.2.2
-
VIEW: ONT.OE_UI_QUERIES_TL#
12.2.2
-
VIEW: AMS.AMS_ACT_ACCESS#
12.2.2
-
VIEW: AMS.AMS_PORTAL_CACHE#
12.2.2
-
VIEW: OSM.AS_CHANGED_ACCOUNTS_ALL#
12.2.2
-
VIEW: WSH.WSH_DEL_ASSGN_INTERFACE#
12.2.2
-
VIEW: CN.CN_TABLE_MAPS_ALL#
12.2.2
-
VIEW: HR.PQH_ATTRIBUTE_RANGES#
12.2.2
-
APPS.ZX_TDS_TAXABLE_BASIS_DETM_PKG SQL Statements
12.1.1
-
VIEW: JTF.JTF_RS_ROLE_RELATIONS#
12.2.2
-
VIEW: CS.CS_INCIDENT_LINKS_EXT#
12.2.2